Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 00:48:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231042] lang/gcc8: Strange crash with STL and libxerces-c.so
Message-ID:  <bug-231042-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231042

            Bug ID: 231042
           Summary: lang/gcc8: Strange crash with STL and libxerces-c.so
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald@FreeBSD.org
          Reporter: yuri@freebsd.org
          Assignee: gerald@FreeBSD.org
             Flags: maintainer-feedback?(gerald@FreeBSD.org)

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=20
> 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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231042-7788>