Closed Bug 1610230 Opened 6 years ago Closed 4 years ago

Intermittent startup_about_home_paint | application crashed [@ nsTArray_Impl<RefPtr<nsThread>, nsTArrayInfallibleAllocator>::~nsTArray_Impl()]

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(4 keywords)

Crash Data

Filed by: opoprus [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=285556756&repo=mozilla-beta
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FVsFkkg1SWSpqE_itgX2hw/runs/0/artifacts/public/logs/live_backing.log


[task 2020-01-19T21:24:30.517Z] 21:24:30 INFO - PROCESS-CRASH | startup_about_home_paint | application crashed [@ nsTArray_Impl<RefPtr<nsThread>, nsTArrayInfallibleAllocator>::~nsTArray_Impl()]
[task 2020-01-19T21:24:30.517Z] 21:24:30 INFO - Crash dump filename: /var/folders/z9/1w5pxh9n4pn3gsz0vlwxyj8r000017/T/tmpIUOfeA/profile/minidumps/75CF0AD4-B661-4FBD-B1B1-C8D6B0B38190.dmp
[task 2020-01-19T21:24:30.517Z] 21:24:30 INFO - Operating system: Mac OS X
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - 10.14.5 18F132
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - CPU: amd64
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - family 6 model 69 stepping 1
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - 4 CPUs
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - GPU: UNKNOWN
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - Crash reason: EXC_BAD_ACCESS / EXC_I386_GPFLT
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - Crash address: 0x0
[task 2020-01-19T21:24:30.518Z] 21:24:30 INFO - Process uptime: 3 seconds
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - Thread 0 (crashed)
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - 0 XUL!nsTArray_Impl<RefPtr<nsThread>, nsTArrayInfallibleAllocator>::~nsTArray_Impl() [nsTArray.h:e7f513315a2a6278129d89beb93c7641c36e2394 : 914 + 0x5b]
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - rax = 0xe5e5e5e5e5e5e5e5 rdx = 0x00000000fffff801
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - rcx = 0x000000000000001d rbx = 0x00000001049fc680
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - rsi = 0x0000000000000001 rdi = 0x000000011cef9980
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - rbp = 0x000000011cef9980 rsp = 0x00007ffeeb583d10
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - r8 = 0xffffffff00000000 r9 = 0x000000000000866b
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - r10 = 0x000000010e707a38 r11 = 0x0000000114d00348
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - r12 = 0x0000000000000008 r13 = 0x000000010e706ab0
[task 2020-01-19T21:24:30.519Z] 21:24:30 INFO - r14 = 0x00007ffeeb583d50 r15 = 0x0000000000000010
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - rip = 0x000000010809f0a3
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - Found by: given as instruction pointer in context
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - 1 XUL!nsThreadManager::Shutdown() [nsThreadManager.cpp:e7f513315a2a6278129d89beb93c7641c36e2394 : 503 + 0x5]
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - rsp = 0x00007ffeeb583d40 rip = 0x00000001080950a1
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - 2 firefox + 0x1d97
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - rsp = 0x00007ffeeb583da0 rip = 0x000000010467cd97
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - 3 XUL!mozilla::ShutdownXPCOM(nsIServiceManager*) [XPCOMInit.cpp:e7f513315a2a6278129d89beb93c7641c36e2394 : 651 + 0xd]
[task 2020-01-19T21:24:30.520Z] 21:24:30 INFO - rsp = 0x00007ffeeb583dc0 rip = 0x00000001080b437a
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - 4 XUL!ScopedXPCOMStartup::~ScopedXPCOMStartup() [nsAppRunner.cpp:e7f513315a2a6278129d89beb93c7641c36e2394 : 1225 + 0x8]
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - rsp = 0x00007ffeeb583e00 rip = 0x000000010b88f44a
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - 5 XUL!XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) [nsAppRunner.cpp:e7f513315a2a6278129d89beb93c7641c36e2394 : 4769 + 0x19]
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - rsp = 0x00007ffeeb583e40 rip = 0x000000010b89837f
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - 6 firefox + 0x1d97
[task 2020-01-19T21:24:30.521Z] 21:24:30 INFO - rsp = 0x00007ffeeb583e80 rip = 0x000000010467cd97
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - 7 XUL!XRE_main(int, char**, mozilla::BootstrapConfig const&) [nsAppRunner.cpp:e7f513315a2a6278129d89beb93c7641c36e2394 : 4823 + 0x10]
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - rsp = 0x00007ffeeb583ec0 rip = 0x000000010b89893a
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - 8 firefox + 0xb4a
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - rsp = 0x00007ffeeb584000 rip = 0x000000010467bb4a
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - 9 firefox + 0x1d97
[task 2020-01-19T21:24:30.522Z] 21:24:30 INFO - rsp = 0x00007ffeeb584020 rip = 0x000000010467cd97
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - Found by: stack scanning
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - Thread 1
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - 0 libsystem_kernel.dylib!__workq_kernreturn + 0xa
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - rax = 0x0000000002000170 rdx = 0x0000000000000000
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - rcx = 0x000070000a1c3f98 rbx = 0x000070000a1c4000
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - rsi = 0x0000000000000000 rdi = 0x0000000000000004
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - rbp = 0x000070000a1c3fd0 rsp = 0x000070000a1c3f98
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - r8 = 0x0000000000064003 r9 = 0x0000000000000000
[task 2020-01-19T21:24:30.523Z] 21:24:30 INFO - r10 = 0x0000000000000000 r11 = 0x0000000000000246
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - r12 = 0x0000000000064003 r13 = 0x00000000000004ff
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - r14 = 0x000070000a1c40a4 r15 = 0x0000000000000000
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - rip = 0x00007fff66af5bfe
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - Found by: given as instruction pointer in context
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - 1 libsystem_pthread.dylib!start_wqthread + 0xd
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - rbp = 0x000070000a1c3ff8 rsp = 0x000070000a1c3fe0
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - rip = 0x00007fff66bb23fd
[task 2020-01-19T21:24:30.524Z] 21:24:30 INFO - Found by: previous frame's frame pointer
[task 2020-01-19T21:24:30.525Z] 21:24:30 INFO - 2 libdispatch.dylib!_dispatch_root_queues_init_once + 0xcd
[task 2020-01-19T21:24:30.525Z] 21:24:30 INFO - rsp = 0x000070000a1c4090 rip = 0x00007fff66980aec
[task 2020-01-19T21:24:30.525Z] 21:24:30 INFO - Found by: stack scanning

Eric, could somebody on your team take a look at this? It looks like it might be some kind of iterator invalidation during thread shutdown. Thanks.

Flags: needinfo?(erahm)

I'm going to mark this as sec-moderate, because we're pretty deep in shutdown at this point, so I think we're not running any web page content at this point.

Looks like it's happening when we exit a cleanup scope. It's all a bit sketchy, we have a global non-ref'd thread list, we pop those into a ref counted list (without adding refs), and then by going out of scope decrement the refs. It's not too hard to imagine something being removed from the global list before we exit the scope.

I think kmag is probably most well versed in this area at this point (and Nathan's out for a month either way).

Flags: needinfo?(erahm) → needinfo?(kmaglione+bmo)
Group: core-security → dom-core-security

2 year old shutdown failure that happened once. Let's just close this.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(kmaglione+bmo)
Resolution: --- → WORKSFORME
Group: dom-core-security
You need to log in before you can comment on or make changes to this bug.