#6793: Issues with __cxa_atexit ---------------------------------+----------------------------- Reporter: kaliber | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: System/libroot.so | Version: R1/Development Keywords: | Blocked By: Has a Patch: 0 | Platform: All Blocking: | ---------------------------------+----------------------------- First of all thanks for the _cxa_atexit implementation. Unfortunately many clang apps crash at exit. Here is an example: {{{ [Switching to team /boot/system/servers/print_server (103) thread print_server (103)] 0x002f4ea1 in __cxa_atexit (hook=0x680260 <std::ios_base::Init::~Init()>, data=0x19d0268, dsoHandle=0x19d01b0) at src/system/libroot/posix/stdlib/exit.cpp:220 220 src/system/libroot/posix/stdlib/exit.cpp: No such file or directory. in src/system/libroot/posix/stdlib/exit.cpp (gdb) thread apply all bt Thread 1 (team /boot/system/servers/print_server (103) thread print_server (103)): #0 0x002f4ea1 in __cxa_atexit (hook=0x680260 <std::ios_base::Init::~Init()>, data=0x19d0268, dsoHandle=0x19d01b0) at src/system/libroot/posix/stdlib/exit.cpp:220 #1 0x019c77fe in global constructors keyed to a () from /boot/system/add-ons/Print/transport/IPP #2 0x019ca557 in __do_global_ctors_aux () from /boot/system/add-ons/Print/transport/IPP #3 0x019c0609 in _init () from /boot/system/add-ons/Print/transport/IPP #4 0x00100878 in init_dependencies () from /boot/system/runtime_loader #5 0x00100d78 in load_library () from /boot/system/runtime_loader #6 0x00103b17 in export_load_add_on () from /boot/system/runtime_loader #7 0x00260c64 in load_add_on ( name=0x18022b30 "/boot/system/add-ons/Print/transport/IPP") at src/system/libroot/os/image.cpp:73 #8 0x002182d3 in Transport::Transport () #9 0x002181e0 in Transport::Scan () #10 0x00210f57 in PrintServerApp::PrintServerApp () #11 0x00210e03 in main () }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/6793> Haiku <http://dev.haiku-os.org> Haiku - the operating system.