[Bug 246488] gcc-built binary crashes in std::ios_base::Init::Init()
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 18 17:58:42 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246488
--- Comment #5 from Fernando Apesteguía <fernape at FreeBSD.org> ---
Removing the CPPFLAGS and still having USE_GCC= 9+ builds but segfaults with
identical backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x0000000802efba18 in vtable for __cxxabiv1::__si_class_type_info () from
/lib/libcxxrt.so.1
(gdb) bt
#0 0x0000000802efba18 in vtable for __cxxabiv1::__si_class_type_info () from
/lib/libcxxrt.so.1
#1 0x000000080234f3e6 in __dynamic_cast () from
/usr/local/lib/gcc9/libstdc++.so.6
#2 0x00000008023d1e8e in bool std::has_facet<std::ctype<char> >(std::locale
const&) () from /usr/local/lib/gcc9/libstdc++.so.6
#3 0x00000008023c3bd4 in std::basic_ios<char, std::char_traits<char>
>::_M_cache_locale(std::locale const&) () from
/usr/local/lib/gcc9/libstdc++.so.6
#4 0x00000008023c4070 in std::basic_ios<char, std::char_traits<char>
>::init(std::basic_streambuf<char, std::char_traits<char> >*) ()
from /usr/local/lib/gcc9/libstdc++.so.6
#5 0x0000000802363463 in std::ios_base::Init::Init() () from
/usr/local/lib/gcc9/libstdc++.so.6
#6 0x000000000049f60d in ?? ()
#7 0x000000080194846e in ?? () from /libexec/ld-elf.so.1
#8 0x00007fffffffc818 in ?? ()
#9 0x0000000801975800 in ?? ()
#10 0x0000000000000000 in ?? ()
The executable is linked against both libstdc++ and libc++
fernape at beastie:~/FreeBSD-repos/ports/head/cad/openvsp$ ldd /usr/local/bin/vsp
| grep '\+\+'
libstdc++.so.6 => /usr/local/lib/gcc9/libstdc++.so.6 (0x8022ab000)
libc++.so.1 => /usr/lib/libc++.so.1 (0x802e0f000)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list