[CONCPP-87] Connector/C++ causes segfault in GCC version 7.3.1 Created: 2021-07-06 Updated: 2021-09-27 Resolved: 2021-09-27 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C++ |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Mark Sellers | Assignee: | Lawrin Novitsky |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | api, c++, need_feedback, regexp, segfault | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux, Connector/C++, GCC 7.3.1, Regex |
||
| Issue Links: |
|
||||||||
| Description |
|
Connector/C++ causes a segfault when the application uses the std::regex constructor. This was previously noted in another bug reported by Lawrin Novitsky. The previous bug was not researched/fixed but provided a work-around to use GCC revision >4.9 imposed by cmake. See question on Stack Overflow for more info. UPDATE: Thanks for your help |
| Comments |
| Comment by Lawrin Novitsky [ 2021-07-06 ] |
|
Hello and thank you for your report. These are 2 different issues you are talking about. Prior to 4.9 gcc did not have proper std::regex implementation. With 4.8 it's possible to build connector, but it crashes on first regex use. What binaries did you use for your test? CentOS7? Could you please try CentOS8 if so? At the moment it looks like after appearing of 2nd std::regex in the application(first is template instantiation made in our binaries on our build machine), things get mixed up and that causes the crash. Like objects have different layout, and in the backtrace it can be seen that top 2 entries use regex headers from /usr/include/c++/7/bits/, while all previous use from /usr/local/include/c++/4.9.4/bits/ |
| Comment by Lawrin Novitsky [ 2021-07-07 ] |
|
msellers@faststatic.io But which our binary did you use? My guess it's centos7, and that would be interesting if you tried centos8 binaries. I guess it can be different. |