mozilla always crash at startup: due to a bug in gcc-3.4.0.

RESOLVED DUPLICATE of bug 238368

Status

()

Core
DOM: Events
--
critical
RESOLVED DUPLICATE of bug 238368
14 years ago
14 years ago

People

(Reporter: Guido Trentalancia, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316
Build Identifier: Mozilla 1.7b (CVS)

GDB OUTPUT as follows:
-------------------------------------------------------------------------------
/usr/lib/mozilla-1.7b/run-mozilla.sh -g /usr/lib/mozilla-1.7b/mozilla-bin
MOZILLA_FIVE_HOME=/usr/lib/mozilla-1.7b
 
LD_LIBRARY_PATH=/usr/lib/mozilla-1.7b:/usr/lib/mozilla-1.7b/plugins:/usr/lib/mre/mre-1.7b
DISPLAY=:0.0
DYLD_LIBRARY_PATH=/usr/lib/mozilla-1.7b:/usr/lib/mre/mre-1.7b
    
LIBRARY_PATH=/usr/lib/mozilla-1.7b:/usr/lib/mozilla-1.7b/components:/usr/lib/mre/mre-1.7b
       SHLIB_PATH=/usr/lib/mozilla-1.7b:/usr/lib/mre/mre-1.7b
          LIBPATH=/usr/lib/mozilla-1.7b:/usr/lib/mre/mre-1.7b
       ADDON_PATH=/usr/lib/mozilla-1.7b
      MOZ_PROGRAM=/usr/lib/mozilla-1.7b/mozilla-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
/usr/bin/gdb /usr/lib/mozilla-1.7b/mozilla-bin -x /tmp/mozargs1363
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/lib/mozilla-1.7b/mozilla-bin
[Thread debugging using libthread_db enabled]
[New Thread 1074716400 (LWP 1378)]
Type Manifest File: /usr/lib/mozilla-1.7b/components/xpti.dat
+++ JavaScript debugging hooks installed.
nsNativeComponentLoader: autoregistering begins.
*** Registering nsI18nModule components (all right -- a generic module!)
*** Registering nsJarModule components (all right -- a generic module!)
*** Registering necko_core_and_primary_protocols components (all right -- a
generic module!)
*** Registering necko_secondary_protocols components (all right -- a generic
module!)
*** Registering nsImageLib2Module components (all right -- a generic module!)
*** Registering nsWidgetGTKModule components (all right -- a generic module!)
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1074716400 (LWP 1378)]
0x40b57673 in __static_initialization_and_destruction_0(int, int) () at
sstream.tcc:47
47      sstream.tcc: No such file or directory.
        in sstream.tcc

(gdb) info registers
eax            0x11     17
ecx            0xff01   65281
edx            0x0      0
ebx            0x40e5c130       1088799024
esp            0xbfffdd00       0xbfffdd00
ebp            0xbfffdd18       0xbfffdd18
esi            0x1      1
edi            0xff01   65281
eip            0x40b57673       0x40b57673
eflags         0x210202 2163202
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51

