GC: Assertion failure: allocated(), at jsgc.h:495

RESOLVED INVALID

Status

()

Core
JavaScript Engine
RESOLVED INVALID
6 years ago
6 years ago

People

(Reporter: bjacob, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

I'm running the WebGL mochitest with Ms2ger's patch for bug 550309, which is unrelated to the JS engine. Firefox dies on this assert failure:

Assertion failure: allocated(), at ../../dist/include/jsgc.h:495

Program received signal SIGABRT, Aborted.
0x00002aaaaacddf2b in raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
42	../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/pt-raise.c
(gdb) bt
#0  0x00002aaaaacddf2b in raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1  0x000000000041bdb8 in MOZ_Crash () at /home/bjacob/mozilla-central/mfbt/Assertions.cpp:79
#2  0x000000000041be10 in MOZ_Assert (s=0x2aaaaeb3bf44 "allocated()", 
    file=0x2aaaaeb3bf00 "../../dist/include/jsgc.h", ln=495)
    at /home/bjacob/mozilla-central/mfbt/Assertions.cpp:88
#3  0x00002aaaacd1848a in js::gc::ArenaHeader::getAllocKind (this=0x2aaacb925000) at ../../dist/include/jsgc.h:495
#4  0x00002aaaae67a6ee in js::gc::Cell::getAllocKind (this=0x2aaacb925700)
    at /home/bjacob/mozilla-central/js/src/jsgc.h:886
#5  0x00002aaaae6b7fec in js::gc::GetGCThingTraceKind (thing=0x2aaacb925700)
    at /home/bjacob/mozilla-central/js/src/jsgcinlines.h:63
#6  0x00002aaaae6ebf8a in js_GetGCThingTraceKind (thing=0x2aaacb925700)
    at /home/bjacob/mozilla-central/js/src/jsgc.cpp:1789
#7  0x00002aaaad95295d in xpc_GCThingIsGrayCCThing (thing=0x2aaacb925700)
    at /home/bjacob/mozilla-central/js/xpconnect/src/nsXPConnect.cpp:705
#8  0x00002aaaae1659bb in GCGraphBuilder::NoteScriptChild (this=0x7fffffff04f0, langID=2, child=0x2aaacb925700)
    at /home/bjacob/mozilla-central/xpcom/base/nsCycleCollector.cpp:2076
#9  0x00002aaaae0e2032 in NoteChild (aLangID=2, aScriptThing=0x2aaacb925700, name=0x2aaaaec1ee8e "mData", 
    aClosure=0x7fffffff04f0)
    at /home/bjacob/mozilla-central/obj-firefox-debug/xpcom/build/nsCycleCollectionParticipant.cpp:48
#10 0x00002aaaad204203 in mozilla::dom::ImageData::cycleCollection::Trace (this=0x2aaaafa7a300, p=0x2aaac545d2e0, 
    aCallback=0x2aaaae0e1fbb <NoteChild(PRUint32, void*, char const*, void*)>, aClosure=0x7fffffff04f0)
    at /home/bjacob/mozilla-central/content/canvas/src/ImageData.cpp:30
#11 0x00002aaaae0e2072 in nsScriptObjectTracer::TraverseScriptObjects (this=0x2aaaafa7a300, p=0x2aaac545d2e0, 
    cb=...) at /home/bjacob/mozilla-central/obj-firefox-debug/xpcom/build/nsCycleCollectionParticipant.cpp:55
#12 0x00002aaaad2042ba in mozilla::dom::ImageData::cycleCollection::Traverse (this=0x2aaaafa7a300, 
    p=0x2aaac545d2e0, cb=...) at /home/bjacob/mozilla-central/content/canvas/src/ImageData.cpp:34
#13 0x00002aaaae165292 in GCGraphBuilder::Traverse (this=0x7fffffff04f0, aPtrInfo=0x2aaacced3a28)
    at /home/bjacob/mozilla-central/xpcom/base/nsCycleCollector.cpp:1911
#14 0x00002aaaae166022 in nsCycleCollector::MarkRoots (this=0x2aaab8a89000, builder=...)
    at /home/bjacob/mozilla-central/xpcom/base/nsCycleCollector.cpp:2238
#15 0x00002aaaae1671c9 in nsCycleCollector::BeginCollection (this=0x2aaab8a89000, aListener=0x0)
    at /home/bjacob/mozilla-central/xpcom/base/nsCycleCollector.cpp:3196
#16 0x00002aaaae168081 in nsCycleCollectorRunner::Collect (this=0x2aaaabd1ad30, aListener=0x0)
    at /home/bjacob/mozilla-central/xpcom/base/nsCycleCollector.cpp:3953
#17 0x00002aaaae168598 in nsCycleCollector_collect (aListener=0x0)
    at /home/bjacob/mozilla-central/xpcom/base/nsCycleCollector.cpp:4051
#18 0x00002aaaad46675b in nsJSContext::CycleCollectNow (aListener=0x0, aExtraForgetSkippableCalls=0)
    at /home/bjacob/mozilla-central/dom/base/nsJSEnvironment.cpp:3305
#19 0x00002aaaad4571ad in nsDOMWindowUtils::GarbageCollect (this=0x2aaac4c92160, aListener=0x0, 
---Type <return> to continue, or q <return> to quit---
    aExtraForgetSkippableCalls=0) at /home/bjacob/mozilla-central/dom/base/nsDOMWindowUtils.cpp:821
#20 0x00002aaaae171651 in NS_InvokeByIndex_P (that=0x2aaac4c92160, methodIndex=22, paramCount=2, 
    params=0x7fffffff8790)
    at /home/bjacob/mozilla-central/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:195
#21 0x00002aaaad9b154f in CallMethodHelper::Invoke (this=0x7fffffff8750)
    at /home/bjacob/mozilla-central/js/xpconnect/src/XPCWrappedNative.cpp:2881
#22 0x00002aaaad9af395 in CallMethodHelper::Call (this=0x7fffffff8750)
    at /home/bjacob/mozilla-central/js/xpconnect/src/XPCWrappedNative.cpp:2212
#23 0x00002aaaad9af22c in XPCWrappedNative::CallMethod (ccx=..., mode=XPCWrappedNative::CALL_METHOD)
    at /home/bjacob/mozilla-central/js/xpconnect/src/XPCWrappedNative.cpp:2178
#24 0x00002aaaad9bc658 in XPC_WN_CallMethod (cx=0x2aaac78e5000, argc=0, vp=0x2aaabe100508)
    at /home/bjacob/mozilla-central/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1542
#25 0x00002aaaae750289 in js::CallJSNative (cx=0x2aaac78e5000, 
    native=0x2aaaad9bc3fa <XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*)>, args=...)
    at /home/bjacob/mozilla-central/js/src/jscntxtinlines.h:311
#26 0x00002aaaae7379eb in js::InvokeKernel (cx=0x2aaac78e5000, args=..., construct=js::NO_CONSTRUCT)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:499
#27 0x00002aaaae6988b7 in js::Invoke (cx=0x2aaac78e5000, args=..., construct=js::NO_CONSTRUCT)
    at /home/bjacob/mozilla-central/js/src/jsinterp.h:157
#28 0x00002aaaae6e2312 in js_fun_apply (cx=0x2aaac78e5000, argc=2, vp=0x2aaabe1004e8)
    at /home/bjacob/mozilla-central/js/src/jsfun.cpp:1692
#29 0x00002aaaae750289 in js::CallJSNative (cx=0x2aaac78e5000, 
    native=0x2aaaae6e2088 <js_fun_apply(JSContext*, unsigned int, JS::Value*)>, args=...)
    at /home/bjacob/mozilla-central/js/src/jscntxtinlines.h:311
#30 0x00002aaaae7379eb in js::InvokeKernel (cx=0x2aaac78e5000, args=..., construct=js::NO_CONSTRUCT)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:499
#31 0x00002aaaae743967 in js::Interpret (cx=0x2aaac78e5000, entryFrame=0x2aaabe100478, 
    interpMode=js::JSINTERP_NORMAL) at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:2694
#32 0x00002aaaae73779f in js::RunScript (cx=0x2aaac78e5000, script=0x2aaac4972438, fp=0x2aaabe100478)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:454
#33 0x00002aaaae737adc in js::InvokeKernel (cx=0x2aaac78e5000, args=..., construct=js::NO_CONSTRUCT)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:517
#34 0x00002aaaae6988b7 in js::Invoke (cx=0x2aaac78e5000, args=..., construct=js::NO_CONSTRUCT)
    at /home/bjacob/mozilla-central/js/src/jsinterp.h:157
#35 0x00002aaaae737cbd in js::Invoke (cx=0x2aaac78e5000, thisv=..., fval=..., argc=0, argv=0x2aaabe1003f8, 
    rval=0x7fffffff9bd8) at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:549
#36 0x00002aaaae7aca05 in js::ProxyHandler::call (this=0x2aaaafa80dd0, cx=0x2aaac78e5000, proxy=0x2aaacb913fa0, 
    argc=0, vp=0x2aaabe1003e8) at /home/bjacob/mozilla-central/js/src/jsproxy.cpp:334
#37 0x00002aaaae81a079 in js::Wrapper::call (this=0x2aaaafa80dd0, cx=0x2aaac78e5000, wrapper=0x2aaacb913fa0, 
---Type <return> to continue, or q <return> to quit---
    argc=0, vp=0x2aaabe1003e8) at /home/bjacob/mozilla-central/js/src/jswrapper.cpp:262
