Open Bug 1814771 Opened 2 years ago Updated 2 years ago

Intermittent intl/uconv/tests/unit/test_encode_gb18030.js | application crashed [@ mozilla::ThreadEventTarget::Dispatch]

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: crash, intermittent-failure)

Crash Data

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


[task 2023-02-02T22:42:28.077Z] 22:42:28     INFO -  TEST-START | modules/libpref/test/unit/test_bug506224.js
[task 2023-02-02T22:42:28.123Z] 22:42:28     INFO -  adb launch_application: am startservice -W -n 'org.mozilla.geckoview.test_runner/org.mozilla.geckoview.test_runner.XpcshellTestRunnerService$i1' -a android.intent.action.MAIN --es env0 XPCOM_DEBUG_BREAK=stack-and-abort --es env1 MOZ_CRASHREPORTER=1 --es env2 MOZ_CRASHREPORTER_NO_REPORT=1 --es env3 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es env4 MOZ_DEVELOPER_REPO_DIR=/builds/worker/checkouts/gecko --es env5 MOZ_DISABLE_CONTENT_SANDBOX=1 --es env6 MOZ_FETCHES_DIR=/builds/worker/fetches --es env7 MOZ_DISABLE_SOCKET_PROCESS=1 --es env8 LD_LIBRARY_PATH=/data/local/tmp/test_root/xpcb --es env9 MOZ_LINKER_CACHE=/data/local/tmp/test_root/xpcb --es env10 GRE_HOME=/data/local/tmp/test_root/xpcb --es env11 XPCSHELL_TEST_PROFILE_DIR=/data/local/tmp/test_root/xpc/p/5f66a06b-2838-441f-b890-337b9737d282 --es env12 HOME=/data/local/tmp/test_root/xpc/p --es env13 XPCSHELL_TEST_TEMP_DIR=/data/local/tmp/test_root/xpc/tmp/a20e7abe-0a14-4920-a447-a4438db4283a --es env14 MOZ_ANDROID_DATA_DIR=/data/local/tmp/test_root/xpcb --es env15 MOZ_IN_AUTOMATION=1 --es env16 MOZ_ANDROID_CPU_ABI=x86_64 --es env17 MOZHTTP2_PORT=38064 --es env18 MOZNODE_EXEC_PORT=39321 --es env19 TMPDIR=/data/local/tmp/test_root/xpc/p/5f66a06b-2838-441f-b890-337b9737d282 --es env20 XPCSHELL_MINIDUMP_DIR=/data/local/tmp/test_root/xpc/minidumps/5f66a06b-2838-441f-b890-337b9737d282 --es arg0 -g --es arg1 /data/local/tmp/test_root/xpcb --es arg2 --greomni --es arg3 /data/local/tmp/test_root/xpcb/geckoview-test_runner.apk --es arg4 -m --es arg5 -e --es arg6 'const _HEAD_JS_PATH = "/data/local/tmp/test_root/xpc/head.js";' --es arg7 -e --es arg8 'const _MOZINFO_JS_PATH = "/data/local/tmp/test_root/xpc/p/5f66a06b-2838-441f-b890-337b9737d282/mozinfo.json";' --es arg9 -e --es arg10 'const _PREFS_FILE = "/data/local/tmp/test_root/xpc/user.js";' --es arg11 -e --es arg12 'const _TESTING_MODULES_DIR = "/data/local/tmp/test_root/xpc/m";' --es arg13 -f --es arg14 /data/local/tmp/test_root/xpc/head.js --es arg15 -e --es arg16 'const _HEAD_FILES = ["/data/local/tmp/test_root/xpc/modules/libpref/test/unit/head_libPrefs.js"];' --es arg17 -e --es arg18 'const _JSDEBUGGER_PORT = 0;' --es arg19 -e --es arg20 'const _TEST_CWD = "/data/local/tmp/test_root/xpc/modules/libpref/test/unit";' --es arg21 -e --es arg22 'const _TEST_FILE = ["test_bug506224.js"];' --es arg23 -e --es arg24 'const _TEST_NAME = "modules/libpref/test/unit/test_bug506224.js";' --es arg25 -e --es arg26 '_execute_test(); quit(0);' --ez use_multiprocess True --es out_file /data/local/tmp/test_root/xpc/logs/xpcshell-021db474-56bc-4ea2-9f08-a12f999515a5.log
[task 2023-02-02T22:42:28.292Z] 22:42:28     INFO -  remotexpcshelltests.py | modules/libpref/test/unit/test_bug345529.js | 22123 | Launched Test App
[task 2023-02-02T22:42:28.376Z] 22:42:28     INFO -  remotexpcshelltests.py | modules/libpref/test/unit/test_bug506224.js | 22153 | Launched Test App
[task 2023-02-02T22:42:28.615Z] 22:42:28     INFO -  mozcrash Saved minidump as /builds/worker/workspace/build/blobber_upload_dir/5d690da2-7752-8d73-5168-4603bde3fb11.dmp
[task 2023-02-02T22:42:28.615Z] 22:42:28     INFO -  mozcrash Saved app info as /builds/worker/workspace/build/blobber_upload_dir/5d690da2-7752-8d73-5168-4603bde3fb11.extra
[task 2023-02-02T22:42:28.617Z] 22:42:28  WARNING -  PROCESS-CRASH | intl/uconv/tests/unit/test_encode_gb18030.js | application crashed [@ mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int)]
[task 2023-02-02T22:42:28.617Z] 22:42:28     INFO -  Mozilla crash reason: [Parent 19692, Unnamed thread 7fce84221680] ###!!! ASSERTION: Dispatch to non-main thread after xpcom-shutdown-threads: '!gXPCOMThreadsShutDownNotified || mIsMainThread || PR_GetCurrentThread() == mThread', file /builds/worker/checkouts/gecko/xpcom/threads/ThreadEventTarget.cpp:77
[task 2023-02-02T22:42:28.617Z] 22:42:28     INFO -  Crash dump filename: /tmp/tmpth50ugjk/5d690da2-7752-8d73-5168-4603bde3fb11.dmp
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Operating system: Android
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -                    0.0.0 Linux 3.10.0+ #260 SMP PREEMPT Fri May 19 12:48:14 PDT 2017 x86_64
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  CPU: amd64
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -       family 6 model 6 stepping 3
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -       4 CPUs
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Crash reason:  SIGSEGV / SEGV_MAPERR
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Crash address: 0x0
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Crashing instruction: `mov dword [0x0], 0x201`
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Memory accessed by instruction:
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -    0. Address: 0x0000000000000000
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -       Size: 4
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Process uptime: not available
[task 2023-02-02T22:42:28.618Z] 22:42:28     INFO -  Thread 14 BgIOThreadPool  (crashed)
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -   0  libxul.so!MOZ_Crash(char const*, int, char const*) [Assertions.h:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 261]
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -      Found by: inlining
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -   1  libxul.so!Abort(char const*) [nsDebugImpl.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 513 + 0x17]
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       rax = 0x00007fce96896d60    rdx = 0x0000000000000004
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       rcx = 0x745a90c7176474e2    rbx = 0x00007fce9c8594f0
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       rsi = 0x00007fce9c858d30    rdi = 0x000000000000001b
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       rbp = 0x00007fce9c8593f0    rsp = 0x00007fce9c8593e0
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -        r8 = 0x0000000000000000     r9 = 0x00007fcea2969090
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       r10 = 0x0000000000000017    r11 = 0x0000000000000246
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       r12 = 0x00007fce9c859480    r13 = 0x00007fce9c859438
[task 2023-02-02T22:42:28.619Z] 22:42:28     INFO -       r14 = 0x00007fce9c859468    r15 = 0x00007fce9c8594c8
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -       rip = 0x00007fce78e8fdab
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -      Found by: given as instruction pointer in context
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -   2  libxul.so!NS_DebugBreak [nsTSubstring.h:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 0 + 0x20]
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -       rbx = 0x00007fce84203112    rbp = 0x00007fce9c859b30
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -       rsp = 0x00007fce9c859400    r12 = 0x00007fce9c859480
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -       r13 = 0x00007fce9c859438    r14 = 0x00007fce9c859468
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -       r15 = 0x00007fce9c8594c8    rip = 0x00007fce78e8fa63
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -   3  libxul.so!mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) [ThreadEventTarget.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 75 + 0x25]
[task 2023-02-02T22:42:28.620Z] 22:42:28     INFO -       rbx = 0x0000000080070057    rbp = 0x00007fce9c859ce0
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       rsp = 0x00007fce9c859b40    r12 = 0x00007fce778836d0
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       r13 = 0x0000000000000004    r14 = 0x0000000000000000
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       r15 = 0x00007fce8393a700    rip = 0x00007fce78f79714
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -   4  libxul.so!nsThread::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) [nsThread.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 676 + 0xd]
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       rbx = 0x00007fce9c859cf0    rbp = 0x00007fce9c859d20
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       rsp = 0x00007fce9c859cf0    r12 = 0x00007fce9c859d40
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       r13 = 0x0000000000000004    r14 = 0x0000000000000000
[task 2023-02-02T22:42:28.621Z] 22:42:28     INFO -       r15 = 0x00007fce84293310    rip = 0x00007fce78f819b7
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -   5  libxul.so!nsIEventTarget::Dispatch(nsIRunnable*, unsigned int) [nsIEventTarget.h: : 38 + 0x19]
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -       rbx = 0x00007fce842932c0    rbp = 0x00007fce9c859d70
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -       rsp = 0x00007fce9c859d30    r12 = 0x00007fce9c859d40
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -       r13 = 0x0000000000000004    r14 = 0x0000000000000000
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -       r15 = 0x00007fce9c859d38    rip = 0x00007fce78f18ee0
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -   6  libxul.so!mozilla::ipc::IdleSchedulerParent::IdleSchedulerParent()::$_4::operator()() const [IdleSchedulerParent.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 80]
[task 2023-02-02T22:42:28.622Z] 22:42:28     INFO -      Found by: inlining
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -   7  libxul.so!mozilla::detail::RunnableFunction<mozilla::ipc::IdleSchedulerParent::IdleSchedulerParent()::$_4>::Run() [nsThreadUtils.h:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 546 + 0x70]
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -       rbx = 0x00007fce778836d0    rbp = 0x00007fce9c859e10
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -       rsp = 0x00007fce9c859d80    r12 = 0x00007fce9c859d80
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -       r13 = 0x0000000000000004    r14 = 0x00007fce9c859d88
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -       r15 = 0x00007fce778838d8    rip = 0x00007fce7968ae34
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -   8  libxul.so!nsThreadPool::Run() [nsThreadPool.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 313 + 0x10]
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -       rbx = 0x00007fce9c859e80    rbp = 0x00007fce9c859f40
[task 2023-02-02T22:42:28.623Z] 22:42:28     INFO -       rsp = 0x00007fce9c859e20    r12 = 0x00007fce9c859e70
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -       r13 = 0x0000000000000000    r14 = 0x00007fce84296920
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -       r15 = 0x0000000000000000    rip = 0x00007fce78f89168
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -   9  libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 1191 + 0xd]
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -       rbx = 0x00007fce9c859ff8    rbp = 0x00007fce9c85a090
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -       rsp = 0x00007fce9c859f50    r12 = 0x00007fce842938c8
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -       r13 = 0x00007fce842937a0    r14 = 0xaaaaaaaaaaaaaaaa
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -       r15 = 0x000000300f96458a    rip = 0x00007fce78f83736
[task 2023-02-02T22:42:28.624Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -  10  libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 477 + 0x12]
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -       rbx = 0x00007fce842937a0    rbp = 0x00007fce9c85a0d0
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a0a0    r12 = 0x00007fce9c85a0e8
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -       r13 = 0x00007fce7781d4a0    r14 = 0x0000000000000000
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -       r15 = 0x00007fce9c85a0af    rip = 0x00007fce78f87820
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -  11  libxul.so!mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [MessagePump.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 300 + 0x9]
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -       rbx = 0x00007fce9c85a1f0    rbp = 0x00007fce9c85a120
[task 2023-02-02T22:42:28.625Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a0e0    r12 = 0x00007fce9c85a0e8
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -       r13 = 0x00007fce7781d4a0    r14 = 0x00007fce7781d480
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -       r15 = 0x00007fce842937a0    rip = 0x00007fce7967e38a
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -  12  libxul.so!MessageLoop::RunInternal() [message_loop.cc:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 381 + 0x16]
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -       rbx = 0x00007fce9c85a1f0    rbp = 0x00007fce9c85a160
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a130    r12 = 0x00007fce842937e8
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -       r13 = 0x0000000000000002    r14 = 0x00007fce9c85a170
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -       r15 = 0x00007fce842937a0    rip = 0x00007fce79620532
[task 2023-02-02T22:42:28.626Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -  13  libxul.so!MessageLoop::RunHandler() [message_loop.cc:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 374]
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -      Found by: inlining
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -  14  libxul.so!MessageLoop::Run() [message_loop.cc:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 356 + 0x7]
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -       rbx = 0x00007fce9c85a1f0    rbp = 0x00007fce9c85a1a0
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a170    r12 = 0x00007fce842937e8
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -       r13 = 0x0000000000000002    r14 = 0x00007fce9c85a170
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -       r15 = 0x00007fce842937a0    rip = 0x00007fce7962049b
[task 2023-02-02T22:42:28.627Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -  15  libxul.so!nsThread::ThreadFunc(void*) [nsThread.cpp:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 383 + 0x7]
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       rbx = 0x00007fce9c85a1f0    rbp = 0x00007fce9c85a3a0
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a1b0    r12 = 0x00007fce842937e8
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       r13 = 0x0000000000000002    r14 = 0x0000000000000011
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       r15 = 0x00007fce842937a0    rip = 0x00007fce78f8052c
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -  16  libnss3.so!_pt_root [ptthread.c:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 201 + 0x9]
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       rbx = 0x00007fce9c85a4f8    rbp = 0x00007fce9c85a3e0
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a3b0    r12 = 0x00007fce84221680
[task 2023-02-02T22:42:28.628Z] 22:42:28     INFO -       r13 = 0x0000000000000002    r14 = 0x0000000000004dd8
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -       r15 = 0x00007fce9c85a450    rip = 0x00007fce83c7a13d
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -  17  libc.so!__pthread_start(void*) + 0xb1
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -       rbx = 0x00007fce9c85a4d0    rbp = 0x0000000000004cec
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a3f0    r12 = 0x00007fce9c85a450
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -       r13 = 0x00007fce83c79ff2    r14 = 0x00007fce9c85a450
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -       r15 = 0x00007fce9c85a4e8    rip = 0x00007fcea2010772
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -  18  libc.so!__start_thread + 0xb
[task 2023-02-02T22:42:28.629Z] 22:42:28     INFO -       rbx = 0x00007fce9c819450    rbp = 0x0000000000004cec
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a440    r12 = 0x0000000000000016
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       r13 = 0x00007fce83c79ff2    r14 = 0x00007fce9c85a450
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       r15 = 0x00007fce9c85a4e8    rip = 0x00007fcea1fb09ec
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -  19  libc.so!__bionic_clone + 0x35
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       rbx = 0x00007fce9c819450    rbp = 0x0000000000004cec
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a450    r12 = 0x0000000000000016
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       r13 = 0x00007fce83c79ff2    r14 = 0x00007fce9c85a450
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -       r15 = 0x00007fce9c85a4e8    rip = 0x00007fcea1fa3a66
[task 2023-02-02T22:42:28.630Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -  20  0x7fce76dfe44f
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -       rbx = 0x00007fce9c819450    rbp = 0x0000000000004cec
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a458    r12 = 0x0000000000000016
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -       r13 = 0x00007fce83c79ff2    r14 = 0x00007fce9c85a450
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -       r15 = 0x00007fce9c85a4e8    rip = 0x00007fce76dfe450
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -      Found by: call frame info
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -  21  libnss3.so!pt_recvfrom_cont [ptio.c:f61871c5f7b172a73d6707fb0b7cefbcc75c7877 : 0 + 0x4]
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -       rsp = 0x00007fce9c85a4b8    rip = 0x00007fce83c79ff2
[task 2023-02-02T22:42:28.631Z] 22:42:28     INFO -      Found by: stack scanning

"ASSERTION: Dispatch to non-main thread after xpcom-shutdown-threads"

Crash Signature: [@ mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int)] → [@ mozilla::ThreadEventTarget::Dispatch]
Summary: Intermittent intl/uconv/tests/unit/test_encode_gb18030.js | application crashed [@ mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int)] → Intermittent intl/uconv/tests/unit/test_encode_gb18030.js | application crashed [@ mozilla::ThreadEventTarget::Dispatch]

Looking at the stack, it appears the dispatch causing issues is https://searchfox.org/mozilla-central/rev/4d6a262deed98ddb4d609de94048e7f97b6e85d3/ipc/glue/IdleSchedulerParent.cpp#80, which is trying to dispatch a runnable to a background thread.

Interestingly, the code is doing a check of !AppShutdown::IsInOrBeyond(ShutdownPhase::XPCOMShutdownThreads) already in order to avoid this check (https://searchfox.org/mozilla-central/rev/4d6a262deed98ddb4d609de94048e7f97b6e85d3/ipc/glue/IdleSchedulerParent.cpp#66-67), so it's surprising to me that we're able to hit this error.

The error should theoretically only happen after https://searchfox.org/mozilla-central/rev/4d6a262deed98ddb4d609de94048e7f97b6e85d3/xpcom/build/XPCOMInit.cpp#595 has been called, which happens after the XPCOMShutdownThreads shutdown phase, so we shouldn't enter this code anymore.

:jstutte - do you have any ideas how we could be entering this state?

Severity: -- → S3
Flags: needinfo?(jstutte)

There is always a (small) window for a race here between the check and the dispatch, other ways how we can end up like this I cannot really see. We would need kind of an atomic DispatchIfNotBeyond function to close this window, not sure if it is worth having, though.

Maybe the IdleScheduler could just stop working from an earlier phase?

Flags: needinfo?(jstutte)

May be made easier to avoid with bug 1824189, as we could use a fallible dispatch.

See Also: → 1824189
You need to log in before you can comment on or make changes to this bug.