Closed Bug 1760419 Opened 3 years ago Closed 3 years ago

Perma SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/dom/fetch/FetchStreamReader.cpp:184:13 in mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)

Categories

(Core :: DOM: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr91 --- unaffected
firefox98 --- unaffected
firefox99 --- unaffected
firefox100 + fixed

People

(Reporter: intermittent-bug-filer, Assigned: evilpie)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [retriggered][stockwell needswork:owner])

Crash Data

Attachments

(1 file)

Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=371633879&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/XsOEBQXfT3mr6Z6IfeQWkg/runs/0/artifacts/public/logs/live_backing.log


[task 2022-03-19T10:41:04.741Z] 10:41:04     INFO - TEST-START | /service-workers/service-worker/fetch-frame-resource.https.html
[task 2022-03-19T10:41:04.743Z] 10:41:04     INFO - Closing window 6cb8f963-8d83-49fb-9c38-a8f53fe5890d
[task 2022-03-19T10:41:05.382Z] 10:41:05     INFO - PID 24881 | -----------------------------------------------------
[task 2022-03-19T10:41:05.383Z] 10:41:05     INFO - PID 24881 | Suppressions used:
[task 2022-03-19T10:41:05.383Z] 10:41:05     INFO - PID 24881 |   count      bytes template
[task 2022-03-19T10:41:05.383Z] 10:41:05     INFO - PID 24881 |      10        312 nsComponentManagerImpl
[task 2022-03-19T10:41:05.383Z] 10:41:05     INFO - PID 24881 |     633      18115 libfontconfig.so
[task 2022-03-19T10:41:05.384Z] 10:41:05     INFO - PID 24881 |       1          9 libglib-2.0.so
[task 2022-03-19T10:41:05.385Z] 10:41:05     INFO - PID 24881 |       2        416 mozJSComponentLoader
[task 2022-03-19T10:41:05.386Z] 10:41:05     INFO - PID 24881 |       3         80 XPCWrappedNativeJSOps
[task 2022-03-19T10:41:05.386Z] 10:41:05     INFO - PID 24881 | -----------------------------------------------------
[task 2022-03-19T10:41:05.747Z] 10:41:05     INFO - Browser exited with return code 0
[task 2022-03-19T10:41:05.751Z] 10:41:05     INFO - Closing logging queue
[task 2022-03-19T10:41:05.751Z] 10:41:05     INFO - queue closed
[task 2022-03-19T10:41:05.785Z] 10:41:05     INFO - INFO | runtests.py | ASan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2022-03-19T10:41:05.811Z] 10:41:05     INFO - LSan enabled.
[task 2022-03-19T10:41:05.812Z] 10:41:05     INFO - INFO | runtests.py | ASan running in default memory configuration
[task 2022-03-19T10:41:05.812Z] 10:41:05     INFO - UBSan enabled.
[task 2022-03-19T10:41:05.814Z] 10:41:05     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox --marionette about:blank -profile /tmp/tmpf03tusrk
[task 2022-03-19T10:41:05.844Z] 10:41:05     INFO - Starting runner
[task 2022-03-19T10:41:06.136Z] 10:41:06     INFO - PID 21037 | JavaScript error: , line 0: NetworkError: FetchEvent.respondWith() Promise rejected
[task 2022-03-19T10:41:06.161Z] 10:41:06     INFO - PID 21037 | 1647686466159	Marionette	WARN	Ignoring event 'pageshow' because document has an invalid readyState of 'uninitialized'.
[task 2022-03-19T10:41:07.820Z] 10:41:07     INFO - PID 25307 | 1647686467818	Marionette	INFO	Marionette enabled
[task 2022-03-19T10:41:14.413Z] 10:41:14     INFO - PID 25307 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/tmpf03tusrk/search.json.mozlz4", (void 0)))
[task 2022-03-19T10:41:15.777Z] 10:41:15     INFO - PID 21037 | AddressSanitizer:DEADLYSIGNAL
[task 2022-03-19T10:41:15.777Z] 10:41:15     INFO - PID 21037 | =================================================================
[task 2022-03-19T10:41:15.780Z] 10:41:15    ERROR - PID 21037 | ==24574==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f9f5e806d35 bp 0x7f9f477274d0 sp 0x7f9f47727380 T21)
[task 2022-03-19T10:41:15.780Z] 10:41:15     INFO - PID 21037 | ==24574==The signal is caused by a READ memory access.
[task 2022-03-19T10:41:15.780Z] 10:41:15     INFO - PID 21037 | ==24574==Hint: address points to the zero page.
[task 2022-03-19T10:41:16.980Z] 10:41:16     INFO - PID 21037 |     #0 0x7f9f5e806d35 in mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult) /builds/worker/checkouts/gecko/dom/fetch/FetchStreamReader.cpp:184:13
[task 2022-03-19T10:41:16.998Z] 10:41:16     INFO - PID 21037 |     #1 0x7f9f60529f89 in operator() /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/std_function.h:706:14
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #2 0x7f9f60529f89 in mozilla::dom::WorkerRef::Notify() /builds/worker/checkouts/gecko/dom/workers/WorkerRef.cpp:98:3
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #3 0x7f9f6052a56d in mozilla::dom::WeakWorkerRef::Notify() /builds/worker/checkouts/gecko/dom/workers/WorkerRef.cpp:133:14
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #4 0x7f9f60513a5f in mozilla::dom::WorkerPrivate::NotifyWorkerRefs(mozilla::dom::WorkerStatus) /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:3954:16
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #5 0x7f9f60515d7a in mozilla::dom::WorkerPrivate::NotifyInternal(mozilla::dom::WorkerStatus) /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:4570:5
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #6 0x7f9f6052c31b in mozilla::dom::WorkerRunnable::Run() /builds/worker/checkouts/gecko/dom/workers/WorkerRunnable.cpp:377:12
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #7 0x7f9f60515947 in mozilla::dom::WorkerPrivate::ProcessAllControlRunnablesLocked() /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:3706:9
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #8 0x7f9f605141a4 in mozilla::dom::WorkerPrivate::DoRunLoop(JSContext*) /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:3017:21
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #9 0x7f9f604daa7d in mozilla::dom::workerinternals::(anonymous namespace)::WorkerThreadPrimaryRunnable::Run() /builds/worker/checkouts/gecko/dom/workers/RuntimeService.cpp:2165:42
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #10 0x7f9f59995b0b in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1167:16
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #11 0x7f9f599a07bc in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:467:10
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #12 0x7f9f5ac9dc89 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:330:5
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #13 0x7f9f5aba8471 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:331:10
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #14 0x7f9f5aba8471 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:324:3
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #15 0x7f9f5aba8471 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:306:3
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #16 0x7f9f5998dae4 in nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:389:10
[task 2022-03-19T10:41:16.999Z] 10:41:16     INFO - PID 21037 |     #17 0x7f9f7bad8ade in _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5
[task 2022-03-19T10:41:17.000Z] 10:41:17     INFO - PID 21037 |     #18 0x7f9f7d9096da in start_thread /tmp/glibc/nptl/pthread_create.c:463
[task 2022-03-19T10:41:17.004Z] 10:41:17     INFO - PID 21037 |     #19 0x7f9f7c8e7a3e in __clone /tmp/glibc/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
[task 2022-03-19T10:41:17.005Z] 10:41:17     INFO - PID 21037 | AddressSanitizer can not provide additional info.
[task 2022-03-19T10:41:17.006Z] 10:41:17     INFO - PID 21037 | SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/dom/fetch/FetchStreamReader.cpp:184:13 in mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)
[task 2022-03-19T10:41:17.007Z] 10:41:17     INFO - PID 21037 | Thread T21 (DOM Worker) created by T0 (Web Content) here:
[task 2022-03-19T10:41:17.062Z] 10:41:17     INFO - PID 25307 | 1647686477061	Marionette	INFO	Listening on port 53541
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #0 0x564d9236156c in __interceptor_pthread_create /builds/worker/fetches/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:207:3
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #1 0x7f9f7bac8b74 in _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #2 0x7f9f7bab9e1e in PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #3 0x7f9f59990e05 in nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:613:18
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #4 0x7f9f6053a9a2 in mozilla::dom::WorkerThread::Create(mozilla::dom::WorkerThreadFriendKey const&) /builds/worker/checkouts/gecko/dom/workers/WorkerThread.cpp:102:7
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #5 0x7f9f604babc8 in mozilla::dom::workerinternals::RuntimeService::ScheduleWorker(mozilla::dom::WorkerPrivate&) /builds/worker/checkouts/gecko/dom/workers/RuntimeService.cpp:1324:14
[task 2022-03-19T10:41:17.096Z] 10:41:17     INFO - PID 21037 |     #6 0x7f9f604b988c in mozilla::dom::workerinternals::RuntimeService::RegisterWorker(mozilla::dom::WorkerPrivate&) /builds/worker/checkouts/gecko/dom/workers/RuntimeService.cpp:1191:19
[task 2022-03-19T10:41:17.098Z] 10:41:17     INFO - PID 21037 |     #7 0x7f9f6050ea04 in mozilla::dom::WorkerPrivate::Constructor(JSContext*, nsTSubstring<char16_t> const&, bool, mozilla::dom::WorkerKind, nsTSubstring<char16_t> const&, nsTSubstring<char> const&, mozilla::dom::WorkerLoadInfo*, mozilla::ErrorResult&, nsTString<char16_t>) /builds/worker/checkouts/gecko/dom/workers/WorkerPrivate.cpp:2524:24
[task 2022-03-19T10:41:17.098Z] 10:41:17     INFO - PID 21037 |     #8 0x7f9f6054a5d6 in mozilla::dom::RemoteWorkerChild::ExecWorkerOnMainThread(mozilla::dom::RemoteWorkerData&&) /builds/worker/checkouts/gecko/dom/workers/remoteworkers/RemoteWorkerChild.cpp:447:41
[task 2022-03-19T10:41:17.098Z] 10:41:17     INFO - PID 21037 |     #9 0x7f9f6057c04a in operator() /builds/worker/checkouts/gecko/dom/workers/remoteworkers/RemoteWorkerChild.cpp:306:29
[task 2022-03-19T10:41:17.099Z] 10:41:17     INFO - PID 21037 |     #10 0x7f9f6057c04a in mozilla::detail::RunnableFunction<mozilla::dom::RemoteWorkerChild::ExecWorker(mozilla::dom::RemoteWorkerData const&)::$_2>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:531:5
[task 2022-03-19T10:41:17.100Z] 10:41:17     INFO - PID 21037 |     #11 0x7f9f5996267f in mozilla::SchedulerGroup::Runnable::Run() /builds/worker/checkouts/gecko/xpcom/threads/SchedulerGroup.cpp:140:20
[task 2022-03-19T10:41:17.101Z] 10:41:17     INFO - PID 21037 |     #12 0x7f9f599af182 in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:467:16
[task 2022-03-19T10:41:17.103Z] 10:41:17     INFO - PID 21037 |     #13 0x7f9f5997505d in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:778:26
[task 2022-03-19T10:41:17.104Z] 10:41:17     INFO - PID 21037 |     #14 0x7f9f599728d8 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:612:15
[task 2022-03-19T10:41:17.106Z] 10:41:17     INFO - PID 21037 |     #15 0x7f9f59972fe9 in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:390:36
[task 2022-03-19T10:41:17.108Z] 10:41:17     INFO - PID 21037 |     #16 0x7f9f599b7c14 in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:127:37
[task 2022-03-19T10:41:17.109Z] 10:41:17     INFO - PID 21037 |     #17 0x7f9f599b7c14 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_1>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:531:5
[task 2022-03-19T10:41:17.110Z] 10:41:17     INFO - PID 21037 |     #18 0x7f9f599952d7 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1173:16
[task 2022-03-19T10:41:17.112Z] 10:41:17     INFO - PID 21037 |     #19 0x7f9f599a07bc in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:467:10
[task 2022-03-19T10:41:17.113Z] 10:41:17     INFO - PID 21037 |     #20 0x7f9f5ac9cb7d in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:107:5
[task 2022-03-19T10:41:17.115Z] 10:41:17     INFO - PID 21037 |     #21 0x7f9f5aba8471 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:331:10
[task 2022-03-19T10:41:17.117Z] 10:41:17     INFO - PID 21037 |     #22 0x7f9f5aba8471 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:324:3
[task 2022-03-19T10:41:17.118Z] 10:41:17     INFO - PID 21037 |     #23 0x7f9f5aba8471 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:306:3
[task 2022-03-19T10:41:17.120Z] 10:41:17     INFO - PID 21037 |     #24 0x7f9f60d3cf97 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:137:27
[task 2022-03-19T10:41:17.122Z] 10:41:17     INFO - PID 21037 |     #25 0x7f9f651ebcdf in XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:870:20
[task 2022-03-19T10:41:17.124Z] 10:41:17     INFO - PID 21037 |     #26 0x7f9f5aba8471 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:331:10
[task 2022-03-19T10:41:17.125Z] 10:41:17     INFO - PID 21037 |     #27 0x7f9f5aba8471 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:324:3
[task 2022-03-19T10:41:17.127Z] 10:41:17     INFO - PID 21037 |     #28 0x7f9f5aba8471 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:306:3
[task 2022-03-19T10:41:17.128Z] 10:41:17     INFO - PID 21037 |     #29 0x7f9f651eb6e8 in XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:729:34
[task 2022-03-19T10:41:17.130Z] 10:41:17     INFO - PID 21037 |     #30 0x564d923ab79d in content_process_main(mozilla::Bootstrap*, int, char**) /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
[task 2022-03-19T10:41:17.131Z] 10:41:17     INFO - PID 21037 |     #31 0x564d923abbc1 in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:327:18
[task 2022-03-19T10:41:17.132Z] 10:41:17     INFO - PID 21037 |     #32 0x7f9f7c7e7b96 in __libc_start_main /tmp/glibc/csu/../csu/libc-start.c:310
[task 2022-03-19T10:41:17.134Z] 10:41:17     INFO - PID 21037 | ==24574==ABORTING
[task 2022-03-19T10:41:17.158Z] 10:41:17     INFO - PID 21037 | ###!!! [Parent][PContentParent] Error: Send(msgname=PContent::Msg_FlushTabState) Channel error: cannot send/recv
[task 2022-03-19T10:41:17.158Z] 10:41:17     INFO - PID 21037 | ###!!! [Parent][PContentParent] Error: Send(msgname=PContent::Msg_CommitBrowsingContextTransaction) Channel error: cannot send/recv
[task 2022-03-19T10:41:17.212Z] 10:41:17     INFO - PID 21037 | ###!!! [Parent][PContentParent] Error: Send(msgname=PContent::Msg_DiscardBrowsingContext) Channel error: cannot send/recv
[task 2022-03-19T10:41:17.294Z] 10:41:17     INFO - PID 21037 | A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down
[task 2022-03-19T10:41:17.540Z] 10:41:17     INFO - PID 21037 | 1647686477538	Marionette	INFO	Stopped listening on port 43544
[task 2022-03-19T10:41:17.735Z] 10:41:17     INFO - PID 21037 | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-03-19T10:41:17.767Z] 10:41:17     INFO - Browser not responding, setting status to CRASH
[task 2022-03-19T10:41:17.769Z] 10:41:17     INFO - TEST-UNEXPECTED-CRASH | /service-workers/service-worker/fetch-frame-resource.https.html | expected OK
[task 2022-03-19T10:41:17.769Z] 10:41:17     INFO - TEST-INFO took 13058ms
[task 2022-03-19T10:41:17.781Z] 10:41:17     INFO - PID 21037 | Marionette threw an error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICertOverrideService.setDisableAllSecurityChecksAndLetAttackersInterceptMyData]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: chrome://remote/content/marionette/cert.js :: allowAllCerts.disable :: line 55"  data: no]
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | allowAllCerts.disable@chrome://remote/content/marionette/cert.js:55:23
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | destroy@chrome://remote/content/shared/webdriver/Session.jsm:210:19
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | deleteSession@chrome://remote/content/webdriver-bidi/WebDriverBiDi.jsm:133:18
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | GeckoDriver.prototype.deleteSession@chrome://remote/content/marionette/driver.js:2139:31
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | GeckoDriver.prototype.quit@chrome://remote/content/marionette/driver.js:2652:8
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | despatch@chrome://remote/content/marionette/server.js:306:40
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | execute@chrome://remote/content/marionette/server.js:279:16
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | onPacket/<@chrome://remote/content/marionette/server.js:252:20
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | onPacket@chrome://remote/content/marionette/server.js:253:9
[task 2022-03-19T10:41:17.787Z] 10:41:17     INFO - PID 21037 | _onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20
[task 2022-03-19T10:41:17.809Z] 10:41:17     INFO - PID 21037 | JavaScript error: chrome://remote/content/marionette/driver.js, line 2125: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIObserverService.removeObserver]
[task 2022-03-19T10:41:17.851Z] 10:41:17     INFO - TEST-START | /webaudio/the-audio-api/the-biquadfilternode-interface/biquad-allpass.html
Summary: Intermittent SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/dom/fetch/FetchStreamReader.cpp:184:13 in mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult) → Perma SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/dom/fetch/FetchStreamReader.cpp:184:13 in mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)