st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            1        (raw 0x3fff8000000000000000)
st4            0.875    (raw 0x3ffee000000000000000)
st5            256      (raw 0x40078000000000000000)
st6            2332     (raw 0x400a91c0000000000000)
st7            22484    (raw 0x400dafa8000000000000)
fctrl          0x37f    895
fstat          0x22     34
ftag           0xffff   65535
fiseg          0x73     115
fioff          0x4007be14       1074249236
foseg          0x7b     123
fooff          0x80d64cc        135095500
fop            0x1c9    457
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
mxcsr          0x1f80   8064
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0,
0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0,
0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0,
0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm3            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm4            {uint64 = 0xe000000000000000, v2_int32 = {0x0, 0xe0000000},
v4_int16 = {0x0, 0x0, 0x0, 0xe000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe0}}
mm5            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm6            {uint64 = 0x91c0000000000000, v2_int32 = {0x0, 0x91c00000},
v4_int16 = {0x0, 0x0, 0x0, 0x91c0}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0, 0x91}}
mm7            {uint64 = 0xafa8000000000000, v2_int32 = {0x0, 0xafa80000},
v4_int16 = {0x0, 0x0, 0x0, 0xafa8}, v8_int8 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {
    0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {
    0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 =
{0xffffffffffffffff, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffffff}
mxcsr          0x1f80   8064
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0,
0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0,
0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0,
0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}}
mm3            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm4            {uint64 = 0xe000000000000000, v2_int32 = {0x0, 0xe0000000},
v4_int16 = {0x0, 0x0, 0x0, 0xe000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe0}}
mm5            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm6            {uint64 = 0x91c0000000000000, v2_int32 = {0x0, 0x91c00000},
v4_int16 = {0x0, 0x0, 0x0, 0x91c0}, v8_int8 = {
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0, 0x91}}
mm7            {uint64 = 0xafa8000000000000, v2_int32 = {0x0, 0xafa80000},
v4_int16 = {0x0, 0x0, 0x0, 0xafa8}, v8_int8 = {
---Type <return> to continue, or q <return> to quit---
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa8, 0xaf}}

(gdb) info float
  R7: Empty   0x400dafa8000000000000
  R6: Empty   0x400a91c0000000000000
  R5: Empty   0x40078000000000000000
  R4: Empty   0x3ffee000000000000000
  R3: Empty   0x3fff8000000000000000
  R2: Empty   0x00000000000000000000
  R1: Empty   0x00000000000000000000
=>R0: Empty   0x00000000000000000000
 
Status Word:         0x0022      DE          PE
                       TOP: 0
Control Word:        0x037f   IM DM ZM OM UM PM
                       PC: Extended Precision (64-bits)
                       RC: Round to nearest
Tag Word:            0xffff
Instruction Pointer: 0x73:0x4007be14
Operand Pointer:     0x7b:0x080d64cc
Opcode:              0xd9c9

(gdb) info sharedlibrary
From        To          Syms Read   Shared Object Library
0x40010584  0x4008390c  Yes         /usr/lib/mozilla-1.7b/libmozjs.so
0x40094e2c  0x40095e8c  Yes         /usr/lib/mozilla-1.7b/libplds4.so
0x400991f8  0x4009a9c8  Yes         /usr/lib/mozilla-1.7b/libplc4.so
0x400a80c8  0x400ce334  Yes         /usr/lib/mozilla-1.7b/libnspr4.so
0x4ee64490  0x4ee6c2b4  Yes         /lib/libpthread.so.0
0x4ed86e00  0x4ed87ddc  Yes         /lib/libdl.so.2
0x4f5a5d00  0x4f6a7e04  Yes         /usr/lib/libgtk-1.2.so.0
0x4f004130  0x4f029740  Yes         /usr/lib/libgdk-1.2.so.0
0x4efd5bd0  0x4efd6ae0  Yes         /usr/lib/libgmodule-1.2.so.0
0x4efb42e0  0x4efce004  Yes         /usr/lib/libglib-1.2.so.0
0x4efa5350  0x4efaa1f4  Yes         /usr/X11R6/lib/libXi.so.6
0x4ee4dcd0  0x4ee5c258  Yes         /usr/X11R6/lib/libXext.so.6
0x4ed9f8a0  0x4ee37930  Yes         /usr/X11R6/lib/libX11.so.6
0x4ed615c0  0x4ed7e060  Yes         /lib/libm.so.6
0x4eeb0368  0x4ef1c160  Yes         /usr/lib/libstdc++.so.6
0x4f416654  0x4f41b468  Yes         /lib/libgcc_s.so.1
0x4ec46030  0x4ed34a8c  Yes         /lib/libc.so.6
0x4ec168a0  0x4ec2a55f  Yes         /lib/ld-linux.so.2
0x4012fb4c  0x40136a14  Yes         /lib/libnss_files.so.2
0x4011cae0  0x40125ba0  Yes         /usr/lib/gtk/themes/engines/libbluecurve.so
0x4f0a8350  0x4f0b315c  Yes         /usr/lib/libgdk_pixbuf.so.2
0x401395b4  0x4013a14c  Yes         /usr/lib/gconv/ISO8859-1.so
0x40208c88  0x402ac464  Yes         /usr/lib/mozilla-1.7b/libxpcom.so
0x402d8240  0x402efb88  Yes         /usr/lib/mozilla-1.7b/components/libjsd.so
0x40324f80  0x40375790  Yes         /usr/lib/mozilla-1.7b/components/libxpconnect.so
0x403826c4  0x40384440  Yes         /usr/lib/gconv/UTF-16.so
0x403a5270  0x403d2864  Yes         /usr/lib/mozilla-1.7b/components/libi18n.so
0x403f8574  0x40404394  Yes         /usr/lib/mozilla-1.7b/components/libjar50.so
0x40408b90  0x404115c0  Yes         /usr/lib/mozilla-1.7b/libmozz.so
0x404806c0  0x4055c7f4  Yes         /usr/lib/mozilla-1.7b/components/libnecko.so
0x40590028  0x405a19ac  Yes         /usr/lib/mozilla-1.7b/components/libnecko2.so
0x405bd008  0x405d924c  Yes         /usr/lib/mozilla-1.7b/libgkgfx.so
0x405f2704  0x406265cc  Yes         /usr/lib/mozilla-1.7b/components/libimglib2.so
0x4062faa0  0x406319fc  Yes         /usr/lib/mozilla-1.7b/libgtksuperwin.so
0x4065c940  0x40694950  Yes        
/usr/lib/mozilla-1.7b/components/libwidget_gtk.so
0x408cf660  0x40dcd4e8  Yes         /usr/lib/mozilla-1.7b/components/libgklayout.so

(gdb) info program
        Using the running image of child Thread 1074716400 (LWP 1378).
Program stopped at 0x40b57673.
It stopped with signal SIGSEGV, Segmentation fault.

(gdb) info threads
* 1 Thread 1074716400 (LWP 1378)  0x40b57673 in
__static_initialization_and_destruction_0(int, int) () at sstream.tcc:47

(gdb) info stack
#0  0x40b57673 in __static_initialization_and_destruction_0(int, int) () at
sstream.tcc:47
#1  0x40dcd4db in __do_global_ctors_aux () at sstream.tcc:47
#2  0x408cd2dd in _init () at sstream.tcc:47
#3  0x4ec2468e in _dl_init_internal () at sstream.tcc:47
#4  0xbfffef54 in ?? ()
#5  0xbfffef5c in ?? ()

(gdb) x 0x40b57673
0x40b57673 <_Z41__static_initialization_and_destruction_0ii+59>:        0x63f48389



Reproducible: Always
Steps to Reproduce:
1.build mozilla
2.install mozilla
3.launch mozilla

Actual Results:  
crash with the following error:
+++ JavaScript debugging hooks installed.
nsNativeComponentLoader: autoregistering begins.
*** Registering nsI18nModule components (all right -- a generic module!)
*** Registering nsJarModule components (all right -- a generic module!)
*** Registering necko_core_and_primary_protocols components (all right -- a
generic module!)
*** Registering necko_secondary_protocols components (all right -- a generic
module!)
*** Registering nsImageLib2Module components (all right -- a generic module!)
*** Registering nsWidgetGTKModule components (all right -- a generic module!)
 
Program /usr/lib/mozilla-1.7b/mozilla-bin (pid = 1323) received signal 11.
Stack:
UNKNOWN 0xffffe420
UNKNOWN [/usr/lib/mozilla-1.7b/components/libgklayout.so +0x0072D4DB]
UNKNOWN [/usr/lib/mozilla-1.7b/components/libgklayout.so +0x0022D2DD]
Sleeping for 5 minutes.
Type 'gdb /usr/lib/mozilla-1.7b/mozilla-bin 1323' to attach your debugger to
this thread.


Expected Results:  
start up normally.

libgklayout.so
(Reporter)

Comment 1

14 years ago
It might not even be a bug in Mozilla.... at the moment I am trying to re-build
with another compiler version. icc doesn't work, so the latest gcc-cvs...

(gdb) info source
Current source file is sstream.tcc
Compilation directory is
/usr/src/build-gcc-3.4-20040324/i686-pc-linux-gnu/libstdc++-v3/include/bits
Source language is c++.
Compiled with unknown debugging format.
Does not include preprocessor macro info.
(Reporter)

Comment 2

14 years ago
The problem persists after re-compiling with gcc 3.4.0 20040328 (prerelease).
Here is a more detailed debug output from gdb6.0:

*** Registering XRemoteClientModule components (all right -- a generic module!)
 
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.

which finally should isolate the problem to:

/nsEventListenerManager.cpp/1.162/Fri Feb 27 17:17:25 2004//
/nsEventListenerManager.h/1.65/Wed Feb 11 06:09:46 2004//

I cannot help any further. Thanks.
Component: Browser-General → DOM: Events

Comment 3

14 years ago
Well, this is a compiler Bug (see Bug 238368). He fixed it by using a newer
version of gcc package Debian released (where they backed out that patch). For
futher information, see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14640
(also this bug is reported against gcc 3.3, but it looks like the same issue).
Leaving open for now for other people, who might have the same issue.
(Reporter)

Comment 4

14 years ago
(In reply to comment #3)
> Well, this is a compiler Bug (see Bug 238368). He fixed it by using a newer
> version of gcc package Debian released (where they backed out that patch). For
> futher information, see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14640
> (also this bug is reported against gcc 3.3, but it looks like the same issue).
> Leaving open for now for other people, who might have the same issue.

I suppose you are right mate...

What sounds odd is that such bug is still present in the gcc 3.4 branch.

I am going to revert the patch which introduced the problem and provide you some
more details.

Also, if that proves to be the cause, we should update and confirm the bug in
gcc, so that hopefully the gcc mainteiners will fix it soon.

Thanks for your advice. Speak soon.
Summary: always crash at startup. compiled with gcc-3.4.0 (CVS) and glibc 2.3.3 (CVS) on a Linux system based on Fedora Core 1 and Torvald's kernel 2.6.4. → always crash at startup. possibly due to a bug in gcc-3.4.0.
(Reporter)

Comment 5

14 years ago
I can now confirm that it is a bug in gcc introduced by the fix for PR10776.

I am going to file a report to the gcc mainteiners.

*** This bug has been marked as a duplicate of 238368 ***
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → DUPLICATE
Summary: always crash at startup. possibly due to a bug in gcc-3.4.0. → mozilla always crash at startup: due to a bug in gcc-3.4.0.

Comment 6

14 years ago
Could you give me the bug # then, i'm also interested in this?
(Reporter)

Comment 7

14 years ago
It has been submitted with reference "Bug 14772". Cheers.
You need to log in before you can comment on or make changes to this bug.