Closed
Bug 3792
Opened 26 years ago
Closed 26 years ago
apprunner from the CVS crashes with a SIGSEV
Categories
(Core Graveyard :: Tracking, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
M3
People
(Reporter: dejong, Assigned: rods)
Details
I compiled mozilla from the CVS (dated Thu Mar 4 1999), but when
I ran the "apprunner" program I got a SIGSEV because a null pointer
was used in a function invocation. Here is a stack trace from the
SIGSEV along with the gdb output of the variable.
SIGSEV
#0 0xed5df710 in nsBaseAppCore::FindNamedDOMNode (this=0x38b558,
aName=@0xefffd418, aParent=0x0, aCount=@0xefffd4c4, aEndCount=1)
at ../../../../xpfe/AppCores/src/nsBaseAppCore.cpp:147
147 aParent->GetFirstChild(getter_AddRefs(node));
(gdb) bt
#0 0xed5df710 in nsBaseAppCore::FindNamedDOMNode (this=0x38b558,
aName=@0xefffd418, aParent=0x0, aCount=@0xefffd4c4, aEndCount=1)
at ../../../../xpfe/AppCores/src/nsBaseAppCore.cpp:147
#1 0xed5e6884 in nsBrowserAppCore::SetButtonImage (this=0x38b558,
aParentNode=0x2c6490, aBtnNum=1, aResName=@0xefffd538)
at ../../../../xpfe/AppCores/src/nsBrowserAppCore.cpp:359
#2 0xed5e6ccc in nsBrowserAppCore::PrintPreview (this=0x38b558) at
../../../../xpfe/AppCores/src/nsBrowserAppCore.cpp:399
#3 0xed5f1cdc in BrowserAppCorePrintPreview (cx=0x2ca2c0, obj=0x33e450, argc=0,
argv=0x34e230, rval=0xefffd6e4)
at ../../../../xpfe/AppCores/src/nsJSBrowserAppCore.cpp:412
#4 0xeea48518 in js_Invoke (cx=0x2ca2c0, argc=0, constructing=0) at
../../../js/src/jsinterp.c:650
#5 0xeea53f9c in js_Interpret (cx=0x2ca2c0, result=0xefffd9d8) at
../../../js/src/jsinterp.c:2183
#6 0xeea48598 in js_Invoke (cx=0x2ca2c0, argc=0, constructing=0) at
../../../js/src/jsinterp.c:666
#7 0xeea53f9c in js_Interpret (cx=0x2ca2c0, result=0xefffde14) at
../../../js/src/jsinterp.c:2183
#8 0xeea48be8 in js_Execute (cx=0x2ca2c0, chain=0x209c98, script=0x3cf878,
fun=0x0, down=0x0, debugging=0, result=0xefffde14)
at ../../../js/src/jsinterp.c:815
#9 0xeea1974c in JS_EvaluateUCScriptForPrincipals (cx=0x2ca2c0, obj=0x209c98,
principals=0x0, chars=0x376490, length=22, filename=0xef7988f0 "", lineno=0,
rval=0xefffde14) at ../../../js/src/jsapi.c:2324
#10 0xeeb1dad4 in nsJSContext::EvaluateString (this=0x2bbbd8, aScript=@0x376468,
aURL=0xef7988f0 "", aLineNo=0, aRetValue=@0xefffde88,
aIsUndefined=0xefffde9c) at ../../../../dom/src/base/nsJSEnvironment.cpp:89
#11 0xef78afcc in nsXULCommand::ExecuteJavaScriptString (this=0x376460,
aWebShell=0x2c10f0, aJavaScript=@0x376468)
at ../../../../xpfe/appshell/src/nsXULCommand.cpp:171
#12 0xef78ad0c in nsXULCommand::DoCommand (this=0x376460) at
../../../../xpfe/appshell/src/nsXULCommand.cpp:133
#13 0xef78b080 in nsXULCommand::MenuSelected (this=0x376460,
aMenuEvent=@0xefffe0e8) at ../../../../xpfe/appshell/src/nsXULCommand.cpp:185
#14 0xef6b7ae0 in nsMenuItem::MenuSelected (this=0x375c88,
aMenuEvent=@0xefffe0e8) at ../../../../widget/src/gtk/nsMenuItem.cpp:327
#15 0xef6b9a98 in menu_item_activate_handler (w=0x1b6688, p=0x375c88) at
../../../../widget/src/gtk/nsGtkEventHandler.cpp:592
#16 0xee8e2af0 in gtk_marshal_NONE__NONE (object=0x1b6688, func=0xef6b9928
<menu_item_activate_handler(_GtkWidget *, void *)>, func_data=0x375c88,
args=0xefffe320) at gtkmarshal.c:363
#17 0xee88ba70 in gtk_handlers_run (handlers=0x30c398, signal=0xefffe280,
object=0x1b6688, params=0xefffe320, after=0) at gtksignal.c:1909
#18 0xee88a98c in gtk_signal_real_emit (object=0x1b6688, signal_id=89,
params=0xefffe320) at gtksignal.c:1469
#19 0xee887ad0 in gtk_signal_emit (object=0x1b6688, signal_id=89) at
gtksignal.c:552
#20 0xee8d4550 in gtk_widget_activate (widget=0x1) at gtkwidget.c:2810
#21 0xee853040 in gtk_menu_shell_activate_item (menu_shell=0x36fdf0,
menu_item=0x1b6688, force_deactivate=1) at gtkmenushell.c:834
#22 0xee851b7c in gtk_menu_shell_button_release (widget=0x1b6688, event=0xdcee0)
at gtkmenushell.c:497
#23 0xee8e2880 in gtk_marshal_BOOL__POINTER (object=0x36fdf0, func=0xee8518cc
<gtk_menu_shell_button_release>, func_data=0x0, args=0xefffe920)
at gtkmarshal.c:32
#24 0xee88a9d4 in gtk_signal_real_emit (object=0x36fdf0, signal_id=21,
params=0xefffe920) at gtksignal.c:1484
#25 0xee887ad0 in gtk_signal_emit (object=0x36fdf0, signal_id=21) at
gtksignal.c:552
#26 0xee8d4328 in gtk_widget_event (widget=0x36fdf0, event=0xdcee0) at
gtkwidget.c:2784
#27 0xee847a88 in gtk_propagate_event (widget=0x36fdf0, event=0xdcee0) at
gtkmain.c:1295
#28 0xee846934 in gtk_main_do_event (event=0xdcee0) at gtkmain.c:752
#29 0xee74c50c in gdk_event_dispatch (source_data=0xdcee0,
current_time=0xefffef08, user_data=0x0) at gdkevents.c:2086
#30 0xee7054a4 in g_main_dispatch (current_time=0xefffef08) at gmain.c:647
#31 0xee705cdc in g_main_iterate (block=1116, dispatch=1) at gmain.c:854
#32 0xee705eec in g_main_run (loop=0xd4098) at gmain.c:912
#33 0xee846164 in gtk_main () at gtkmain.c:475
#34 0xef6ae358 in nsAppShell::Run (this=0x95b50) at
../../../../widget/src/gtk/nsAppShell.cpp:152
#35 0xef78b6e0 in nsAppShellService::Run (this=0x95398) at
../../../../xpfe/appshell/src/nsAppShellService.cpp:154
#36 0x1a884 in main (argc=1, argv=0xeffff244) at
../../../xpfe/bootstrap/nsAppRunner.cpp:265
(gdb) print aParent
$1 = (nsIDOMNode *) 0x0
Re-assigned to slamm@netscape.com and changed priority to P1 and target
milestone to M3.
Steve, find out what's going on here, who should get this bug, and whether we
need to fix this for M3 dogfood.
Updated•26 years ago
|
Assignee: slamm → rods
Priority: P1 → P2
Target Milestone: M3
Comment 4•26 years ago
|
||
This isn't crashing anymore. However, rods may want to puts some guards on the
code to test for NULL pointers.
Taking of the M3 list.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•26 years ago
|
||
Added code to check for incoming null parent.
Compile and ran fine.
Rod
dejong - could you please check this with Mar18 build and mark this bug Verified
if all is well? Thanks!
Moving all Apprunner bugs past and present to Other component temporarily whilst
don and I set correct component. Apprunner component will be deleted/retired
shortly.
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•