Set release status flags based on info from the regressing bug 1750298

I am having a hard time understanding how this is even possible. It seems like mPipeOut must be null in CloseAndRelease, but that should only be the case when we already ran that function before, which mStreamClosed again should prevent.

Flags: needinfo?(evilpies)
Assignee: nobody → evilpies
Keywords: leave-open
Crash Signature: [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)]
Crash Signature: [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)] → [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)] [@ mozilla::dom::FetchStreamReader::CloseAndRelease]

Matthew do you have any ideas what is going on here? Maybe this is some sort of re-entry problem, because we don't set mStreamClosed at the top? I think this caller is causing crashes: https://searchfox.org/mozilla-central/rev/f8db81665dc2833fff09dc7eef200539ac1fd351/dom/fetch/FetchStreamReader.cpp#99

Crash Signature: [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)] [@ mozilla::dom::FetchStreamReader::CloseAndRelease] → [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)]
Flags: needinfo?(mgaudet)
Crash Signature: [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)] → [@ mozilla::dom::FetchStreamReader::CloseAndRelease(JSContext*, nsresult)] [@ mozilla::dom::FetchStreamReader::CloseAndRelease]
Has Regression Range: --- → yes

This is probably a reentrancy problem.

Looking at this crash report I see in the backtrace that we're doing WeakWorkerRef notification. That means CloseAndRelease is likely being called via the lambda here.

The lifecycle issues around how worker shutdown works and how the FetchStreamReader is destroyed has always been confusing to me. I think asuth has a better idea; ideally if we could get this recorded it would be very helpful.

We may want to consider backing this out just because of the frequency

Flags: needinfo?(mgaudet)

Changing the priority to P2 as the bug is tracked by a release manager for the current nightly.
See Triage for Bugzilla for more information.
If you disagree, please discuss with a release manager.

Priority: P5 → P2
Whiteboard: [retriggered][stockwell needswork:owner]

:mgaudet The null check patch seems to have solved the problem here, is this still something we need to consider backing out considering the frequency ?

Flags: needinfo?(mgaudet)

No, I think this can stay doesn't need backout. We can resolve this particular bug as fixed, but I'll open a followup bug to clarify lifecycle here and cleanup here.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(mgaudet)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: