Bug 231042 - lang/gcc8: Strange crash with STL and libxerces-c.so
Summary: lang/gcc8: Strange crash with STL and libxerces-c.so
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-31 00:48 UTC by Yuri Victorovich
Modified: 2018-08-31 04:57 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (gerald)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2018-08-31 00:48:03 UTC
I compile the following test.cpp with this command:
> g++8 -o test test.cpp -L/usr/local/lib -lxerces-c

The resulting executable test crashes:
> $ ./test 
> Segmentation fault


File test.cpp:
> #include <iostream>
> int main(int argc, char **argv) { }

Removing -lxerces-c or removing #include <iostream> eliminates the crash.
The crash is in static constructors.

libxerces-c.so is from xerces-c3-3.2.0_2

11.2-STABLE
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-08-31 04:57:25 UTC
This is some kind of libc++ conflict not fixed by USES=fortran.