[Bug 236344] [toolchain] gcc-built shared library crashes in static object constructors when dynamically loaded

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 15 15:49:12 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236344

Fernando Apesteguía <fernape at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fernape at FreeBSD.org

--- Comment #1 from Fernando Apesteguía <fernape at FreeBSD.org> ---
Any updates on this?

cad/openvsp doesn't build with clang anymore due to bug #230888.

It builds with gcc but it then segfaults with similar 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  0x0000000801a273e6 in __dynamic_cast () from
/usr/local/lib/gcc9/libstdc++.so.6
#2  0x0000000801aa9e8e in bool std::has_facet<std::ctype<char> >(std::locale
const&) () from /usr/local/lib/gcc9/libstdc++.so.6
#3  0x0000000801a9bbd4 in std::basic_ios<char, std::char_traits<char>
>::_M_cache_locale(std::locale const&) () from
/usr/local/lib/gcc9/libstdc++.so.6
#4  0x0000000801a9c070 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  0x0000000801a3b463 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  0x00007fffffffc828 in ?? ()
#9  0x0000000801975800 in ?? ()
#10 0x0000000000000000 in ?? ()

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


More information about the freebsd-toolchain mailing list