http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49811
Summary: Crash at __do_global_dtors_aux when compiled with '-shared -static' Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: nn.d...@gmail.com Created attachment 24806 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24806 Program which crashes when run. While trying to statically include a library for a game, I compiled with both '-shared' and '-static'. I ran the program and it crashed with "Segmentation fault". I reduced the program down to the minimum required to make it crash. When I compiled the test with 'gcc -o segment_test -shared -static main.cpp' and ran the program ('./segment_test'), the program still crashed with the same error as the original. System information: openSUSE 11.3 Linux linux-d9bc 2.6.34.8-0.2-default #1 SMP 2011-04-06 18:11:26 +0200 i686 i686 i386 GNU/Linux GCC is packaged in gcc-4.4-4.2-i586.rpm from http://download.opensuse.org/distribution/11.2/repo/oss/