Closed
Bug 20763
Opened 26 years ago
Closed 26 years ago
JS_Assert() [and then abort] when I close the "Account Setup" dialog
Categories
(Core :: XUL, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
M14
People
(Reporter: sspitzer, Assigned: waterson)
Details
it doesn't happen every time, but it has happened three times out of six.
I launch messenger, and then go "Edit | Account Setup", tweak some values hit
ok, boom.
cc'ing waterson, as this may be a duplicate of a bug he logged recently.
#1 0x4020bf7b in raise (sig=6) at signals.c:63
#2 0x402be447 in abort () at ../sysdeps/generic/abort.c:88
#3 0x400d14ab in JS_Assert (s=0x400d9e74 "root_points_to_gcArenaPool",
file=0x400d9e52 "jsgc.c", ln=663) at jsutil.c:146
#4 0x40085804 in gc_root_marker (he=0x8a2d478, i=192, arg=0x81fb1c0) at
jsgc.c:663
#5 0x40086e51 in JS_HashTableEnumerateEntries (ht=0x81fd3a0, f=0x40085734
<gc_root_marker>, arg=0x81fb1c0) at jshash.c:363
#6 0x40085a75 in js_GC (cx=0x8a23698) at jsgc.c:780
#7 0x40085875 in js_ForceGC (cx=0x8a23698) at jsgc.c:678
#8 0x40059bd7 in JS_GC (cx=0x8a23698) at jsapi.c:1159
#9 0x404174cd in nsJSContext::GC (this=0x8a7b240) at nsJSEnvironment.cpp:717
#10 0x404263f2 in GlobalWindowImpl::SetNewDocument (this=0x8a23608,
aDocument=0x0) at nsGlobalWindow.cpp:327
#11 0x41136f34 in DocumentViewerImpl::~DocumentViewerImpl (this=0x8a27028,
__in_chrg=3) at nsDocumentViewer.cpp:309
#12 0x41136c35 in DocumentViewerImpl::Release (this=0x8a27028) at
nsDocumentViewer.cpp:252
#13 0x40aadb72 in nsWebShell::Destroy (this=0x8c32da8) at nsWebShell.cpp:3784
#14 0x40aa36ad in nsWebShell::DestroyChildren (this=0x8bf72a0) at
nsWebShell.cpp:755
#15 0x40aadb88 in nsWebShell::Destroy (this=0x8bf72a0) at nsWebShell.cpp:3787
#16 0x4054ae56 in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/libnsappshell.so
#17 0x404292ad in GlobalWindowImpl::Close (this=0x8bc6da0) at
nsGlobalWindow.cpp:1313
#18 0x4042933f in GlobalWindowImpl::CloseWindow (aWindow=0x8bc6da4) at
nsGlobalWindow.cpp:1324
#19 0x4041750b in nsJSContext::ScriptEvaluated (this=0x89cf410) at
nsJSEnvironment.cpp:725
#20 0x40416c34 in nsJSContext::CallFunction (this=0x89cf410, aObj=0x8b15b30,
aFunction=0x8ae5ac0, argc=1, argv=0xbfffc600, aBoolResult=0xbfffc54c) at
nsJSEnvironment.cpp:543
#21 0x40451bfb in nsJSEventListener::HandleEvent (this=0x89b7db8,
aEvent=0x8b58fdc) at nsJSEventListener.cpp:133
#22 0x40f049c9 in nsEventListenerManager::HandleEventSubType (this=0x885cd10,
aListenerStruct=0x8abd908, aDOMEvent=0x8b58fdc, aSubType=4) at
nsEventListenerManager.cpp:632
#23 0x40f04f7a in nsEventListenerManager::HandleEvent (this=0x885cd10,
aPresContext=0x89be470, aEvent=0xbfffcb08, aDOMEvent=0xbfffcab4, aFlags=7,
aEventStatus=0xbfffcedc) at nsEventListenerManager.cpp:767
#24 0x409b370c in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/components/librdf.so
#25 0x40f0b322 in nsEventStateManager::CheckForAndDispatchClick (this=0x8aa2a60,
aPresContext=0x89be470, aEvent=0xbfffcfe0, aStatus=0xbfffcedc) at
nsEventStateManager.cpp:1376
#26 0x40f091ae in nsEventStateManager::PostHandleEvent (this=0x8aa2a60,
aPresContext=0x89be470, aEvent=0xbfffcfe0, aTargetFrame=0x89d41c8,
aStatus=0xbfffcedc, aView=0x89b7558) at nsEventStateManager.cpp:645
#27 0x40f57a95 in PresShell::HandleEvent (this=0x8c13258, aView=0x89b7558,
aEvent=0xbfffcfe0, aEventStatus=0xbfffcedc) at nsPresShell.cpp:2458
#28 0x413af5a9 in nsView::HandleEvent (this=0x89b7558, event=0xbfffcfe0,
aEventFlags=28, aStatus=0xbfffcedc, aHandled=@0xbfffce80) at nsView.cpp:840
#29 0x413bb283 in nsViewManager::DispatchEvent (this=0x8c130d0,
aEvent=0xbfffcfe0, aStatus=0xbfffcedc) at nsViewManager.cpp:1676
#30 0x413ad674 in HandleEvent (aEvent=0xbfffcfe0) at nsView.cpp:68
#31 0x40684d6b in nsWidget::DispatchEvent (this=0x8c13158, aEvent=0xbfffcfe0,
aStatus=@0xbfffcf78) at nsWidget.cpp:1413
#32 0x4068499c in nsWidget::DispatchWindowEvent (this=0x8c13158,
event=0xbfffcfe0) at nsWidget.cpp:1304
#33 0x40684e25 in nsWidget::DispatchMouseEvent (this=0x8c13158,
aEvent=@0xbfffcfe0) at nsWidget.cpp:1440
#34 0x406863bf in nsWidget::OnButtonReleaseSignal (this=0x8c13158,
aGdkButtonEvent=0x8142c74) at nsWidget.cpp:2082
#35 0x4068a185 in nsWindow::HandleGDKEvent (this=0x8c13158, event=0x8142c74) at
nsWindow.cpp:882
#36 0x40677efd in handle_gdk_event (event=0x8142c74, data=0x0) at
nsGtkEventHandler.cpp:886
#37 0x407eb0fb in ?? () from /usr/lib/libgdk-1.2.so.0
#38 0x40818a86 in ?? () from /usr/lib/libglib-1.2.so.0
#39 0x40819041 in ?? () from /usr/lib/libglib-1.2.so.0
#40 0x408190f4 in ?? () from /usr/lib/libglib-1.2.so.0
#41 0x4066d837 in nsAppShell::DispatchNativeEvent (this=0x8d57958, aRealEvent=0,
aEvent=0x0) at nsAppShell.cpp:438
#42 0x40550992 in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/libnsappshell.so
#43 0x40550781 in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/libnsappshell.so
#44 0x40550c0e in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/libnsappshell.so
#45 0x4042c236 in GlobalWindowImpl::OpenInternal (this=0x82dfa28, cx=0x82dfae8,
argv=0x82fb29c, argc=4, aDialog=1, aReturn=0xbfffd618) at
nsGlobalWindow.cpp:2264
#46 0x4042b740 in GlobalWindowImpl::OpenDialog (this=0x82dfa28, cx=0x82dfae8,
argv=0x82fb29c, argc=4, aReturn=0xbfffd618) at nsGlobalWindow.cpp:2125
#47 0x404201c8 in WindowOpenDialog (cx=0x82dfae8, obj=0x82006e8, argc=4,
argv=0x82fb29c, rval=0xbfffd6c4) at nsJSWindow.cpp:2546
#48 0x4008832e in js_Invoke (cx=0x82dfae8, argc=4, flags=0) at jsinterp.c:665
#49 0x40096aa1 in js_Interpret (cx=0x82dfae8, result=0xbfffe08c) at
jsinterp.c:2226
#50 0x4008838d in js_Invoke (cx=0x82dfae8, argc=0, flags=0) at jsinterp.c:681
#51 0x40096aa1 in js_Interpret (cx=0x82dfae8, result=0xbfffea80) at
jsinterp.c:2226
#52 0x4008838d in js_Invoke (cx=0x82dfae8, argc=1, flags=2) at jsinterp.c:681
#53 0x400886a8 in js_InternalCall (cx=0x82dfae8, obj=0x8557e48, fval=139820632,
argc=1, argv=0xbfffecec, rval=0xbfffebe4) at jsinterp.c:758
#54 0x4005d4a8 in JS_CallFunction (cx=0x82dfae8, obj=0x8557e48, fun=0x84d2440,
argc=1, argv=0xbfffecec, rval=0xbfffebe4) at jsapi.c:2719
#55 0x40416be1 in nsJSContext::CallFunction (this=0x82dfab8, aObj=0x8557e48,
aFunction=0x84d2440, argc=1, argv=0xbfffecec, aBoolResult=0xbfffec38) at
nsJSEnvironment.cpp:537
#56 0x40451bfb in nsJSEventListener::HandleEvent (this=0x8413780,
aEvent=0x894f664) at nsJSEventListener.cpp:133
#57 0x40f049c9 in nsEventListenerManager::HandleEventSubType (this=0x8413740,
aListenerStruct=0x84137b0, aDOMEvent=0x894f664, aSubType=8) at
nsEventListenerManager.cpp:632
#58 0x40f067aa in nsEventListenerManager::HandleEvent (this=0x8413740,
aPresContext=0x82df7f8, aEvent=0xbffff200, aDOMEvent=0xbffff1a0, aFlags=7,
aEventStatus=0xbffff240) at nsEventListenerManager.cpp:1376
#59 0x409b370c in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/components/librdf.so
#60 0x4111f2c4 in nsMenuFrame::Execute (this=0x8815088) at nsMenuFrame.cpp:1176
#61 0x4111b609 in nsMenuFrame::HandleEvent (this=0x8815088,
aPresContext=0x82df7f8, aEvent=0xbffff640, aEventStatus=0xbffff53c) at
nsMenuFrame.cpp:282
#62 0x40f57a20 in PresShell::HandleEvent (this=0x82f7358, aView=0x87aa020,
aEvent=0xbffff640, aEventStatus=0xbffff53c) at nsPresShell.cpp:2453
#63 0x413af5a9 in nsView::HandleEvent (this=0x87aa020, event=0xbffff640,
aEventFlags=8, aStatus=0xbffff53c, aHandled=@0xbffff4e0) at nsView.cpp:840
#64 0x413af53d in nsView::HandleEvent (this=0x82fb1d0, event=0xbffff640,
aEventFlags=28, aStatus=0xbffff53c, aHandled=@0xbffff4e0) at nsView.cpp:824
#65 0x413bb283 in nsViewManager::DispatchEvent (this=0x82f6db8,
aEvent=0xbffff640, aStatus=0xbffff53c) at nsViewManager.cpp:1676
#66 0x413ad674 in HandleEvent (aEvent=0xbffff640) at nsView.cpp:68
#67 0x40684d6b in nsWidget::DispatchEvent (this=0x87aab10, aEvent=0xbffff640,
aStatus=@0xbffff5d8) at nsWidget.cpp:1413
#68 0x4068499c in nsWidget::DispatchWindowEvent (this=0x87aab10,
event=0xbffff640) at nsWidget.cpp:1304
#69 0x40684e25 in nsWidget::DispatchMouseEvent (this=0x87aab10,
aEvent=@0xbffff640) at nsWidget.cpp:1440
#70 0x406863bf in nsWidget::OnButtonReleaseSignal (this=0x87aab10,
aGdkButtonEvent=0x8142c18) at nsWidget.cpp:2082
#71 0x4068a185 in nsWindow::HandleGDKEvent (this=0x87aab10, event=0x8142c18) at
nsWindow.cpp:882
#72 0x40677efd in handle_gdk_event (event=0x8142c18, data=0x0) at
nsGtkEventHandler.cpp:886
#73 0x407eb0fb in ?? () from /usr/lib/libgdk-1.2.so.0
#74 0x40818a86 in ?? () from /usr/lib/libglib-1.2.so.0
#75 0x40819041 in ?? () from /usr/lib/libglib-1.2.so.0
#76 0x408191e1 in ?? () from /usr/lib/libglib-1.2.so.0
#77 0x407427a9 in ?? () from /usr/lib/libgtk-1.2.so.0
#78 0x4066d765 in nsAppShell::Run (this=0x80b6bd0) at nsAppShell.cpp:404
#79 0x40548851 in ?? () from
/builds/seth/seamonkey/mozilla/dist/bin/libnsappshell.so
#80 0x804bfed in main1 (argc=1, argv=0xbffff9c4) at nsAppRunner.cpp:613
#81 0x804c339 in main (argc=1, argv=0xbffff9c4) at nsAppRunner.cpp:683
#82 0x402b6cb3 in __libc_start_main (main=0x804c128 <main>, argc=1,
argv=0xbffff9c4, init=0x804a248 <_init>, fini=0x8050ba8 <_fini>,
rtld_fini=0x4000a350, stack_end=0xbffff9bc) at
../sysdeps/generic/libc-start.c:78
Updated•26 years ago
|
Assignee: mccabe → rogerl
Comment 1•26 years ago
|
||
Roger, could you look at this?
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 2•26 years ago
|
||
as of build from 12/13 - i changed bits in the account setup about twenty times
and never saw this crash (I was running on NT though). Anybody care to try
reproducing this ?
Comment 3•26 years ago
|
||
I can produce what I think might be the same bug when I exit mozilla. It seems
to happen when the component registry and a new profile are both created
(although that might just be luck). It does not happen every time. Anyway,
here's my stack trace:
#0 0x402e34e1 in __kill () from /lib/libc.so.6
#1 0x402311eb in raise (sig=6) at signals.c:64
#2 0x402e4868 in abort () at ../sysdeps/generic/abort.c:88
#3 0x400d376b in JS_Assert (s=0x400dc134 "root_points_to_gcArenaPool",
file=0x400dc112 "jsgc.c", ln=663) at jsutil.c:146
#4 0x40087854 in gc_root_marker (he=0x833c058, i=5, arg=0x80aac28)
at jsgc.c:663
#5 0x40088ea1 in JS_HashTableEnumerateEntries (ht=0x806b840,
f=0x40087784 <gc_root_marker>, arg=0x80aac28) at jshash.c:363
#6 0x40087ac5 in js_GC (cx=0x81e36d8) at jsgc.c:780
#7 0x400878c5 in js_ForceGC (cx=0x81e36d8) at jsgc.c:678
#8 0x4005bc07 in JS_GC (cx=0x81e36d8) at jsapi.c:1165
#9 0x411367d1 in nsJSContext::GC (this=0x820f550) at nsJSEnvironment.cpp:747
#10 0x41145902 in GlobalWindowImpl::SetNewDocument (this=0x81ef238,
aDocument=0x0) at nsGlobalWindow.cpp:370
#11 0x40fb6344 in DocumentViewerImpl::~DocumentViewerImpl (this=0x8397700,
__in_chrg=3) at nsDocumentViewer.cpp:312
#12 0x40fb6045 in DocumentViewerImpl::Release (this=0x8397700)
at nsDocumentViewer.cpp:255
#13 0x41cc522e in nsCOMPtr<nsIContentViewer>::assign_assuming_AddRef (
this=0x81f84e4, newPtr=0x0) at ../../dist/include/nsCOMPtr.h:415
#14 0x41cc5274 in nsCOMPtr<nsIContentViewer>::assign_with_AddRef (
this=0x81f84e4, rawPtr=0x0) at ../../dist/include/nsCOMPtr.h:760
#15 0x41ccc47f in nsCOMPtr<nsIContentViewer>::operator= (this=0x81f84e4,
rhs=0x0) at ../../dist/include/nsCOMPtr.h:515
#16 0x41cbf9f8 in nsWebShell::Destroy (this=0x81f8470) at nsWebShell.cpp:3629
#17 0x41b49738 in nsWebShellWindow::Close (this=0x81134b8)
at nsWebShellWindow.cpp:438
#18 0x41b46408 in nsAppShellService::~nsAppShellService (this=0x816b518,
__in_chrg=3) at nsAppShellService.cpp:155
#19 0x41b46559 in nsAppShellService::Release (this=0x816b518)
at nsAppShellService.cpp:170
#20 0x4016cc16 in DeleteEntry (aKey=0x816b568, aData=0x816b550, closure=0x0)
at nsServiceManager.cpp:216
#21 0x40135984 in _hashEnumerateRemove (he=0x816b580, i=48, arg=0xbffff904)
at nsHashtable.cpp:227
#22 0x401da381 in PL_HashTableEnumerateEntries (ht=0x8056060,
f=0x40135948 <_hashEnumerateRemove(PLHashEntry *, int, void *)>,
arg=0xbffff904) at plhash.c:368
#23 0x40135a16 in nsHashtable::Reset (this=0x8056040,
destroyFunc=0x4016cbd4 <DeleteEntry(nsHashKey *, void *, void *)>,
closure=0x0) at nsHashtable.cpp:243
#24 0x40135dc2 in nsObjectHashtable::Reset (this=0x8056040)
at nsHashtable.cpp:343
#25 0x40135c86 in nsObjectHashtable::~nsObjectHashtable (this=0x8056040,
__in_chrg=3) at nsHashtable.cpp:309
#26 0x4016cd61 in nsServiceManagerImpl::~nsServiceManagerImpl (this=0x8056028,
__in_chrg=3) at nsServiceManager.cpp:241
#27 0x4016ce81 in nsServiceManagerImpl::Release (this=0x8056028)
at nsServiceManager.cpp:250
#28 0x4016d76a in nsServiceManager::ShutdownGlobalServiceManager (result=0x0)
at nsServiceManager.cpp:490
#29 0x4012f079 in NS_ShutdownXPCOM (servMgr=0x0) at nsXPComInit.cpp:533
#30 0x804c516 in main (argc=1, argv=0xbffffb24) at nsAppRunner.cpp:727
Updated•26 years ago
|
Assignee: rogerl → shaver
Status: ASSIGNED → NEW
Comment 4•26 years ago
|
||
The root in question is named "nsXULPrototypeDocument::mScriptObject", so it
sounds like maybe we're not getting the runtime service in order to release the
root from nsXULPrototypeDocument's destructor?
Should we just hold a ref to the rtsvc to keep it from going away during the
lifetime of the prototype doc iff we have a script object?
| Reporter | ||
Comment 5•26 years ago
|
||
funny, I'm not seeing this anymore, and I've been pounding on the account
manager dialog.
but, I do see a different bug, which is "after the first launch of the 'Account
Setup Dialog' I get a JS error."
see http://bugzilla.mozilla.org/show_bug.cgi?id=22989
Updated•26 years ago
|
Assignee: shaver → waterson
Component: Javascript Engine → XUL
Comment 6•26 years ago
|
||
Waterson's gonna kill this.
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M14
| Assignee | ||
Comment 7•26 years ago
|
||
we should hold on to the runtime service.
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Comment 8•26 years ago
|
||
closing this bug. my diffs for 23905 removed the need to use the runtime
service at all.
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Comment 10•26 years ago
|
||
Worksforme:
Platform: PC
OS: Red Hat 6.2 (Linux 2.2.14)
Mozilla: 2000101212 M18 Trunk Build
Marking as Verified.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: rginda → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•