Open Bug 1724074 Opened 4 years ago Updated 4 years ago

Segfault on ./mach test toolkit/components/crashes/tests/xpcshell/test_crash_store.js

Categories

(Toolkit :: Crash Reporting, defect)

defect

Tracking

()

People

(Reporter: gerard-majax, Unassigned)

Details

[...]
 0:01.80 PASS test_setRemoteCrashID - [test_setRemoteCrashID : 577] true == true
 0:01.80 PASS test_setRemoteCrashID - [test_setRemoteCrashID : 580] null == null
 0:01.80 PASS test_setRemoteCrashID - [test_setRemoteCrashID : 581] true == true
 0:01.80 PASS test_setRemoteCrashID - [test_setRemoteCrashID : 582] "bp-1" == "bp-1"
 0:01.80 INFO (xpcshell/head.js) | test run_next_test 19 pending (2)
 0:01.80 INFO (xpcshell/head.js) | test test_setRemoteCrashID finished (2)
 0:01.80 INFO (xpcshell/head.js) | test run_next_test 19 finished (1)
 0:01.80 INFO exiting test
 0:01.89 pid:1341519 [Parent 1341519, BgIOThreadPool #1] ###!!! ASSERTION: Failed Dispatch after xpcom-shutdown-threads: 'false', file /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/ThreadEventTarget.cpp:59
Initializing stack-fixing for the first stack frame, this may take a while...
 0:18.05 pid:1341519 #01: NS_DebugBreak [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/base/nsDebugImpl.cpp:0]
 0:18.05 pid:1341519 #02: mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/ThreadEventTarget.cpp:0]
 0:18.06 pid:1341519 #03: nsThread::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThread.cpp:650]
 0:18.06 pid:1341519 #04: nsIEventTarget::Dispatch(nsIRunnable*, unsigned int) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/dist/include/nsIEventTarget.h:41]
 0:18.06 pid:1341519 #05: mozilla::detail::RunnableFunction<mozilla::ipc::IdleSchedulerParent::IdleSchedulerParent()::$_4>::Run() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/dist/include/nsThreadUtils.h:532]
 0:18.06 pid:1341519 #06: nsThreadPool::Run() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThreadPool.cpp:305]
 0:18.06 pid:1341519 #07: nsThread::ProcessNextEvent(bool, bool*) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThread.cpp:1143]
 0:18.06 pid:1341519 #08: NS_ProcessNextEvent(nsIThread*, bool) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThreadUtils.cpp:466]
 0:18.06 pid:1341519 #09: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/ipc/glue/MessagePump.cpp:301]
 0:18.06 pid:1341519 #10: MessageLoop::RunInternal() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/ipc/chromium/src/base/message_loop.cc:0]
 0:18.06 pid:1341519 #11: MessageLoop::Run() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/ipc/chromium/src/base/message_loop.cc:307]
 0:18.06 pid:1341519 #12: nsThread::ThreadFunc(void*) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThread.cpp:392]
 0:18.07 pid:1341519 #13: _pt_root [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:204]
 0:18.07 pid:1341519 #14: ??? [/lib/x86_64-linux-gnu/libpthread.so.0 + 0x8ea7]
 0:18.07 pid:1341519 #15: clone [/lib/x86_64-linux-gnu/libc.so.6 + 0xfddef]
 0:18.07 pid:1341519 #16: ??? (???:???)
 0:18.07 pid:1341519 [Parent 1341519, BgIOThreadPool #1] ###!!! ASSERTION: Failed Dispatch after xpcom-shutdown-threads: 'false', file /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/ThreadEventTarget.cpp:59
 0:18.07 pid:1341519 Hit MOZ_CRASH() at /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/memory/mozalloc/mozalloc_abort.cpp:33
 0:18.14 pid:1341519 #01: mozalloc_abort [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/memory/mozalloc/mozalloc_abort.cpp:33]
 0:18.14 pid:1341519 #02: NS_DebugBreak [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/base/nsDebugImpl.cpp:417]
 0:18.14 pid:1341519 #03: mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/ThreadEventTarget.cpp:0]
 0:18.14 pid:1341519 #04: nsThread::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThread.cpp:650]
 0:18.14 pid:1341519 #05: nsIEventTarget::Dispatch(nsIRunnable*, unsigned int) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/dist/include/nsIEventTarget.h:41]
 0:18.14 pid:1341519 #06: mozilla::detail::RunnableFunction<mozilla::ipc::IdleSchedulerParent::IdleSchedulerParent()::$_4>::Run() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/dist/include/nsThreadUtils.h:532]
 0:18.14 pid:1341519 #07: nsThreadPool::Run() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThreadPool.cpp:305]
 0:18.14 pid:1341519 #08: nsThread::ProcessNextEvent(bool, bool*) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThread.cpp:1143]
 0:18.14 pid:1341519 #09: NS_ProcessNextEvent(nsIThread*, bool) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThreadUtils.cpp:466]
 0:18.14 pid:1341519 #10: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/ipc/glue/MessagePump.cpp:301]
 0:18.14 pid:1341519 #11: MessageLoop::RunInternal() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/ipc/chromium/src/base/message_loop.cc:0]
 0:18.14 pid:1341519 #12: MessageLoop::Run() [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/ipc/chromium/src/base/message_loop.cc:307]
 0:18.14 pid:1341519 #13: nsThread::ThreadFunc(void*) [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/xpcom/threads/nsThread.cpp:392]
 0:18.14 pid:1341519 #14: _pt_root [/home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:204]
 0:18.14 pid:1341519 #15: ??? [/lib/x86_64-linux-gnu/libpthread.so.0 + 0x8ea7]
 0:18.14 pid:1341519 #16: clone [/lib/x86_64-linux-gnu/libc.so.6 + 0xfddef]
 0:18.14 pid:1341519 #17: ??? (???:???)
 0:18.14 pid:1341519 ExceptionHandler::GenerateDump cloned child 1341541
 0:18.14 pid:1341519 ExceptionHandler::SendContinueSignalToChild sent continue signal to child
 0:18.14 pid:1341519 ExceptionHandler::WaitForContinueSignal waiting for continue signal...
 0:18.14 TEST_END: Test FAIL, expected PASS. Subtests passed 685/685. Unexpected 0 - xpcshell return code: -11
 0:18.14 mozcrash INFO Copy/paste: /home/alexandre/.mozbuild/minidump_stackwalk/minidump_stackwalk /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/temp/xpc-other-re2w5s4m/448e2d6a-64e4-50f6-a05b-727766675f78.dmp /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/d
ist/crashreporter-symbols
 0:20.01 CRASH: pid:1341139. Test:toolkit/components/crashes/tests/xpcshell/test_crash_store.js. Minidump analysed:False. Signature:[@ libxul.so + 0x49d8192]
Mozilla crash reason: MOZ_CRASH()

(running the full suite is fine, it seems):

$ BUILD_DEBUG=1 xvfb-run ./mach test toolkit/components/crashes/tests/
 0:01.12 INFO Found node at /home/alexandre/.mozbuild/node/bin/node
 0:01.12 INFO Found moz-http2 at /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/testing/xpcshell/moz-http2/moz-http2.js
 0:01.19 INFO Found /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/obj-browser-dbg/dist/bin/http3server
 0:01.19 INFO Using /home/alexandre/Documents/codaz/Mozilla/MiscWork/mozilla-source/mozilla-unified/netwerk/test/http3serverDB
 0:01.21 INFO Using at most 192 threads.
 0:01.21 SUITE_START: xpcshell - running 3 tests
 0:01.21 TEST_START: toolkit/components/crashes/tests/xpcshell/test_crash_service.js
 0:01.21 TEST_START: toolkit/components/crashes/tests/xpcshell/test_crash_manager.js
 0:01.22 TEST_START: toolkit/components/crashes/tests/xpcshell/test_crash_store.js
 0:01.73 TEST_END: PASS
 0:01.93 TEST_END: PASS
 0:05.25 TEST_END: PASS
 0:05.29 INFO INFO | Result summary:
 0:05.29 INFO INFO | Passed: 3
 0:05.29 INFO INFO | Failed: 0
 0:05.29 INFO INFO | Todo: 0
 0:05.29 INFO INFO | Retried: 0
 0:05.29 SUITE_END
 0:05.29 INFO Node moz-http2 server shutting down ...
 0:05.29 INFO http3Server server shutting down ...
 0:05.39
Overall Summary
===============

xpcshell
~~~~~~~~
Ran 3 checks (3 tests)
Expected results: 3
Unexpected results: 0
OK

Looks like a runnable was posted too late during shutdown. We'd have to figure out which one it is and where it's coming from.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.