#38 0x00002aaaae81c51b in js::CrossCompartmentWrapper::call (this=0x2aaaafa80dd0, cx=0x2aaac78e5000, 
    wrapper=0x2aaacb913fa0, argc=0, vp=0x2aaabe1003e8) at /home/bjacob/mozilla-central/js/src/jswrapper.cpp:740
#39 0x00002aaaae7afb56 in js::Proxy::call (cx=0x2aaac78e5000, proxy=0x2aaacb913fa0, argc=0, vp=0x2aaabe1003e8)
    at /home/bjacob/mozilla-central/js/src/jsproxy.cpp:909
#40 0x00002aaaae7b120c in proxy_Call (cx=0x2aaac78e5000, argc=0, vp=0x2aaabe1003e8)
    at /home/bjacob/mozilla-central/js/src/jsproxy.cpp:1436
#41 0x00002aaaae750289 in js::CallJSNative (cx=0x2aaac78e5000, 
    native=0x2aaaae7b11aa <proxy_Call(JSContext*, uintN, JS::Value*)>, args=...)
    at /home/bjacob/mozilla-central/js/src/jscntxtinlines.h:311
#42 0x00002aaaae737975 in js::InvokeKernel (cx=0x2aaac78e5000, args=..., construct=js::NO_CONSTRUCT)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:492
#43 0x00002aaaae743967 in js::Interpret (cx=0x2aaac78e5000, entryFrame=0x2aaabe100030, 
    interpMode=js::JSINTERP_NORMAL) at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:2694
#44 0x00002aaaae73779f in js::RunScript (cx=0x2aaac78e5000, script=0x2aaabeae8c60, fp=0x2aaabe100030)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:454
#45 0x00002aaaae7382e0 in js::ExecuteKernel (cx=0x2aaac78e5000, script=0x2aaabeae8c60, scopeChain=..., thisv=..., 
    type=js::EXECUTE_GLOBAL, evalInFrame=0x0, result=0x0) at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:657
#46 0x00002aaaae73851d in js::Execute (cx=0x2aaac78e5000, script=0x2aaabeae8c60, scopeChainArg=..., rval=0x0)
    at /home/bjacob/mozilla-central/js/src/jsinterp.cpp:698
#47 0x00002aaaae674de2 in EvaluateUCScriptForPrincipalsCommon (cx=0x2aaac78e5000, obj=0x2aaacb94b240, 
    principals=0x2aaabee40808, originPrincipals=0x2aaabf33ed88, chars=0x2aaabf348108, length=118, 
    filename=0x2aaabf296ce8 "http://mochi.test:8888/tests/content/canvas/test/webgl/resources/js-test-post.js", 
    lineno=1, rval=0x0, compileVersion=JSVERSION_DEFAULT) at /home/bjacob/mozilla-central/js/src/jsapi.cpp:5311
#48 0x00002aaaae674feb in JS_EvaluateUCScriptForPrincipalsVersionOrigin (cx=0x2aaac78e5000, obj=0x2aaacb94b240, 
    principals=0x2aaabee40808, originPrincipals=0x2aaabf33ed88, chars=0x2aaabf348108, length=118, 
    filename=0x2aaabf296ce8 "http://mochi.test:8888/tests/content/canvas/test/webgl/resources/js-test-post.js", 
    lineno=1, rval=0x0, version=JSVERSION_DEFAULT) at /home/bjacob/mozilla-central/js/src/jsapi.cpp:5348
#49 0x00002aaaad461688 in nsJSContext::EvaluateString (this=0x2aaac74ec350, aScript=..., 
    aScopeObject=0x2aaacb94b240, aPrincipal=0x2aaabee40800, aOriginPrincipal=0x2aaabf33ed80, 
    aURL=0x2aaabf296ce8 "http://mochi.test:8888/tests/content/canvas/test/webgl/resources/js-test-post.js", 
    aLineNo=1, aVersion=0, aRetValue=0x0, aIsUndefined=0x7fffffffb05e)
    at /home/bjacob/mozilla-central/dom/base/nsJSEnvironment.cpp:1511
#50 0x00002aaaad18aa25 in nsScriptLoader::EvaluateScript (this=0x2aaabe0d4e80, aRequest=0x2aaabf296d40, 
    aScript=...) at /home/bjacob/mozilla-central/content/base/src/nsScriptLoader.cpp:903
#51 0x00002aaaad18a2c5 in nsScriptLoader::ProcessRequest (this=0x2aaabe0d4e80, aRequest=0x2aaabf296d40)
    at /home/bjacob/mozilla-central/content/base/src/nsScriptLoader.cpp:796
