Closed Bug 477905 Opened 17 years ago Closed 10 years ago

Firefox Instrumented build on x86_64 systems including Ubuntu64 Bit and RHEL5 64bit crash at start-up

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: murali, Unassigned)

Details

(Keywords: crash)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2 Build Identifier: ./firefox *** Registering components in: Apprunner Program ./firefox-bin (pid = 12312) received signal 11. Stack: UNKNOWN [/lib/libpthread.so.0 +0x0000E7D0] strlen+0x00000010 [/lib/libc.so.6 +0x0007B060] UNKNOWN [./libthebes.so +0x0009B93D] UNKNOWN [./libthebes.so +0x0005804E] UNKNOWN [./libthebes.so +0x00235292] Sleeping for 300 seconds. Type 'gdb ./firefox-bin 12312' to attach your debugger to this thread. Reproducible: Always Steps to Reproduce: 1.Build Mozilla Firefox using the attached .mozconfig ( this works perfectly well on all 32 bit Unix/Linux platforms ) 2.Start the firefox using the regular command ./firefox in the OBJ_DIR/dist/bin 3.The Firefox app crashes with the error given in details. Actual Results: It should run in instrumented mode. Expected Results: Crashes The used .mozconfig file contents are as follows export CFLAGS="-fprofile-arcs -ftest-coverage" export CXXFLAGS="-fprofile-arcs -ftest-coverage" export LDFLAGS="-lgcov -static-libgcc" export EXTRA_DSO_LDFLAGS="-lgcov -static-libgcc" ac_add_options --enable-application=browser mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mozcentral-dbg ac_add_options --enable-debug ac_add_options --enable-tests ac_add_options --enable-mochitest ac_add_options --disable-optimize ac_add_options --disable-optimize ac_add_options --enable-chrome-format=flat mk_add_options MOZ_MAKE_FLAGS="-j3" mk_add_options AUTOCONF=autoconf2.13
Summary: Firefox Instrumentd build on x86_64 systems including Ubuntu64 Bit and RHEL5 64bit fail to start → Firefox Instrumentd build on x86_64 systems including Ubuntu64 Bit and RHEL5 64bit crash at start-up
Please use the given .mozconfig to build firefox on any Linux 64 bit OS.
please build --disable-strip --enable-debugger-info-modules w/o it, all we can see is that a strlen(0) was probably called from thebes, but thebes isn't trivial in size, which makes guessing which line called strlen too much work for a normal person to spend.
Here is the full back trace at the time of sig 11 #0 0x00007f1e03543b50 in nanosleep () from /lib/libc.so.6 #1 0x00007f1e035439a4 in sleep () from /lib/libc.so.6 #2 0x00007f1e07440712 in ah_crap_handler (signum=11) at /home/mnandigama/src/toolkit/xre/nsSigHandlers.cpp:149 #3 <signal handler called> #4 0x00007f1e03521060 in strlen () from /lib/libc.so.6 #5 0x00007f1df9f1693d in __gcov_init () from ./libthebes.so #6 0x00007f1df9ed304e in global constructors keyed to 0__ZN12gfxFontUtils21ReadCMAPTableFormat12EPhjR15gfxSparseBitSet () at /home/mnandigama/src/gfx/thebes/src/gfxFontUtils.cpp:1004 #7 0x00007f1dfa0b0292 in __do_global_ctors_aux () from ./libthebes.so #8 0x00007f1df9ea341b in _init () from ./libthebes.so #9 0x00007f1dfa59b940 in ?? () from /home/mnandigama/mozcentral-dbg/dist/bin/components/libwidget_gtk2.so #10 0x00007f1e078bc166 in ?? () from /lib64/ld-linux-x86-64.so.2 #11 0x00007f1e078bc28e in ?? () from /lib64/ld-linux-x86-64.so.2 #12 0x00007f1e078c028c in ?? () from /lib64/ld-linux-x86-64.so.2 #13 0x00007f1e078bbdf6 in ?? () from /lib64/ld-linux-x86-64.so.2 #14 0x00007f1e078bf91b in ?? () from /lib64/ld-linux-x86-64.so.2 #15 0x00007f1e06005f8b in ?? () from /lib/libdl.so.2 #16 0x00007f1e078bbdf6 in ?? () from /lib64/ld-linux-x86-64.so.2 #17 0x00007f1e060064ed in ?? () from /lib/libdl.so.2 #18 0x00007f1e06005ef1 in dlopen () from /lib/libdl.so.2 #19 0x00007f1e0623061a in pr_LoadLibraryByPathname ( name=0x7f1dff3e0608 "/home/mnandigama/mozcentral-dbg/dist/bin/components/libwidget_gtk2.so", flags=1) at /home/mnandigama/src/nsprpub/pr/src/linking/prlink.c:922 #20 0x00007f1e0623039d in PR_LoadLibraryWithFlags (libSpec= {type = PR_LibSpec_Pathname, value = {pathname = 0x7f1dff3e0608 "/home/mnandigama/mozcentral-dbg/dist/bin/components/libwidget_gtk2.so", mac_named_fragment = {fsspec = 0x7f1dff3e0608, name = 0x0}, mac_indexed_fragment = {fsspec = 0x7f1dff3e0608, index = 0}, pathname_u = 0x7f1dff3e0608}}, flags=1) at /home/mnandigama/src/nsprpub/pr/src/linking/prlink.c:554 #21 0x00007f1e06230447 in PR_LoadLibrary ( name=0x7f1dff3e0608 "/home/mnandigama/mozcentral-dbg/dist/bin/components/libwidget_gtk2.so") at /home/mnandigama/src/nsprpub/pr/src/linking/prlink.c:578 #22 0x00007f1e069b3700 in nsLocalFile::Load (this=0x7f1dff31bb00, _retval=0x7fff0faca678) at /home/mnandigama/src/xpcom/io/nsLocalFileUnix.cpp:1605 #23 0x00007f1e069de8c9 in nsNativeModuleLoader::LoadModule ( this=0x7f1dff3f7218, aFile=0x7f1dff31bb00, aResult=0x7fff0facac50) at /home/mnandigama/src/xpcom/components/nsNativeComponentLoader.cpp:159 #24 0x00007f1e069cb3e5 in nsComponentManagerImpl::AutoRegisterComponent ( this=0x7f1dff3f7160, aComponentFile=0x7f1dff31bb00, aDeferred=@0x7fff0facaea0, minLoader=-1) at /home/mnandigama/src/xpcom/components/nsComponentManager.cpp:3023 #25 0x00007f1e069cc214 in nsComponentManagerImpl::AutoRegisterDirectory ( this=0x7f1dff3f7160, inDirSpec=0x7f1dff31afc0, aLeftovers=@0x7fff0facaeb0, aDeferred=@0x7fff0facaea0) at /home/mnandigama/src/xpcom/components/nsComponentManager.cpp:2956 #26 0x00007f1e069cc4fa in nsComponentManagerImpl::AutoRegisterImpl ( this=0x7f1dff3f7160, inDirSpec=0x7f1dff31afc0, aLeftovers=@0x7fff0facaeb0, aDeferred=@0x7fff0facaea0) at /home/mnandigama/src/xpcom/components/nsComponentManager.cpp:2915 #27 0x00007f1e069d0677 in nsComponentManagerImpl::AutoRegister ( this=0x7f1dff3f7160, aSpec=0x0) at /home/mnandigama/src/xpcom/components/nsComponentManager.cpp:3327 #28 0x00007f1e0691d49a in NS_InitXPCOM3_P (result=0x7fff0facb270, binDirectory=0x7f1dff31a180, appFileLocationProvider=0x7fff0facb6f0, staticComponents=0x7f1e076731a0, componentCount=1) at /home/mnandigama/src/xpcom/build/nsXPComInit.cpp:687 #29 0x00007f1e0741569a in ScopedXPCOMStartup::Initialize (this=0x7fff0facb270) at /home/mnandigama/src/toolkit/xre/nsAppRunner.cpp:945 #30 0x00007f1e0741704f in ProfileLockedDialog (aProfileDir=0x7f1dff31ac00, aProfileLocalDir=0x7f1dff31ac00, aUnlocker=0x0, aNative=0x7f1dff375480, aResult=0x7fff0facb9c0) at /home/mnandigama/src/toolkit/xre/nsAppRunner.cpp:1610 #31 0x00007f1e0741b454 in SelectProfile (aResult=0x7fff0facb9c0, aNative=0x7f1dff375480, aStartOffline=0x7fff0facbafc, aProfileName=0x7fff0facbbe0) at /home/mnandigama/src/toolkit/xre/nsAppRunner.cpp:2054 #32 0x00007f1e0741e681 in XRE_main (argc=1, argv=0x7fff0facbe78, aAppData=0x7f1dff31f080) at /home/mnandigama/src/toolkit/xre/nsAppRunner.cpp:2940 #33 0x00000000004027fa in main (argc=1, argv=0x7fff0facbe78) at /home/mnandigama/src/browser/app/nsBrowserApp.cpp:156
(In reply to comment #3) > Here is the full back trace at the time of sig 11 > > #0 0x00007f1e03543b50 in nanosleep () from /lib/libc.so.6 > #1 0x00007f1e035439a4 in sleep () from /lib/libc.so.6 > #2 0x00007f1e07440712 in ah_crap_handler (signum=11) > at /home/mnandigama/src/toolkit/xre/nsSigHandlers.cpp:149 > #3 <signal handler called> > #4 0x00007f1e03521060 in strlen () from /lib/libc.so.6 > #5 0x00007f1df9f1693d in __gcov_init () from ./libthebes.so Sounds like a gcc bug, or something. __gcov_init sure isn't our code, and it's calling strlen with (presumably) bad parameters, and segfaulting on you.
Murali, does this mozconfig still cause startup crashes for you?
I will let you know by the end of the day. I have given up attempts on X64 systems lately.
Still happens
Status: UNCONFIRMED → NEW
Ever confirmed: true
so, youre goig to need to get a debugger and probably an object dumper, plus symbols for your entire stack (at least libc.so.6) w/ the debugger, we need at least to know what the argument to strlen was and how it was crashing. and we need annotated disassembly for __gcov_init... the trick is to figure out which static gcc is poking and how.
Severity: normal → critical
Keywords: crash
I have to re setup by build env and run and provide you the details. Please give a couple of days
(In reply to Murali Nandigama [:murali] from comment #9) > I have to re setup by build env and run and provide you the details. Please > give a couple of days Is this still an ongoing thing?
Flags: needinfo?(murali.nandigama)
Summary: Firefox Instrumentd build on x86_64 systems including Ubuntu64 Bit and RHEL5 64bit crash at start-up → Firefox Instrumented build on x86_64 systems including Ubuntu64 Bit and RHEL5 64bit crash at start-up
I am sorry Wayne, I am no longer pursuing active development with Firefox builds. You may want to make an appropriate decision on this bug and act accordingly.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(murali.nandigama)
Resolution: --- → FIXED
Resolution: FIXED → WONTFIX
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.