Bug: Intermittent browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | application crashed [@ ___NSRunLoopTimerCreateWithHandler_block_invoke + 0x22]
Status: NEW
Priority: P5
Created: 2021-07-10 11:01:01+00:00
Resolved: 2022-10-05 13:42:21+00:00

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

---
```
[task 2021-07-10T10:11:28.471Z] 10:11:28     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js
[task 2021-07-10T10:11:28.477Z] 10:11:28     INFO - GECKO(3373) | must wait for load
[task 2021-07-10T10:11:28.571Z] 10:11:28     INFO - GECKO(3373) | must wait for focus
[task 2021-07-10T10:11:28.747Z] 10:11:28     INFO - GECKO(3373) | must wait for load
[task 2021-07-10T10:11:28.883Z] 10:11:28     INFO - GECKO(3373) | must wait for focus
[task 2021-07-10T10:11:29.097Z] 10:11:29     INFO - GECKO(3373) | must wait for load
[task 2021-07-10T10:11:29.236Z] 10:11:29     INFO - GECKO(3373) | must wait for focus
[task 2021-07-10T10:11:29.622Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.623Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.623Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.624Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.624Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.624Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.625Z] 10:11:29     INFO - GECKO(3373) | Exiting due to channel error.
[task 2021-07-10T10:11:29.728Z] 10:11:29     INFO - TEST-INFO | Main app process: exit 1
[task 2021-07-10T10:11:29.729Z] 10:11:29     INFO - Buffered messages logged at 10:11:28
[task 2021-07-10T10:11:29.729Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | LastDir should be the expected display dir - 
[task 2021-07-10T10:11:29.730Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | gDownloadLastDir should be the expected display dir - 
[task 2021-07-10T10:11:29.731Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | File picker should start with browser.download.lastDir - 
[task 2021-07-10T10:11:29.731Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | LastDir should be the expected last dir - 
[task 2021-07-10T10:11:29.732Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | gDownloadLastDir should be the expected global last dir - 
[task 2021-07-10T10:11:29.732Z] 10:11:29     INFO - Buffered messages logged at 10:11:29
[task 2021-07-10T10:11:29.732Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | LastDir should be the expected display dir - 
[task 2021-07-10T10:11:29.733Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | gDownloadLastDir should be the expected display dir - 
[task 2021-07-10T10:11:29.733Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | File picker should start with browser.download.lastDir - 
[task 2021-07-10T10:11:29.734Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | LastDir should be the expected last dir - 
[task 2021-07-10T10:11:29.734Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | gDownloadLastDir should be the expected global last dir - 
[task 2021-07-10T10:11:29.735Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | LastDir should be the expected display dir - 
[task 2021-07-10T10:11:29.735Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | gDownloadLastDir should be the expected display dir - 
[task 2021-07-10T10:11:29.736Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | File picker should start with browser.download.lastDir - 
[task 2021-07-10T10:11:29.736Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | LastDir should be the expected last dir - 
[task 2021-07-10T10:11:29.737Z] 10:11:29     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | gDownloadLastDir should be the expected global last dir - 
[task 2021-07-10T10:11:29.737Z] 10:11:29     INFO - Buffered messages finished
[task 2021-07-10T10:11:29.737Z] 10:11:29    ERROR - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | application terminated with exit code 1
[task 2021-07-10T10:11:29.738Z] 10:11:29     INFO - runtests.py | Application ran for: 0:00:23.414843
[task 2021-07-10T10:11:29.738Z] 10:11:29     INFO - zombiecheck | Reading PID log: /var/folders/6q/kkh_g5s168q04w1xr4nf32x4000014/T/tmpihvq7_akpidlog
[task 2021-07-10T10:11:29.739Z] 10:11:29     INFO - ==> process 3373 launched child process 3374
[task 2021-07-10T10:11:29.739Z] 10:11:29     INFO - ==> process 3373 launched child process 3375
[task 2021-07-10T10:11:29.739Z] 10:11:29     INFO - ==> process 3373 launched child process 3376
[task 2021-07-10T10:11:29.739Z] 10:11:29     INFO - ==> process 3373 launched child process 3377
[task 2021-07-10T10:11:29.739Z] 10:11:29     INFO - ==> process 3373 launched child process 3378
[task 2021-07-10T10:11:29.740Z] 10:11:29     INFO - ==> process 3373 launched child process 3379
[task 2021-07-10T10:11:29.740Z] 10:11:29     INFO - ==> process 3373 launched child process 3380
[task 2021-07-10T10:11:29.740Z] 10:11:29     INFO - ==> process 3373 launched child process 3381
<...>
[task 2021-07-10T10:11:29.755Z] 10:11:29     INFO - zombiecheck | Checking for orphan process with PID: 3407
[task 2021-07-10T10:11:29.755Z] 10:11:29     INFO - mozcrash Downloading symbols from: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WVP8kuaMRkq_UwLuVHafVw/artifacts/public/build/target.crashreporter-symbols.zip
[task 2021-07-10T10:11:34.027Z] 10:11:34     INFO - mozcrash Copy/paste: /opt/worker/tasks/task_162590927632898/fetches/minidump_stackwalk/minidump_stackwalk /var/folders/6q/kkh_g5s168q04w1xr4nf32x4000014/T/tmpm847jkjq.mozrunner/minidumps/532B96D5-0961-4AF6-9A20-3C22B3120188.dmp /var/folders/6q/kkh_g5s168q04w1xr4nf32x4000014/T/tmpo9f0lrqr
[task 2021-07-10T10:11:40.740Z] 10:11:40     INFO - mozcrash Saved minidump as /opt/worker/tasks/task_162590927632898/build/blobber_upload_dir/532B96D5-0961-4AF6-9A20-3C22B3120188.dmp
[task 2021-07-10T10:11:40.740Z] 10:11:40     INFO - mozcrash Saved app info as /opt/worker/tasks/task_162590927632898/build/blobber_upload_dir/532B96D5-0961-4AF6-9A20-3C22B3120188.extra
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - PROCESS-CRASH | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_downloadLastDir_c.js | application crashed [@ ___NSRunLoopTimerCreateWithHandler_block_invoke + 0x22]
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - Crash dump filename: /var/folders/6q/kkh_g5s168q04w1xr4nf32x4000014/T/tmpm847jkjq.mozrunner/minidumps/532B96D5-0961-4AF6-9A20-3C22B3120188.dmp
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - Operating system: Mac OS X
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO -                   10.15.7 19H1030
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - CPU: amd64
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO -      family 6 model 158 stepping 10
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO -      12 CPUs
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - 
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - GPU: UNKNOWN
[task 2021-07-10T10:11:41.124Z] 10:11:41     INFO - 
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO - Crash reason:  EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO - Crash address: 0x65e5e5e5e5f8
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO - Process uptime: 23 seconds
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO - 
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO - Thread 32 (crashed) 0  libobjc.A.dylib!objc_msgSend + 0x1d
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rax = 0x00000001815ecf10   rdx = 0x00000001815eccd0
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rcx = 0x000000012887c060   rbx = 0x00000001815eccd0
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rsi = 0x00007fff35bee7cb   rdi = 0x0000000177757f00
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rbp = 0x000070000c71ef10   rsp = 0x000070000c71eee8
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -      r8 = 0x0000000000000000    r9 = 0x0000000000000000
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     r10 = 0x000065e5e5e5e5e0   r11 = 0x00007fff35bee7cb
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     r12 = 0x00007fff37c97127   r13 = 0x0000000178c60e98
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     r14 = 0x0000000178c60e80   r15 = 0x000000012887c058
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rip = 0x00007fff709aa81d
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     Found by: given as instruction pointer in context
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -  1  AppKit!___NSRunLoopTimerCreateWithHandler_block_invoke + 0x22
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rbx = 0x00000001815eccd0   rbp = 0x000070000c71ef10
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rsp = 0x000070000c71eef0   r12 = 0x00007fff37c97127
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     r13 = 0x0000000178c60e98   r14 = 0x0000000178c60e80
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     r15 = 0x000000012887c058   rip = 0x00007fff3581b6c2
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     Found by: call frame info
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -  2  CoreFoundation!__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 0x14
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rbp = 0x000070000c71ef20   rsp = 0x000070000c71ef20
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rip = 0x00007fff37c732d9
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -  3  CoreFoundation!__CFRunLoopDoTimer + 0x35b
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rbp = 0x000070000c71ffd0   rsp = 0x000070000c71ef30
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     rip = 0x00007fff37c72e3f
[task 2021-07-10T10:11:41.125Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -  4  CoreFoundation!__CFRunLoopDoTimers + 0x142
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720050   rsp = 0x000070000c71ffe0
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff37c72927
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -  5  CoreFoundation!__CFRunLoopRun + 0x74f
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720d60   rsp = 0x000070000c720060
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff37c576ca
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -  6  CoreFoundation!CFRunLoopRunSpecific + 0x1ce
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720df0   rsp = 0x000070000c720d70
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff37c5691e
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -  7  Foundation!-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 0xd4
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720e30   rsp = 0x000070000c720e00
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff3a2f21a8
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -  8  AppKit!-[NSAnimation(NSInternal) _runBlocking] + 0x158
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720e80   rsp = 0x000070000c720e40
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff35170150
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -  9  AppKit!__42-[NSAnimation(NSInternal) _runInNewThread]_block_invoke + 0x61
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720ed0   rsp = 0x000070000c720e90
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff3516fe2d
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO - 10  libdispatch.dylib!_dispatch_call_block_and_release + 0xc
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720ef0   rsp = 0x000070000c720ee0
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rip = 0x00007fff71b056c4
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: previous frame's frame pointer
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO - 11  libdispatch.dylib!_dispatch_client_callout + 0x8
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720f10   rsp = 0x000070000c720f00
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     r12 = 0x0000000000002000   rip = 0x00007fff71b06658
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: call frame info
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO - 12  libdispatch.dylib!_dispatch_root_queue_drain + 0x297
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbp = 0x000070000c720f90   rsp = 0x000070000c720f20
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     r12 = 0x0000000000000000   rip = 0x00007fff71b14aa8
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     Found by: call frame info
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO - 13  libdispatch.dylib!_dispatch_worker_thread2 + 0x5c
[task 2021-07-10T10:11:41.126Z] 10:11:41     INFO -     rbx = 0x0000000000000000   rbp = 0x000070000c720fa0
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rsp = 0x000070000c720fa0   r12 = 0x0000000000000000
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     r14 = 0x0000000000000000   r15 = 0x0000000000000000
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rip = 0x00007fff71b15097
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     Found by: call frame info
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO - 14  libsystem_pthread.dylib!_pthread_wqthread + 0xdc
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rbx = 0x0000000000000000   rbp = 0x000070000c720fd0
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rsp = 0x000070000c720fb0   r12 = 0x0000000000000000
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     r14 = 0x0000000000000000   r15 = 0x0000000000000000
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rip = 0x00007fff71d609f7
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     Found by: call frame info
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO - 15  libsystem_pthread.dylib!start_wqthread + 0xf
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rbx = 0x0000000000000000   rbp = 0x000070000c720ff0
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rsp = 0x000070000c720fe0   r12 = 0x0000000000000000
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     r14 = 0x0000000000000000   r15 = 0x0000000000000000
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     rip = 0x00007fff71d5fb77
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -     Found by: call frame info
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO - 
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO - Thread 0 - MainThread
[task 2021-07-10T10:11:41.127Z] 10:11:41     INFO -  0  libobjc.A.dylib!objc_loadWeakRetained + 0x95
```