#52 0x00002aaaad18ae99 in nsScriptLoader::ProcessPendingRequests (this=0x2aaabe0d4e80)
    at /home/bjacob/mozilla-central/content/base/src/nsScriptLoader.cpp:963
---Type <return> to continue, or q <return> to quit---
#53 0x00002aaaad18bbb9 in nsScriptLoader::OnStreamComplete (this=0x2aaabe0d4e80, aLoader=0x2aaac46b2100, 
    aContext=0x2aaabf296d40, aStatus=0, aStringLen=118, 
    aString=0x2aaabf061c80 "shouldBeTrue(\"successfullyParsed\");\ndebug('<br /><span class=\"pass\">TEST COMPLETE</span>');\nnotifyFinishedToHarness()\n\245\245\245\245\245\245\245\245\245\245")
    at /home/bjacob/mozilla-central/content/base/src/nsScriptLoader.cpp:1182
#54 0x00002aaaacad3e7c in nsStreamLoader::OnStopRequest (this=0x2aaac46b2100, request=0x2aaace892058, 
    ctxt=0x2aaabf296d40, aStatus=0) at /home/bjacob/mozilla-central/netwerk/base/src/nsStreamLoader.cpp:127
#55 0x00002aaaacba8150 in nsHttpChannel::OnStopRequest (this=0x2aaace892000, request=0x2aaabf061080, 
    ctxt=0x2aaabf296d40, status=0) at /home/bjacob/mozilla-central/netwerk/protocol/http/nsHttpChannel.cpp:4377
#56 0x00002aaaaca9987f in nsInputStreamPump::OnStateStop (this=0x2aaabf061080)
    at /home/bjacob/mozilla-central/netwerk/base/src/nsInputStreamPump.cpp:583
#57 0x00002aaaaca990ae in nsInputStreamPump::OnInputStreamReady (this=0x2aaabf061080, stream=0x2aaac788eab8)
    at /home/bjacob/mozilla-central/netwerk/base/src/nsInputStreamPump.cpp:405
#58 0x00002aaaae12b7db in nsInputStreamReadyEvent::Run (this=0x2aaabee5da40)
    at /home/bjacob/mozilla-central/xpcom/io/nsStreamUtils.cpp:114
#59 0x00002aaaae14d205 in nsThread::ProcessNextEvent (this=0x2aaaabd5dc60, mayWait=false, result=0x7fffffffb5bf)
    at /home/bjacob/mozilla-central/xpcom/threads/nsThread.cpp:657
#60 0x00002aaaae0e1e46 in NS_ProcessNextEvent_P (thread=0x2aaaabd5dc60, mayWait=false)
    at /home/bjacob/mozilla-central/obj-firefox-debug/xpcom/build/nsThreadUtils.cpp:245
#61 0x00002aaaadf9e878 in mozilla::ipc::MessagePump::Run (this=0x2aaab8a582c0, aDelegate=0x2aaaabdd58f0)
    at /home/bjacob/mozilla-central/ipc/glue/MessagePump.cpp:110
#62 0x00002aaaae19a10b in MessageLoop::RunInternal (this=0x2aaaabdd58f0)
    at /home/bjacob/mozilla-central/ipc/chromium/src/base/message_loop.cc:208
#63 0x00002aaaae19a09c in MessageLoop::RunHandler (this=0x2aaaabdd58f0)
    at /home/bjacob/mozilla-central/ipc/chromium/src/base/message_loop.cc:201
#64 0x00002aaaae19a075 in MessageLoop::Run (this=0x2aaaabdd58f0)
    at /home/bjacob/mozilla-central/ipc/chromium/src/base/message_loop.cc:175
#65 0x00002aaaade399d2 in nsBaseAppShell::Run (this=0x2aaabc775e80)
    at /home/bjacob/mozilla-central/widget/xpwidgets/nsBaseAppShell.cpp:189
#66 0x00002aaaadb7d23a in nsAppStartup::Run (this=0x2aaabc7e6970)
    at /home/bjacob/mozilla-central/toolkit/components/startup/nsAppStartup.cpp:295
#67 0x00002aaaaca45d4f in XRE_main (argc=5, argv=0x7fffffffe258, aAppData=0x423c40)
    at /home/bjacob/mozilla-central/toolkit/xre/nsAppRunner.cpp:3564
#68 0x0000000000402340 in do_main (argc=5, argv=0x7fffffffe258)
    at /home/bjacob/mozilla-central/browser/app/nsBrowserApp.cpp:189
#69 0x0000000000402596 in main (argc=5, argv=0x7fffffffe258)
    at /home/bjacob/mozilla-central/browser/app/nsBrowserApp.cpp:276
(Reporter)

Comment 1

6 years ago
Sounds like it's a bug in that patch, sorry for the noise.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.