Closed Bug 625096 Opened 14 years ago Closed 10 years ago

Crashes at start [Assertion failure: addr % sizeof(FreeCell) == 0]

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: kelk1, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0b8) Gecko/20100101 Firefox/4.0b8
Build Identifier: Firefox/4.0b10pre

When I try to run a locally built snapshot, it fails to start:

$ ./firefox -g -d gdb
./run-mozilla.sh -g -d gdb ./firefox-bin
MOZILLA_FIVE_HOME=/ffox40/ffbuild/dist/bin
  LD_LIBRARY_PATH=/ffox40/ffbuild/dist/bin:/ffox40/ffbuild/dist/bin/plugins:/ffox40/ffbuild/dist/bin:/usr/lib/xorg
DISPLAY=:0
DYLD_LIBRARY_PATH=/ffox40/ffbuild/dist/bin:/ffox40/ffbuild/dist/bin
     LIBRARY_PATH=/ffox40/ffbuild/dist/bin:/ffox40/ffbuild/dist/bin/components:/ffox40/ffbuild/dist/bin
       SHLIB_PATH=/ffox40/ffbuild/dist/bin:/ffox40/ffbuild/dist/bin
          LIBPATH=/ffox40/ffbuild/dist/bin:/ffox40/ffbuild/dist/bin
       ADDON_PATH=/ffox40/ffbuild/dist/bin
      MOZ_PROGRAM=./firefox-bin
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=gdb
moz_debugger_args=
/usr/bin/gdb  --args ./firefox-bin
GNU gdb (GDB) 7.1-4mdv2011.0 (Mandriva Linux release 2011.0)
Reading symbols from /ffox40/ffbuild/dist/bin/firefox-bin...done.
(gdb) run
Starting program: /ffox40/ffbuild/dist/bin/firefox-bin 
[Thread debugging using libthread_db enabled]
[New Thread 0xb4257b70 (LWP 4840)]
[New Thread 0xb3a56b70 (LWP 4841)]
[New Thread 0xb3255b70 (LWP 4842)]
[New Thread 0xb27ffb70 (LWP 4843)]
[New Thread 0xb1dffb70 (LWP 4844)]
[New Thread 0xb15feb70 (LWP 4845)]
pldhash: for the table at address 0xb4c6a0c8, the given entrySize of 48 probably favors chaining over double hashing.
[New Thread 0xb04dfb70 (LWP 4846)]
WARNING: 1 sort operation has occurred for the SQL statement '0xb287be28'.  See https://developer.mozilla.org/En/Storage/Warnings details.: file /ffox40/storage/src/mozStoragePrivateHelpers.cpp, line 139
WARNING: NS_ENSURE_TRUE(inFile) failed: file /ffox40/xpcom/io/nsLocalFileUnix.cpp, line 1548
WARNING: NS_ENSURE_TRUE(inFile) failed: file /ffox40/xpcom/io/nsLocalFileUnix.cpp, line 1548
pldhash: for the table at address 0xafa30658, the given entrySize of 52 probably favors chaining over double hashing.
[New Thread 0xaf995b70 (LWP 4851)]
[New Thread 0xaf194b70 (LWP 4852)]
pldhash: for the table at address 0xb05f68f0, the given entrySize of 80 definitely favors chaining over double hashing.
WARNING: NS_ENSURE_TRUE(inFile) failed: file /ffox40/xpcom/io/nsLocalFileUnix.cpp, line 1548
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /ffox40/js/src/xpconnect/loader/mozJSComponentLoader.cpp, line 869
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /ffox40/js/src/xpconnect/loader/mozJSComponentLoader.cpp, line 897
WARNING: NS_ENSURE_TRUE(inFile) failed: file /ffox40/xpcom/io/nsLocalFileUnix.cpp, line 1548
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /ffox40/js/src/xpconnect/loader/mozJSComponentLoader.cpp, line 869
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /ffox40/js/src/xpconnect/loader/mozJSComponentLoader.cpp, line 924
pldhash: for the table at address 0xac494468, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xac494400 == 1
pldhash: for the table at address 0xac7aed90, the given entrySize of 48 probably favors chaining over double hashing.
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
[New Thread 0xac19fb70 (LWP 4866)]
++DOMWINDOW == 1 (0xb4c251a4) [serial = 1] [outer = (nil)]
Missing separate debug info for /usr/lib/gnome-vfs-2.0/modules/libfile.so
Missing separate debug info for /usr/lib/libfam.so.0
WARNING: SQLite returned error code 1 , Storage will convert it to NS_ERROR_FAILURE: file /ffox40/storage/src/mozStoragePrivateHelpers.cpp, line 108
pldhash: for the table at address 0xac498268, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xac498200 == 2
++DOMWINDOW == 2 (0xb4c25ea4) [serial = 2] [outer = (nil)]
WARNING: Subdocument container has no content: file /ffox40/layout/base/nsDocumentViewer.cpp, line 2383
++DOMWINDOW == 3 (0xac32b204) [serial = 3] [outer = 0xb4c25e60]
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: The category has no corresponding type!: file /ffox40/dom/base/nsScriptNameSpaceManager.cpp, line 690
WARNING: The category has no corresponding type!: file /ffox40/dom/base/nsScriptNameSpaceManager.cpp, line 690
WARNING: The category has no corresponding type!: file /ffox40/dom/base/nsScriptNameSpaceManager.cpp, line 690
[New Thread 0xab7ffb70 (LWP 4867)]
WARNING: Subdocument container has no content: file /ffox40/layout/base/nsDocumentViewer.cpp, line 2383
++DOMWINDOW == 4 (0xac32b544) [serial = 4] [outer = 0xb4c25160]
WARNING: Subdocument container has no content: file /ffox40/layout/base/nsDocumentViewer.cpp, line 2383
Missing separate debug info for /usr/lib/libXss.so.1
pldhash: for the table at address 0xaadc7868, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xaadc7800 == 3
++DOMWINDOW == 5 (0xac32d904) [serial = 5] [outer = (nil)]
pldhash: for the table at address 0xaadc7a68, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xaadc7a00 == 4
++DOMWINDOW == 6 (0xac32dc44) [serial = 6] [outer = (nil)]
pldhash: for the table at address 0xaadc8468, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xaadc8400 == 5
++DOMWINDOW == 7 (0xac32efc4) [serial = 7] [outer = (nil)]
Missing separate debug info for /usr/lib/gio/modules/libgvfsdbus.so
Missing separate debug info for /usr/lib/libgvfscommon.so.0
Missing separate debug info for /lib/libudev.so.0
Missing separate debug info for /usr/lib/libexpat.so.1
pldhash: for the table at address 0xaadca668, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xaadca600 == 6
WARNING: NS_ENSURE_TRUE(browserChrome) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10706
WARNING: Something wrong when creating the docshell for a frameloader!: file /ffox40/content/base/src/nsFrameLoader.cpp, line 1330
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file /ffox40/content/base/src/nsFrameLoader.cpp, line 265
pldhash: for the table at address 0xaadca868, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0xaadca800 == 7
++DOMWINDOW == 8 (0xaabaabc4) [serial = 8] [outer = (nil)]
++DOMWINDOW == 9 (0xaababc04) [serial = 9] [outer = 0xaabaab80]
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(shell) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 10655
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
WARNING: NS_ENSURE_TRUE(sf) failed: file /ffox40/docshell/base/nsDocShell.cpp, line 4952
Assertion failure: addr % sizeof(FreeCell) == 0, at /ffox40/js/src/jsgc.h:359

Program received signal SIGABRT, Aborted.
0xffffe424 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7fbc5d0 in raise () from /lib/i686/libpthread.so.0
#2  0xb77d3d9e in JS_Assert (s=0xb7c33b45 "addr % sizeof(FreeCell) == 0", file=
    0xb7cc8130 "/ffox40/js/src/jsgc.h", ln=359)
    at /ffox40/js/src/jsutil.cpp:83
#3  0xb75ef8e8 in js::CompartmentChecker::check(JSObject*) ()
   from /ffox40/ffbuild/dist/bin/libxul.so
#4  0xb75d2a08 in check (cx=0xac32b020, obj=0xac245118, fval=..., argc=2, argv=
    0xa5c8dea0, rval=0xbfffe270) at /ffox40/js/src/jscntxtinlines.h:570
#5  check (cx=0xac32b020, obj=0xac245118, fval=..., argc=2, argv=0xa5c8dea0, 
    rval=0xbfffe270) at /ffox40/js/src/jscntxtinlines.h:574
#6  check (cx=0xac32b020, obj=0xac245118, fval=..., argc=2, argv=0xa5c8dea0, 
    rval=0xbfffe270) at /ffox40/js/src/jscntxtinlines.h:584
#7  assertSameCompartment<JSObject*, jsval_layout, JSValueArray> (cx=
    0xac32b020, obj=0xac245118, fval=..., argc=2, argv=0xa5c8dea0, rval=
    0xbfffe270) at /ffox40/js/src/jscntxtinlines.h:653
#8  JS_CallFunctionValue (cx=0xac32b020, obj=0xac245118, fval=..., argc=2, 
    argv=0xa5c8dea0, rval=0xbfffe270) at /ffox40/js/src/jsapi.cpp:5008
#9  0xb6c25c37 in nsJSContext::CallEventHandler (this=0xad0a9900, aTarget=
    0xac32b1c0, aScope=0xac245118, aHandler=0xa5b0e498, aargv=0xa5aa08c4, arv=
    0xbfffe3b4) at /ffox40/dom/base/nsJSEnvironment.cpp:2180
#10 0xb6c4ddba in nsGlobalWindow::RunTimeout (this=0xac32b1c0, aTimeout=
    0xaab79dd0) at /ffox40/dom/base/nsGlobalWindow.cpp:9048
#11 0xb6c4e3f3 in nsGlobalWindow::TimerCallback (aTimer=0xaab79e20, aClosure=
    0xaab79dd0) at /ffox40/dom/base/nsGlobalWindow.cpp:9393
#12 0xb74bc4ed in nsTimerImpl::Fire (this=0xaab79e20)
    at /ffox40/xpcom/threads/nsTimerImpl.cpp:425
#13 0xb74bc672 in nsTimerEvent::Run (this=0xa5aa08e0)
    at /ffox40/xpcom/threads/nsTimerImpl.cpp:517
#14 0xb74b720b in nsThread::ProcessNextEvent (this=0xb4cbf8e0, mayWait=0, 
    result=0xbfffe5ac) at /ffox40/xpcom/threads/nsThread.cpp:633
#15 0xb746dcff in NS_ProcessNextEvent_P (thread=<value optimized out>, mayWait=
    0) at nsThreadUtils.cpp:250
#16 0xb736bd65 in mozilla::ipc::MessagePump::Run (this=0xb4cc8340, aDelegate=
    0xb4c34520) at /ffox40/ipc/glue/MessagePump.cpp:110
#17 0xb74f4919 in MessageLoop::RunInternal (this=0xb4c34520)
    at /ffox40/ipc/chromium/src/base/message_loop.cc:219
---Type <return> to continue, or q <return> to quit---
#18 0xb74f497e in RunHandler (this=0xb4c34520)
    at /ffox40/ipc/chromium/src/base/message_loop.cc:202
#19 MessageLoop::Run (this=0xb4c34520)
    at /ffox40/ipc/chromium/src/base/message_loop.cc:176
#20 0xb728c16c in nsBaseAppShell::Run (this=0xb1ec25b0)
    at /ffox40/widget/src/xpwidgets/nsBaseAppShell.cpp:192
#21 0xb70daf4d in nsAppStartup::Run (this=0xb061a580)
    at /ffox40/toolkit/components/startup/src/nsAppStartup.cpp:191
#22 0xb6661b83 in XRE_main (argc=1, argv=0xbfffedc4, aAppData=0xb4c0e380)
    at /ffox40/toolkit/xre/nsAppRunner.cpp:3695
#23 0x0804951c in main (argc=1, argv=0xbfffedc4)
    at /ffox40/browser/app/nsBrowserApp.cpp:158
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) q

$ cat .mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ffbuild
. $topsrcdir/browser/config/mozconfig
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-xft
ac_add_options --disable-tests
ac_add_options --enable-debug
ac_add_options --enable-svg
ac_add_options --enable-pango
ac_add_options --enable-crypto
ac_add_options --enable-gnomevfs
ac_add_options --enable-gnomeui
ac_add_options --with-valgrind
ac_add_options --disable-installer
ac_add_options --disable-calendar
ac_add_options --disable-mailnews
ac_add_options --disable-chatzilla
ac_add_options --disable-composer
ac_add_options --disable-profilesharing
ac_add_options --disable-toolkit-qt
ac_add_options --disable-necko-wifi


Reproducible: Always

Steps to Reproduce:
1. clone the repository
2. create .mozconfig as above
3. make -f client.mk
4. ./ffbuild/dist/bin/firefox
Version: unspecified → Trunk
Your mozconfig seems a bit large. Do you have a need for all of those options. The simpler the better - this is mozilla-central, right? 

What happens when you pare it down to the smallest mozconfig possible? I have a fresh build on linux each morning and do not have this issue.
here is my mozconfig for a debug build:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-@CONFIG_GUESS@-debug
mk_add_options MOZ_MAKE_FLAGS=-j4
ac_add_options --enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-debug
ac_add_options --disable-optimize
ac_add_options --disable-static
ac_add_options --enable-shared
ac_add_options --enable-tests
Quel do you still see this problem?
Flags: needinfo?(kelk1)
Whiteboard: [closeme 2014-06-25]
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(kelk1)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2014-06-25]
You need to log in before you can comment on or make changes to this bug.