Ticket #3181 (new bug)

Opened 16 months ago

Last modified 2 months ago

firefox always crash on system shutdown/restart

Reported by: karmak Owned by: axeld
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1/pre-alpha1
Keywords: Cc: fredrik.holmqvist@…, olive@…
Blocked By: Platform: x86
Blocking:

Description

Sorry if this is not the right place to post this bug ; feel free to redirect me to the right place if needed.

Firefox 2.0.0.18 on Haiku r28734 on real hardware (IBM R52). This bug has happened since I use Haiku (approx. r28500). Did not test under qemu. This happens either on cross-compiled from linux and compiled from Haiku (since approx r28700 I acheived building Haiku from itself).

the bug: if I let firefox open before restarting or shuting down the system, everytime it will crash when asked to quit by the system. If I close it with Alt-W or Deskbar->Close, it closes properly. Backtrace :

#0  0xffff0104 in ?? ()
#1  0x01a00566 in debugger () from /boot/beos/system/lib/libroot.so
#2  0x01a09799 in __assert_fail () from /boot/beos/system/lib/libroot.so
#3  0x01a13b40 in BPrivate::threadHeap::malloc ()
   from /boot/beos/system/lib/libroot.so
#4  0x01a14494 in malloc () from /boot/beos/system/lib/libroot.so
#5  0x01571412 in JS_malloc () from /boot/apps/firefox/lib/libmozjs.so
#6  0x015f8f53 in js_ConcatStrings () from /boot/apps/firefox/lib/libmozjs.so
#7  0x015b2b6b in js_Interpret () from /boot/apps/firefox/lib/libmozjs.so
#8  0x015ade6c in js_Invoke () from /boot/apps/firefox/lib/libmozjs.so
#9  0x006c470b in nsXPCWrappedJSClass::CallMethod ()
#10 0x006c1154 in nsXPCWrappedJS::CallMethod ()
#11 0x016e6155 in PrepareAndDispatch ()
   from /boot/apps/firefox/lib/libxpcom_core.so
#12 0x01680e31 in nsObserverService::NotifyObservers ()
   from /boot/apps/firefox/lib/libxpcom_core.so
#13 0x0068e56d in nsXREDirProvider::DoShutdown ()
#14 0x0068ab30 in XRE_main ()
#15 0x006844e6 in main ()

Change History

Changed 16 months ago by tqh

  • cc fredrik.holmqvist@… added
  • component changed from - General to System/libroot.so

That stacktrace is quite interesting. I've always assumed it is a firefox bug, but from the looks firefox is trying to shutdown (nsXREDirProvider::DoShutdown), but something asserts inside Haiku's malloc. So this might be the right place (and it's better to report than not report at all).

Needs looking into.

Changed 16 months ago by karmak

  • cc olive@… added

Changed 2 months ago by korli

Could you check against a current revision ?

Note: See TracTickets for help on using tickets.