This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49811] New: Crash at __do_global_dtors_aux when compiled with '-shared -static'


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: unassigned@gcc.gnu.org
        ReportedBy: nn.dm55@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]