Closed Bug 685965 Opened 13 years ago Closed 12 years ago

CRASH js::CompartmentChecker::check (this=0xbff004b8, str=0x0)

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 778409

People

(Reporter: romaxa, Unassigned)

Details

I'm seeing strange crash on startup: #0 js::CompartmentChecker::check (this=0xbff004b8, str=0x0) at js/src/jsapi.cpp:6181 #1 0xb6d30799 in check (cx=0x89eb8b8, obj=0xaf6158b0, fval=..., argc=3, argv=0xbff006dc, rval=0xbff00798) at js/src/jscntxtinlines.h:175 #2 check (cx=0x89eb8b8, obj=0xaf6158b0, fval=..., argc=3, argv=0xbff006dc, rval=0xbff00798) at js/src/jscntxtinlines.h:179 #3 check (cx=0x89eb8b8, obj=0xaf6158b0, fval=..., argc=3, argv=0xbff006dc, rval=0xbff00798) at js/src/jscntxtinlines.h:189 #4 assertSameCompartment<JSObject*, jsval_layout, JSValueArray> (cx=0x89eb8b8, obj=0xaf6158b0, fval=..., argc=3, argv=0xbff006dc, rval=0xbff00798) at js/src/jscntxtinlines.h:261 #5 JS_CallFunctionValue (cx=0x89eb8b8, obj=0xaf6158b0, fval=..., argc=3, argv=0xbff006dc, rval=0xbff00798) at js/src/jsapi.cpp:5040 #6 0xb66722d2 in nsXPCWrappedJSClass::CallMethod (this=0x89f7188, wrapper=0x8a0fc50, methodIndex=3, info=0x882bed8, nativeParams=0xbff008c4) at js/src/xpconnect/src/xpcwrappedjsclass.cpp:1657 #7 0xb666bca0 in nsXPCWrappedJS::CallMethod (this=0x8a0fc50, methodIndex=3, info=0x882bed8, params=0xbff008c4) at js/src/xpconnect/src/xpcwrappedjs.cpp:585 #8 0xb6b7df82 in PrepareAndDispatch (methodIndex=<value optimized out>, self=0x8a0fc98, args=0x3) at xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp:95 #9 0xb675fb33 in nsAppStartupNotifier::Observe (this=0x89ff1d8, aSubject=0x0, aTopic=0xb7190637 "app-startup", someData=0x0) at embedding/components/appstartup/src/nsAppStartupNotifier.cpp:109 #10 0xb5cea0f0 in XRE_InitEmbedding2 (aLibXULDirectory=0x87cf788, aAppDirectory=<value optimized out>, aAppDirProvider=0x0) at toolkit/xre/nsEmbedFunctions.cpp:204 #11 0xb6a08364 in mozilla::ipc::ScopedXREEmbed::Start (this=0xbff00bef) at ipc/glue/ScopedXREEmbed.cpp:116 #12 0xb5cea35b in XRE_InitParentProcess (aArgc=1, aArgv=0xbff00d04, aMainFunction=0xb6b0b471 <mozilla::_ipdltest::IPDLUnitTestMain(void*)>, aMainFunctionData=0xbff023b7) at toolkit/xre/nsEmbedFunctions.cpp:586 #13 0xb5cea550 in XRE_RunIPDLTest (aArgc=1, aArgv=0xbff00d04) at toolkit/xre/nsEmbedFunctions.cpp:626 #14 0x08048556 in main (argc=0, argv=0xffffff86) at ipc/ipdl/test/cxx/app/TestIPDL.cpp:51 Any ideas what it could be?
Similar stacktrace. Win32 debugging build, instant crash on startup (could be something in the profile): mozjs.dll!js::CompartmentChecker::fail(JSCompartment * c1, JSCompartment * c2) Line 227 + 0x20 bytes C++ mozjs.dll!js::CompartmentChecker::check(JSCompartment * c) Line 243 + 0x10 bytes C++ mozjs.dll!js::CompartmentChecker::check(JSObject * obj) Line 252 C++ mozjs.dll!js::assertSameCompartment<JSObject *>(JSContext * cx, JSObject * const & t1) Line 329 C++ > mozjs.dll!JS_IdentifyClassPrototype(JSContext * cx, JSObject * obj) Line 2234 + 0xd bytes C++ xul.dll!xpc::WrapperFactory::Rewrap(JSContext * cx, JSObject * obj, JSObject * wrappedProto, JSObject * parent, unsigned int flags) Line 407 + 0xe bytes C++ mozjs.dll!JSCompartment::wrap(JSContext * cx, JS::Value * vp) Line 281 + 0x30 bytes C++ mozjs.dll!JSCompartment::wrap(JSContext * cx, JSObject * * objp) Line 323 + 0x15 bytes C++ mozjs.dll!JS_WrapObject(JSContext * cx, JSObject * * objp) Line 1561 + 0x13 bytes C++ xul.dll!xpc::XrayUtils::LookupExpandoObject(JSContext * cx, JSObject * target, nsIPrincipal * origin, JSObject * exclusiveGlobal) Line 137 + 0x26 bytes C++ xul.dll!xpc::XrayUtils::LookupExpandoObject(JSContext * cx, JSObject * target, JSObject * consumer) Line 161 + 0x26 bytes C++ xul.dll!xpc::XPCWrappedNativeXrayTraits::resolveOwnProperty(JSContext * cx, js::Wrapper & jsWrapper, JSObject * wrapper, JSObject * holder, jsid id, bool set, JSPropertyDescriptor * desc) Line 819 + 0x11 bytes C++ xul.dll!xpc::XrayWrapper<js::CrossCompartmentWrapper,xpc::XPCWrappedNativeXrayTraits>::getPropertyDescriptor(JSContext * cx, JSObject * wrapper, jsid id, bool set, JSPropertyDescriptor * desc) Line 1288 + 0x28 bytes C++ mozjs.dll!js::BaseProxyHandler::get(JSContext * cx, JSObject * proxy, JSObject * receiver_, jsid id_, JS::Value * vp) Line 104 + 0x43 bytes C++ xul.dll!xpc::XrayWrapper<js::CrossCompartmentWrapper,xpc::XPCWrappedNativeXrayTraits>::get(JSContext * cx, JSObject * wrapper, JSObject * receiver, jsid id, JS::Value * vp) Line 1497 C++ mozjs.dll!js::Proxy::get(JSContext * cx, JSObject * proxy, JSObject * receiver, jsid id, JS::Value * vp) Line 1117 + 0x30 bytes C++ mozjs.dll!proxy_GetGeneric(JSContext * cx, JS::Handle<JSObject *> obj, JS::Handle<JSObject *> receiver, JS::Handle<jsid> id, JS::Value * vp) Line 1335 + 0x2e bytes C++ mozjs.dll!JSObject::getGeneric(JSContext * cx, JS::Handle<JSObject *> receiver, JS::Handle<jsid> id, JS::Value * vp) Line 174 + 0x21 bytes C++ mozjs.dll!JSObject::getGeneric(JSContext * cx, JS::Handle<jsid> id, JS::Value * vp) Line 194 + 0x22 bytes C++ mozjs.dll!js::GetPropertyGenericMaybeCallXML(JSContext * cx, JSOp op, JS::Handle<JSObject *> obj, JS::Handle<jsid> id, JS::Value * vp) Line 203 + 0x1b bytes C++ mozjs.dll!js::GetPropertyOperation(JSContext * cx, JSScript * script, unsigned char * pc, JS::Value & lval, JS::Value * vp) Line 266 + 0x2d bytes C++ mozjs.dll!js::Interpret(JSContext * cx, js::StackFrame * entryFrame, js::InterpMode interpMode) Line 2302 + 0x29 bytes C++ mozjs.dll!js::RunScript(JSContext * cx, JSScript * script, js::StackFrame * fp) Line 302 + 0xf bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 356 + 0x22 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, js::InvokeArgsGuard & args, js::MaybeConstruct construct) Line 119 + 0x37 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, const JS::Value & thisv, const JS::Value & fval, unsigned int argc, JS::Value * argv, JS::Value * rval) Line 388 + 0xf bytes C++ mozjs.dll!js::IndirectProxyHandler::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 442 + 0x38 bytes C++ mozjs.dll!js::DirectWrapper::call(JSContext * cx, JSObject * wrapper, unsigned int argc, JS::Value * vp) Line 313 + 0x47 bytes C++ mozjs.dll!js::CrossCompartmentWrapper::call(JSContext * cx, JSObject * wrapper_, unsigned int argc, JS::Value * vp) Line 708 + 0x1d bytes C++ mozjs.dll!js::Proxy::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 1158 + 0x2c bytes C++ mozjs.dll!proxy_Call(JSContext * cx, unsigned int argc, JS::Value * vp) Line 1682 + 0x15 bytes C++ mozjs.dll!js::CallJSNative(JSContext * cx, int (JSContext *, unsigned int, JS::Value *)* native, const JS::CallArgs & args) Line 387 + 0x19 bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 338 + 0x14 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, js::InvokeArgsGuard & args, js::MaybeConstruct construct) Line 119 + 0x37 bytes C++ mozjs.dll!array_readonlyCommon<ArrayForEachBehavior>(JSContext * cx, JS::CallArgs & args) Line 3170 + 0xf bytes C++ mozjs.dll!array_forEach(JSContext * cx, unsigned int argc, JS::Value * vp) Line 3207 + 0xd bytes C++ mozjs.dll!js::CallJSNative(JSContext * cx, int (JSContext *, unsigned int, JS::Value *)* native, const JS::CallArgs & args) Line 387 + 0x19 bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 345 + 0x1d bytes C++ mozjs.dll!js::Invoke(JSContext * cx, js::InvokeArgsGuard & args, js::MaybeConstruct construct) Line 119 + 0x37 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, const JS::Value & thisv, const JS::Value & fval, unsigned int argc, JS::Value * argv, JS::Value * rval) Line 388 + 0xf bytes C++ mozjs.dll!js::IndirectProxyHandler::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 442 + 0x38 bytes C++ mozjs.dll!js::DirectWrapper::call(JSContext * cx, JSObject * wrapper, unsigned int argc, JS::Value * vp) Line 313 + 0x47 bytes C++ mozjs.dll!js::CrossCompartmentWrapper::call(JSContext * cx, JSObject * wrapper_, unsigned int argc, JS::Value * vp) Line 708 + 0x1d bytes C++ mozjs.dll!js::Proxy::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 1158 + 0x2c bytes C++ mozjs.dll!proxy_Call(JSContext * cx, unsigned int argc, JS::Value * vp) Line 1682 + 0x15 bytes C++ mozjs.dll!js::CallJSNative(JSContext * cx, int (JSContext *, unsigned int, JS::Value *)* native, const JS::CallArgs & args) Line 387 + 0x19 bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 338 + 0x14 bytes C++ mozjs.dll!js::Interpret(JSContext * cx, js::StackFrame * entryFrame, js::InterpMode interpMode) Line 2405 + 0x2a bytes C++ mozjs.dll!js::RunScript(JSContext * cx, JSScript * script, js::StackFrame * fp) Line 302 + 0xf bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 356 + 0x22 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, js::InvokeArgsGuard & args, js::MaybeConstruct construct) Line 119 + 0x37 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, const JS::Value & thisv, const JS::Value & fval, unsigned int argc, JS::Value * argv, JS::Value * rval) Line 388 + 0xf bytes C++ mozjs.dll!js::IndirectProxyHandler::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 442 + 0x38 bytes C++ mozjs.dll!js::DirectWrapper::call(JSContext * cx, JSObject * wrapper, unsigned int argc, JS::Value * vp) Line 313 + 0x47 bytes C++ mozjs.dll!js::CrossCompartmentWrapper::call(JSContext * cx, JSObject * wrapper_, unsigned int argc, JS::Value * vp) Line 708 + 0x1d bytes C++ mozjs.dll!js::Proxy::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 1158 + 0x2c bytes C++ mozjs.dll!proxy_Call(JSContext * cx, unsigned int argc, JS::Value * vp) Line 1682 + 0x15 bytes C++ mozjs.dll!js::CallJSNative(JSContext * cx, int (JSContext *, unsigned int, JS::Value *)* native, const JS::CallArgs & args) Line 387 + 0x19 bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 338 + 0x14 bytes C++ mozjs.dll!js::Interpret(JSContext * cx, js::StackFrame * entryFrame, js::InterpMode interpMode) Line 2405 + 0x2a bytes C++ mozjs.dll!js::RunScript(JSContext * cx, JSScript * script, js::StackFrame * fp) Line 302 + 0xf bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 356 + 0x22 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, js::InvokeArgsGuard & args, js::MaybeConstruct construct) Line 119 + 0x37 bytes C++ mozjs.dll!js::Invoke(JSContext * cx, const JS::Value & thisv, const JS::Value & fval, unsigned int argc, JS::Value * argv, JS::Value * rval) Line 388 + 0xf bytes C++ mozjs.dll!js::IndirectProxyHandler::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 442 + 0x38 bytes C++ mozjs.dll!js::DirectWrapper::call(JSContext * cx, JSObject * wrapper, unsigned int argc, JS::Value * vp) Line 313 + 0x47 bytes C++ mozjs.dll!js::CrossCompartmentWrapper::call(JSContext * cx, JSObject * wrapper_, unsigned int argc, JS::Value * vp) Line 708 + 0x1d bytes C++ mozjs.dll!js::Proxy::call(JSContext * cx, JSObject * proxy, unsigned int argc, JS::Value * vp) Line 1158 + 0x2c bytes C++ mozjs.dll!proxy_Call(JSContext * cx, unsigned int argc, JS::Value * vp) Line 1682 + 0x15 bytes C++ mozjs.dll!js::CallJSNative(JSContext * cx, int (JSContext *, unsigned int, JS::Value *)* native, const JS::CallArgs & args) Line 387 + 0x19 bytes C++ mozjs.dll!js::InvokeKernel(JSContext * cx, JS::CallArgs args, js::MaybeConstruct construct) Line 338 + 0x14 bytes C++ mozjs.dll!js::Interpret(JSContext * cx, js::StackFrame * entryFrame, js::InterpMode interpMode) Line 2405 + 0x2a bytes C++ mozjs.dll!js::RunScript(JSContext * cx, JSScript * script, js::StackFrame * fp) Line 302 + 0xf bytes C++ mozjs.dll!js::ExecuteKernel(JSContext * cx, JSScript * script_, JSObject & scopeChain, const JS::Value & thisv, js::ExecuteType type, js::StackFrame * evalInFrame, JS::Value * result) Line 488 + 0x1b bytes C++ mozjs.dll!js::Execute(JSContext * cx, JSScript * script, JSObject & scopeChainArg, JS::Value * rval) Line 526 + 0x22 bytes C++ mozjs.dll!JS_ExecuteScript(JSContext * cx, JSObject * obj, JSScript * scriptArg_, JS::Value * rval) Line 5500 + 0x1c bytes C++ mozjs.dll!JS_ExecuteScriptVersion(JSContext * cx, JSObject * obj, JSScript * script, JS::Value * rval, JSVersion version) Line 5508 + 0x15 bytes C++ xul.dll!mozJSSubScriptLoader::LoadSubScript(const nsAString_internal & url, const JS::Value & target, const nsAString_internal & charset, JSContext * cx, JS::Value * retval) Line 298 + 0x23 bytes C++ xul.dll!NS_InvokeByIndex_P(nsISupports * that, unsigned int methodIndex, unsigned int paramCount, nsXPTCVariant * params) Line 71 C++ xul.dll!CallMethodHelper::Invoke() Line 3082 + 0x1c bytes C++ xul.dll!CallMethodHelper::Call() Line 2416 + 0x8 bytes C++ xul.dll!XPCWrappedNative::CallMethod(XPCCallContext & ccx, XPCWrappedNative::CallMode mode) Line 2382 + 0x16 bytes C++
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.