Closed Bug 82684 Opened 23 years ago Closed 23 years ago

clear breakpoints when a script goes away! (crash manually clearing breakpoints of scripts that have gone away)

Categories

(Other Applications Graveyard :: Venkman JS Debugger, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ian, Assigned: rginda)

Details

(Keywords: crash)

STEPS TO REPRODUCE 1. Load venkman. 2. Load a file with JS in it. I used: http://www.hixie.ch/tests/evil/dynamic/layout/001.xml 3. Set a breakpoint. I used line 20 of said file. 4. This step may not be necessary: Hit the breakpoint then type "cont". 5. Reload the page. 6. Type "clear 0" to remove the breakpoint. ACTUAL RESULTS CRASH at step 6. <rginda_home> did you close the window that owned the script with the breakpoint? <rginda_home> or otherwise cause it's document to reload? <Hixie_> oooh <Hixie_> yes <Hixie_> yes i did <Hixie_> i hit refresh about 15 times <Hixie_> :-) <Hixie_> (after typing "cont") <rginda_home> that'll do it <Hixie_> hehe <rginda_home> :) <Hixie_> still want a bug? <rginda_home> I shoudl have cleared the breakpoint when the script went away
STACK TRACE NTDLL! 77f9eea9() JSD_ASSERT_VALID_SCRIPT() line 44 + 36 bytes JSD_ClearExecutionHook() line 406 + 9 bytes jsdScript::ClearBreakpoint() line 501 + 23 bytes XPTC_InvokeByIndex() line 139 XPCWrappedNative::CallMethod() line 1835 + 42 bytes XPC_WN_CallMethod() line 1241 + 11 bytes js_Invoke() line 807 + 23 bytes js_Interpret() line 2702 + 15 bytes js_Invoke() line 824 + 13 bytes js_Interpret() line 2702 + 15 bytes js_Invoke() line 824 + 13 bytes js_Interpret() line 2702 + 15 bytes js_Invoke() line 824 + 13 bytes js_Interpret() line 2702 + 15 bytes js_Invoke() line 824 + 13 bytes js_Interpret() line 2702 + 15 bytes js_Invoke() line 824 + 13 bytes js_InternalInvoke() line 896 + 20 bytes JS_CallFunctionValue() line 3307 + 31 bytes nsJSContext::CallEventHandler() line 934 + 33 bytes nsJSEventListener::HandleEvent() line 139 + 57 bytes nsEventListenerManager::HandleEventSubType() line 1155 + 20 bytes nsEventListenerManager::HandleEvent() line 1616 + 36 bytes nsXULElement::HandleDOMEvent() line 3631 nsXULElement::HandleDOMEvent() line 3648 + 53 bytes nsGenericElement::HandleDOMEvent() line 1521 + 53 bytes nsHTMLInputElement::HandleDOMEvent() line 1106 + 29 bytes PresShell::HandleEventInternal() line 5512 + 47 bytes PresShell::HandleEvent() line 5439 + 25 bytes nsView::HandleEvent() line 377 nsViewManager::DispatchEvent() line 2056 HandleEvent() line 68 nsWindow::DispatchEvent() line 702 + 10 bytes nsWindow::DispatchWindowEvent() line 723 nsWindow::DispatchKeyEvent() line 2350 + 15 bytes nsWindow::OnChar() line 2474 nsWindow::ProcessMessage() line 2889 + 51 bytes nsWindow::WindowProc() line 957 + 27 bytes USER32! 77e148dc() USER32! 77e14aa7() USER32! 77e266fd() nsAppShellService::Run() line 418 main1() line 1093 + 32 bytes main() line 1391 + 37 bytes mainCRTStartup() line 338 + 17 bytes (Mozilla debug build on Windows 2000 using Hyatt's style branch.)
Keywords: crash
This shoudln't crash anymore.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verify fixed on linux 2002011208. Stopped for breakpoint. function anonymous() in <http://www.hixie.ch/tests/evil/dynamic/layout/001.xml> line 19 Continuing from breakpoint. Breakpoint at <http://www.hixie.ch/tests/evil/dynamic/layout/001.xml> line 19 deleted (2 scripts match.)
Status: RESOLVED → VERIFIED
QA Contact: rginda → caillon
Product: Core → Other Applications
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.