Closed Bug 749311 Opened 14 years ago Closed 14 years ago

toolkit/devtools/debugger/tests/unit/test_breakpoint-02.js crashes:

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 749258

People

(Reporter: jimb, Unassigned)

Details

If you apply the patches in bug 749231 and bug 749258, and then run the xpcshell tests in toolkit/devtools/debugger/tests, then test_breakpoint-02.js crashes trying to fetch a property from an 'undefined' value. The exchange is below: - The test seems to interrupt the debuggee while it is stopped in the event loop. - The server does not attach a 'frame' property to the packet, because there are no debuggee frames on the stack at that point. - The test tries to fetch the packet's 'frame' property, gets 'undefined', and then tries to fetch a further property of that, and crashes. DBG-SERVER: Got: { "to": "conn0.context2", "type": "interrupt" } DBG-SERVER: Got: { "from": "conn0.context2", "type": "paused", "actor": "conn0.pause4", "poppedFrames": [], "why": { "type": "interrupted" } } TEST-PASS | /home/jimb/moz/dbg/obj-bug/_tests/xpcshell/toolkit/devtools/debugger/tests/unit/test_breakpoint-02.js | [null : 39] paused == paused /home/jimb/moz/dbg/obj-bug/_tests/xpcshell/toolkit/devtools/debugger/tests/unit/test_breakpoint-02.js:40: error: aPacket.frame is undefined
The patch with the fix is in bug 749258.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.