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++/14772] New: gcc 3.4.0 20040329: miscompilation of mozilla 1.7 (cvs) due to the backport for PR10776


After building Mozilla 1.7 (CVS) using gcc 3.4.0 20040329 (CVS), mozilla crashes
at startup.

Below are some details:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1075781376 (LWP 27544)]
__static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
    at ../../../../../mozilla/content/events/src/nsEventListenerManager.cpp:178
178     };


(gdb) info stack
#0  __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
    at ../../../../../mozilla/content/events/src/nsEventListenerManager.cpp:178
#1  0x41220e7c in _GLOBAL__I_gSystemEventGroup ()
    at ../../../../../mozilla/content/events/src/nsEventListenerManager.cpp:1996
#2  0x414d580f in __do_global_ctors_aux () from
/usr/lib/mozilla-1.7b/components/libgklayout.so
#3  0x40f4c81d in _init () from /usr/lib/mozilla-1.7b/components/libgklayout.so
#4  0x4ec2468e in _dl_init_internal () from /lib/ld-linux.so.2
#5  0x40f4b660 in ?? () from /usr/lib/mozilla-1.7b/components/libgklayout.so

(gdb) info line
Line 178 of "../../../../../mozilla/content/events/src/nsEventListenerManager.cpp"
   starts at address 0x412207bb <__static_initialization_and_destruction_0+41>
   and ends at 0x412208d3 <__static_initialization_and_destruction_0+321>.

(gdb) info scope 178
Scope for 178:
Symbol __initialize_p is an argument at offset 8 from register $ebp, length 4.
Symbol __priority is an argument at offset 12 from register $ebp, length 4.

(gdb) info frame
Stack level 0, frame at 0xbfffdde0:
 eip = 0x412207bb in __static_initialization_and_destruction_0
    (../../../../../mozilla/content/events/src/nsEventListenerManager.cpp:178);
saved eip 0x41220e7c
 called by frame at 0xbfffddf0
 source language c++.
 Arglist at 0xbfffddd8, args: __initialize_p=1, __priority=65535
 Locals at 0xbfffddd8, Previous frame's sp is 0xbfffdde0
 Saved registers:
  ebx at 0xbfffddd4, ebp at 0xbfffddd8, eip at 0xbfffdddc

(gdb) info registers
eax            0x41220e62       1092750946
ecx            0x0      0
edx            0xd53    3411
ebx            0x415b0370       1096483696
esp            0xbfffddd0       0xbfffddd0
ebp            0xbfffddd8       0xbfffddd8
esi            0x415b0348       1096483656
edi            0xbfffef64       -1073746076
eip            0x412207bb       0x412207bb
eflags         0x210246 2163270
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51

(gdb) info source
Current source file is
../../../../../mozilla/content/events/src/nsEventListenerManager.cpp
Compilation directory is /mnt/source/cvs/build/build-mozilla/content/events/src
Located in /mnt/source/cvs/mozilla/content/events/src/nsEventListenerManager.cpp
Contains 1996 lines.
Source language is c++.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.
Architecture: Pentium4 (-march=pentium4)

The problem disappears after reverting the backport for PR10776 and re-building
Mozilla.

-- 
           Summary: gcc 3.4.0 20040329: miscompilation of mozilla 1.7 (cvs)
                    due to the backport for PR10776
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: trentalg at aston dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org,trentalg at aston dot ac
                    dot uk
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14772


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