Closed Bug 275374 Opened 20 years ago Closed 19 years ago

segfault in startup iwith gcc-3.3 / amd64

Categories

(Core :: XPCOM, defect)

1.7 Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 249475

People

(Reporter: florian, Assigned: dougt)

Details

(Keywords: crash)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20040924 Debian/1.7.3-1ubuntu1
Build Identifier: mozilla-source-1.7.5.tar.bz2

I downloaded the 1.7.5 source and compiled it on ubuntu 4.10 / AMD64, with gcc
(GCC) 3.3.4 (Debian 1:3.3.4-9ubuntu5), and I get:

 $ ./mozilla --debug --debugger=gdb
./run-mozilla.sh -g ./mozilla-bin --debugger=gdb
MOZILLA_FIVE_HOME=.
  LD_LIBRARY_PATH=.:./plugins:/usr/local/lib/mre/mre-1.7.5
DISPLAY=:0.0
DYLD_LIBRARY_PATH=.:/usr/local/lib/mre/mre-1.7.5
     LIBRARY_PATH=.:./components:/usr/local/lib/mre/mre-1.7.5
       SHLIB_PATH=.:/usr/local/lib/mre/mre-1.7.5
          LIBPATH=.:/usr/local/lib/mre/mre-1.7.5
       ADDON_PATH=.
      MOZ_PROGRAM=./mozilla-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
/usr/bin/gdb ./mozilla-bin -x /tmp/mozargs4533
GNU gdb 6.1-debian
Copyright 2004 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 "x86_64-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/hars/download/mozilla/obj/dist/bin/mozilla-bin
--debugger=gdb
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 4554)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 4554)]
0x0000002a9898d8f0 in non-virtual thunk to nsDirectoryService::AddRef() ()
   from /home/hars/download/mozilla/obj/dist/bin/libxpcom.so
(gdb) bt
#0  0x0000002a9898d8f0 in non-virtual thunk to nsDirectoryService::AddRef() ()
   from /home/hars/download/mozilla/obj/dist/bin/libxpcom.so
#1  0x0000002a9898c864 in nsDirectoryService::QueryInterface (this=0x5a37c0,
    aIID=@0x439c20, aInstancePtr=0x2a98b678b8)
    at /home/hars/download/mozilla/xpcom/io/nsDirectoryService.cpp:560
#2  0x0000002a9898c428 in nsDirectoryService::Create (outer=0x0,
    aIID=@0x439c20, aResult=0x2a98b678b8)
    at /home/hars/download/mozilla/xpcom/io/nsDirectoryService.cpp:433
#3  0x0000002a98959fbd in NS_InitXPCOM2 (result=0x7fbffff520,
    binDirectory=0x0, appFileLocationProvider=0x5a30d0)
    at /home/hars/download/mozilla/xpcom/build/nsXPComInit.cpp:457
#4  0x000000000043733c in NS_InitXPCOM2 (result=0x7fbffff520,
    binDirectory=0x0, appFileLocationProvider=0x5a30d0)
    at /home/hars/download/mozilla/xpcom/glue/standalone/nsXPCOMGlue.cpp:178
#5  0x0000000000437b46 in GRE_Startup ()
    at /home/hars/download/mozilla/xpcom/glue/standalone/nsXPCOMGlue.cpp:482
#6  0x000000000041e924 in main (argc=2, argv=0x7fbffff628)
    at /home/hars/download/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1706

If I get gcc-3.4 and g++-3.4 the compiled program works.

Reproducible: Always

Steps to Reproduce:
1. Compile Mozilla with gcc-3.3 on Ubuntu linux 4.10 amd64
2. Start Mozilla
3.

Actual Results:  
Mozilla segfaults

Expected Results:  
Mozilla should have started
Severity: normal → critical
Keywords: crash
Assignee: general → dougt
Component: General → XPCOM
Product: Mozilla Application Suite → Core
QA Contact: general
Version: unspecified → 1.7 Branch
this is a GCC bug, upgrade to 3.4.

*** This bug has been marked as a duplicate of 249475 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.