Closed Bug 529269 Opened 15 years ago Closed 15 years ago

crash in [@ XPCWrapper::NativeToString]

Categories

(Core :: XPConnect, defect)

1.9.2 Branch
x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla1.9.3a2
Tracking Status
status1.9.2 --- .4-fixed

People

(Reporter: Pike, Assigned: mrbkap)

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

I've hit a crash triggered by DOM inspector's javascript object view:

Open the options window in namoroka, then select the prefwindow element, javascript object. Expand boxObject, firstChild, element, parentNode.

Crash stacks in http://crash-stats.mozilla.com/report/index/bp-015fbe1f-6f97-48b2-9bc0-987b62091117, http://crash-stats.mozilla.com/report/index/560525a8-d9fb-4a7b-9a5e-5f5422091117
Attached patch Proposed fixSplinter Review
There's no guarantee that we have a native underlying our wrapper, so we shouldn't do anything special for toString.
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #412845 - Flags: review?(jst)
Component: JavaScript Engine → XPConnect
QA Contact: general → xpconnect
0 	XUL 	XPCWrapper::NativeToString 	js/src/xpconnect/src/xpcprivate.h:2387
1 	XUL 	XPC_SOW_toString 	js/src/xpconnect/src/XPCSystemOnlyWrapper.cpp:696
2 	libmozjs.dylib 	js_Invoke 	js/src/jsinterp.cpp:1360
3 	libmozjs.dylib 	js_Interpret 	js/src/jsops.cpp:2240
4 	libmozjs.dylib 	js_Invoke 	js/src/jsinterp.cpp:1368
Severity: normal → critical
Keywords: crash
Summary: crash in XPCWrapper::NativeToString → crash in [@ XPCWrapper::NativeToString]
Attachment #412845 - Flags: review?(jst) → review+
Comment on attachment 412845 [details] [diff] [review]
Proposed fix

Safe patch for the next dot release.
Attachment #412845 - Flags: approval1.9.2.1?
http://hg.mozilla.org/mozilla-central/rev/2d69f02b1e5e
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment on attachment 412845 [details] [diff] [review]
Proposed fix

This patch doesn't actually apply cleanly to the 1.9.2 branch.
Attachment #412845 - Flags: approval1.9.2.1?
Attached patch For 1.9.2Splinter Review
Attachment #418945 - Flags: approval1.9.2.1?
Attachment #418945 - Flags: approval1.9.2.2? → approval1.9.2.3?
Comment on attachment 418945 [details] [diff] [review]
For 1.9.2

Mostly code removal, aside from a comment.
Comment on attachment 418945 [details] [diff] [review]
For 1.9.2

Approved for 1.9.2.4, a=dveditz for release-drivers
Attachment #418945 - Flags: approval1.9.2.4? → approval1.9.2.4+
Crash Signature: [@ XPCWrapper::NativeToString]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: