[Bug libstdc++/68802] New: seg fault when non-main thread calls std::current_exception ARMv7-A
philip.deegan at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 8 20:03:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68802
Bug ID: 68802
Summary: seg fault when non-main thread calls
std::current_exception ARMv7-A
Product: gcc
Version: 5.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: philip.deegan at gmail dot com
Target Milestone: ---
Created attachment 36966
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36966&action=edit
Simple seg faulting init
Segfault occurs in libstdc++-v3/libsupc++/eh_ptr.cc line 190:
__cxa_exception *header = globals->caughtExceptions;
Attached file compiled with:
g++ main.cpp -o test_static -Wall -fmessage-length=0 -std=c++1y -g3
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive -static
Cross compiler is:
g++ -v
Using built-in specs.
COLLECT_GCC=/path/to/gcc_5.3_ARMv7-A/bin/g++
COLLECT_LTO_WRAPPER=/path/to/gcc_5.3_ARMv7-A/libexec/gcc/arm-linux-gnueabihf/5.3.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../tar/gcc-5.3.0/configure --prefix=/path/to/gcc_5.3_ARMv7-A
--enable-languages=c,c++ --target=arm-linux-gnueabihf --disable-nls
--with-arch=armv7-a
Thread model: posix
gcc version 5.3.0 (GCC)
Only appears to occur in when cross compiled. native shared/static (gcc
4.9.2-10) does not occur.
Having trouble testing a shared cross compiled binary due to what I imagine is
libc/ld version mismatch.
My distro is Mint 17.1, ARMv7-A is debian (jessie) vanilla
For complete cross compiler build see:
https://raw.githubusercontent.com/Dekken/scripts/master/gcc-5.3.0_x86_64_TO_ARMv7-A.sh
More information about the Gcc-bugs
mailing list