[Bug libstdc++/58822] Segfault when calling make_shared

michi at triodia dot com gcc-bugzilla@gcc.gnu.org
Tue Oct 22 02:22:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58822

--- Comment #3 from Michi Henning <michi at triodia dot com> ---
To build and run the code in the tarball:

cd exception-fix/build
cmake ..
make
make test

The problem is caused by the call to make_shared on line 33 of
UnityExceptions.h.

If you comment out the initializer and enable the commented-out initializer,
the segfault goes away.

The segfault with make_shared also goes away if the virtual inheritance from
Exception is replaced with non-virtual inheritance.



More information about the Gcc-bugs mailing list