AddressSanitizer: heap-use-after-free /builds/worker/fetches/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/atomic_base.h:524:16 in fetch_sub
Categories
(Core :: DOM: Workers, defect)
Tracking
()
People
(Reporter: nataliaCs, Unassigned)
Details
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=308314367&repo=autoland&lineNumber=5739
[task 2020-07-02T12:54:39.663Z] 12:54:39 INFO - TEST-START | /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/identity-not-preserved.https.html
[task 2020-07-02T12:54:39.665Z] 12:54:39 INFO - Closing window 34
[task 2020-07-02T12:54:39.751Z] 12:54:39 INFO - PID 12606 | #9 0x7f4567a48ee0 in mozilla::dom::Worker_Binding::_constructor(JSContext*, unsigned int, JS::Value*) /builds/worker/workspace/obj-build/dom/bindings/WorkerBinding.cpp:1170:52
[task 2020-07-02T12:54:39.772Z] 12:54:39 INFO - PID 12606 | #10 0x7f456e03a99e in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:484:13
[task 2020-07-02T12:54:39.772Z] 12:54:39 INFO - PID 12606 | #11 0x7f456e03a99e in CallJSNativeConstructor /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:500:8
[task 2020-07-02T12:54:39.773Z] 12:54:39 INFO - PID 12606 | #12 0x7f456e03a99e in InternalConstruct(JSContext*, js::AnyConstructArgs const&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:702:10
[task 2020-07-02T12:54:39.773Z] 12:54:39 INFO - PID 12606 | #13 0x7f456e018589 in Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3286:16
[task 2020-07-02T12:54:39.773Z] 12:54:39 INFO - PID 12606 | #14 0x7f456e008206 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:456:10
[task 2020-07-02T12:54:39.773Z] 12:54:39 INFO - PID 12606 | #15 0x7f456e037cfa in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:611:13
[task 2020-07-02T12:54:39.773Z] 12:54:39 INFO - PID 12606 | #16 0x7f456e039d08 in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:639:10
[task 2020-07-02T12:54:39.774Z] 12:54:39 INFO - PID 12606 | #17 0x7f456e039f89 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:656:8
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #18 0x7f456e4bd376 in js::fun_apply(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/src/vm/JSFunction.cpp:1208:10
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #19 0x7f456e037c17 in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:484:13
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #20 0x7f456e037c17 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:576:12
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #21 0x7f456e039d08 in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:639:10
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #22 0x7f456e022330 in CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:643:10
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #23 0x7f456e022330 in Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3296:16
[task 2020-07-02T12:54:39.811Z] 12:54:39 INFO - PID 12606 | #24 0x7f456e008206 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:456:10
[task 2020-07-02T12:54:39.812Z] 12:54:39 INFO - PID 12606 | #25 0x7f456e03c16e in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:831:13
[task 2020-07-02T12:54:39.812Z] 12:54:39 INFO - PID 12606 | #26 0x7f456e03c7ac in js::Execute(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:863:10
[task 2020-07-02T12:54:39.827Z] 12:54:39 INFO - PID 12606 | #27 0x7f456e315de3 in ExecuteScript(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:384:10
[task 2020-07-02T12:54:39.827Z] 12:54:39 INFO - PID 12606 | #28 0x7f456e31654d in ExecuteScript(JSContext*, JS::Handle<JS::StackGCVector<JSObject*, js::TempAllocPolicy> >, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:403:10
[task 2020-07-02T12:54:39.827Z] 12:54:39 INFO - PID 12606 | #29 0x7f456e3168d4 in JS_ExecuteScript(JSContext*, JS::Handle<JS::StackGCVector<JSObject*, js::TempAllocPolicy> >, JS::Handle<JSScript*>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:429:10
[task 2020-07-02T12:54:39.868Z] 12:54:39 INFO - PID 12606 | #30 0x7f45667d4a95 in nsJSUtils::ExecutionContext::ExecScript() /builds/worker/checkouts/gecko/dom/base/nsJSUtils.cpp:337:8
[task 2020-07-02T12:54:39.897Z] 12:54:39 INFO - PID 12606 | #31 0x7f456a2d270b in mozilla::dom::ExecuteCompiledScript(JSContext*, mozilla::dom::ScriptLoadRequest*, nsJSUtils::ExecutionContext&) /builds/worker/checkouts/gecko/dom/script/ScriptLoader.cpp:2762:16
[task 2020-07-02T12:54:39.897Z] 12:54:39 INFO - PID 12606 | #32 0x7f456a2cfdae in mozilla::dom::ScriptLoader::EvaluateScript(mozilla::dom::ScriptLoadRequest*) /builds/worker/checkouts/gecko/dom/script/ScriptLoader.cpp:2974:20
[task 2020-07-02T12:54:39.897Z] 12:54:39 INFO - PID 12606 | #33 0x7f456a2c9cdf in mozilla::dom::ScriptLoader::ProcessRequest(mozilla::dom::ScriptLoadRequest*) /builds/worker/checkouts/gecko/dom/script/ScriptLoader.cpp:2497:10
[task 2020-07-02T12:54:39.897Z] 12:54:39 INFO - PID 12606 | #34 0x7f456a2c70ce in mozilla::dom::ScriptLoader::ProcessInlineScript(nsIScriptElement*, mozilla::dom::ScriptKind) /builds/worker/checkouts/gecko/dom/script/ScriptLoader.cpp:1949:10
[task 2020-07-02T12:54:39.897Z] 12:54:39 INFO - PID 12606 | #35 0x7f456a2a8872 in mozilla::dom::ScriptLoader::ProcessScriptElement(nsIScriptElement*) /builds/worker/checkouts/gecko/dom/script/ScriptLoader.cpp:1671:10
[task 2020-07-02T12:54:39.897Z] 12:54:39 INFO - PID 12606 | #36 0x7f456a2a7bba in mozilla::dom::ScriptElement::MaybeProcessScript() /builds/worker/checkouts/gecko/dom/script/ScriptElement.cpp:117:18
[task 2020-07-02T12:54:39.938Z] 12:54:39 INFO - PID 12606 | #37 0x7f45654abb0e in nsIScriptElement::AttemptToExecute() /builds/worker/workspace/obj-build/dist/include/nsIScriptElement.h:224:18
[task 2020-07-02T12:54:39.948Z] 12:54:39 INFO - PID 12606 | #38 0x7f45654aa9c6 in nsHtml5TreeOpExecutor::RunScript(nsIContent*) /builds/worker/checkouts/gecko/parser/html/nsHtml5TreeOpExecutor.cpp:739:22
[task 2020-07-02T12:54:39.948Z] 12:54:39 INFO - PID 12606 | #39 0x7f45654a9476 in nsHtml5TreeOpExecutor::RunFlushLoop() /builds/worker/checkouts/gecko/parser/html/nsHtml5TreeOpExecutor.cpp:542:7
[task 2020-07-02T12:54:39.948Z] 12:54:39 INFO - PID 12606 | #40 0x7f45654b315a in nsHtml5ExecutorReflusher::Run() /builds/worker/checkouts/gecko/parser/html/nsHtml5TreeOpExecutor.cpp:70:16
[task 2020-07-02T12:54:39.948Z] 12:54:39 INFO - PID 12606 | #41 0x7f45633eac0d in mozilla::SchedulerGroup::Runnable::Run() /builds/worker/checkouts/gecko/xpcom/threads/SchedulerGroup.cpp:146:20
[task 2020-07-02T12:54:39.948Z] 12:54:39 INFO - PID 12606 | #42 0x7f45633f4c99 in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:209:16
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #43 0x7f45633f11e8 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:459:24
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #44 0x7f45633ef518 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:337:20
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #45 0x7f45633ef923 in mozilla::TaskController::ProcessPendingMTTask() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:152:3
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #46 0x7f45634009cf in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:82:37
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #47 0x7f45634009cf in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_4>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:577:5
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #48 0x7f4563424ae9 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1234:14
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #49 0x7f456342f24c in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:513:10
[task 2020-07-02T12:54:39.949Z] 12:54:39 INFO - PID 12606 | #50 0x7f456453429a in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:87:21
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #51 0x7f4564452b17 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #52 0x7f4564452b17 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #53 0x7f4564452b17 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #54 0x7f456a6445c8 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:137:27
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #55 0x7f456de11376 in XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:913:20
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #56 0x7f4564452b17 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10
[task 2020-07-02T12:54:39.958Z] 12:54:39 INFO - PID 12606 | #57 0x7f4564452b17 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3
[task 2020-07-02T12:54:39.959Z] 12:54:39 INFO - PID 12606 | #58 0x7f4564452b17 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3
[task 2020-07-02T12:54:39.959Z] 12:54:39 INFO - PID 12606 | #59 0x7f456de1095f in XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:744:34
[task 2020-07-02T12:54:39.963Z] 12:54:39 INFO - PID 12606 | #60 0x55f103ab703b in content_process_main /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:56:28
[task 2020-07-02T12:54:39.964Z] 12:54:39 INFO - PID 12606 | #61 0x55f103ab703b in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:303:18
[task 2020-07-02T12:54:39.971Z] 12:54:39 INFO - PID 12606 | #62 0x7f45835f6b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
[task 2020-07-02T12:54:39.972Z] 12:54:39 INFO - PID 12606 | SUMMARY: AddressSanitizer: heap-use-after-free /builds/worker/fetches/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/atomic_base.h:524:16 in fetch_sub
[task 2020-07-02T12:54:39.972Z] 12:54:39 INFO - PID 12606 | Shadow bytes around the buggy address:
[task 2020-07-02T12:54:39.972Z] 12:54:39 INFO - PID 12606 | 0x0c228003c520: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
[task 2020-07-02T12:54:39.972Z] 12:54:39 INFO - PID 12606 | 0x0c228003c530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[task 2020-07-02T12:54:39.972Z] 12:54:39 INFO - PID 12606 | 0x0c228003c540: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
[task 2020-07-02T12:54:39.973Z] 12:54:39 INFO - PID 12606 | 0x0c228003c550: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
[task 2020-07-02T12:54:39.973Z] 12:54:39 INFO - PID 12606 | 0x0c228003c560: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
[task 2020-07-02T12:54:39.979Z] 12:54:39 INFO - PID 12606 | =>0x0c228003c570: fa fa fa fa fa fa fa fa[fd]fd fd fd fd fd fd fd
[task 2020-07-02T12:54:39.979Z] 12:54:39 INFO - PID 12606 | 0x0c228003c580: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
[task 2020-07-02T12:54:39.981Z] 12:54:39 INFO - PID 12606 | 0x0c228003c590: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa
[task 2020-07-02T12:54:39.985Z] 12:54:39 INFO - PID 12606 | 0x0c228003c5a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
[task 2020-07-02T12:54:39.986Z] 12:54:39 INFO - PID 12606 | 0x0c228003c5b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
[task 2020-07-02T12:54:39.989Z] 12:54:39 INFO - PID 12606 | 0x0c228003c5c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
[task 2020-07-02T12:54:39.990Z] 12:54:39 INFO - PID 12606 | Shadow byte legend (one shadow byte represents 8 application bytes):
[task 2020-07-02T12:54:39.990Z] 12:54:39 INFO - PID 12606 | Addressable: 00
[task 2020-07-02T12:54:39.990Z] 12:54:39 INFO - PID 12606 | Partially addressable: 01 02 03 04 05 06 07
[task 2020-07-02T12:54:39.991Z] 12:54:39 INFO - PID 12606 | Heap left redzone: fa
[task 2020-07-02T12:54:39.991Z] 12:54:39 INFO - PID 12606 | Freed heap region: fd
[task 2020-07-02T12:54:39.992Z] 12:54:39 INFO - PID 12606 | Stack left redzone: f1
[task 2020-07-02T12:54:39.993Z] 12:54:39 INFO - PID 12606 | Stack mid redzone: f2
[task 2020-07-02T12:54:39.994Z] 12:54:39 INFO - PID 12606 | Stack right redzone: f3
[task 2020-07-02T12:54:40.000Z] 12:54:40 INFO - PID 12606 | Stack after return: f5
[task 2020-07-02T12:54:40.001Z] 12:54:40 INFO - PID 12606 | Stack use after scope: f8
[task 2020-07-02T12:54:40.001Z] 12:54:40 INFO - PID 12606 | Global redzone: f9
[task 2020-07-02T12:54:40.001Z] 12:54:40 INFO - PID 12606 | Global init order: f6
[task 2020-07-02T12:54:40.001Z] 12:54:40 INFO - PID 12606 | Poisoned by user: f7
[task 2020-07-02T12:54:40.002Z] 12:54:40 INFO - PID 12606 | Container overflow: fc
[task 2020-07-02T12:54:40.003Z] 12:54:40 INFO - PID 12606 | Array cookie: ac
[task 2020-07-02T12:54:40.003Z] 12:54:40 INFO - PID 12606 | Intra object redzone: bb
[task 2020-07-02T12:54:40.004Z] 12:54:40 INFO - PID 12606 | ASan internal: fe
[task 2020-07-02T12:54:40.004Z] 12:54:40 INFO - PID 12606 | Left alloca redzone: ca
[task 2020-07-02T12:54:40.005Z] 12:54:40 INFO - PID 12606 | Right alloca redzone: cb
[task 2020-07-02T12:54:40.006Z] 12:54:40 INFO - PID 12606 | Shadow gap: cc
[task 2020-07-02T12:54:40.007Z] 12:54:40 INFO - PID 12606 | ==12855==ABORTING
[task 2020-07-02T12:54:40.055Z] 12:54:40 INFO - PID 12606 | A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down
[task 2020-07-02T12:54:40.079Z] 12:54:40 INFO - PID 12887 | console.error: SearchCache: "_readCacheFile: Error reading cache file:" (new Error("", "(unknown module)"))
[task 2020-07-02T12:54:40.493Z] 12:54:40 INFO - NoSuchWindowException on command, setting status to CRASH
[task 2020-07-02T12:54:40.511Z] 12:54:40 INFO - PID 12606 | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2020-07-02T12:54:40.533Z] 12:54:40 INFO - TEST-UNEXPECTED-CRASH | /html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/identity-not-preserved.https.html | expected OK
Comment 1•6 years ago
|
||
Looking at the stack in the report, this is a dupe of bug 1649347.
Updated•3 years ago
|
Description
•