Closed Bug 768706 Opened 12 years ago Closed 6 years ago

Crash in js::GetObjectClass when executing a gcli command written in the scratchpad

Categories

(Core :: XPConnect, defect)

16 Branch
x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED INACTIVE

People

(Reporter: padenot, Unassigned)

References

Details

(Keywords: assertion, crash)

Crash Data

Attachments

(1 file)

Backtrace : http://pastebin.mozilla.org/1679892

STR:
- Open the scratchpad in chrome mode (devtools.chrome.enable to true, Environment to Chrome in the scratchpad), and enable the gcli (devtools.toolbar.enabled to true) ;
- Paste the following in it: http://pastebin.mozilla.org/1679894 ;
- Open the gcli using ctrl+shift+v ;
- Type "reload page 4s".

Expected:
- The browsers does not crash.

Actual:
- The page reload once, and the browser crashes.

An odd looking pointer is being dereferenced, apparently : 
(gdb) p reinterpret_cast<const shadow::Object*>(obj)->shape->base
$4 = (js::shadow::BaseShape *) 0xa5a5a5a500000001
Oh, and I get that in the console just before the crash :

55048000[7f280213a480]: ###!!! ASSERTION: function object has parent of unknown class!: 'Error', file /home/paul/workspace/mozilla-middle/js/xpconnect/src/XPCWrappedNative.cpp, line 1798
###!!! ASSERTION: function object has parent of unknown class!: 'Error', file /home/paul/workspace/mozilla-middle/js/xpconnect/src/XPCWrappedNative.cpp, line 1798
Severity: normal → critical
Crash Signature: [@ js::GetObjectClass]
Keywords: assertion
Paul, the pastebins seem to have disappeared.  Can you upload those as bug attachments instead?
Here you go.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: