Bug: Intermittent SUMMARY: ThreadSanitizer: thread leak /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:87:19 in std::sys::pal::unix::thread::Thread::new::hc27584d958188dcc
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-06-26 17:38:56+00:00
Resolved: 2024-09-25 12:03:23+00:00

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

---
```
[task 2024-06-26T17:12:35.296Z] 17:12:35     INFO -  TEST-PASS | browser/components/urlbar/tests/quicksuggest/unit/test_weather_keywords.js |  - Found the expected number of results. - 0 == 0
[task 2024-06-26T17:12:35.296Z] 17:12:35     INFO -  "Incremented min keyword length, new value is: 6"
[task 2024-06-26T17:12:35.296Z] 17:12:35     INFO -  "QuickSuggestTestUtils.setRemoteSettingsRecords Started"
[task 2024-06-26T17:12:35.296Z] 17:12:35     INFO -  "QuickSuggestTestUtils.setRemoteSettingsRecords Forcing sync"
[task 2024-06-26T17:12:35.297Z] 17:12:35     INFO -  "QuickSuggestTestUtils.forceSync Started"
[task 2024-06-26T17:12:35.297Z] 17:12:35     INFO -  "QuickSuggestTestUtils.forceSync Syncing Rust backend"
[task 2024-06-26T17:12:35.297Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /v1/buckets/main/collections/quicksuggest/records?type=icon&gt_last_modified=1368273600187&_sort=last_modified"
[task 2024-06-26T17:12:35.297Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /v1/buckets/main/collections/quicksuggest/records"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /attachments/main/quicksuggest/79"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /attachments/main/quicksuggest/79"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /attachments/main/quicksuggest/81"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /attachments/main/quicksuggest/81"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /attachments/main/quicksuggest/83"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /attachments/main/quicksuggest/83"
[task 2024-06-26T17:12:35.298Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /attachments/main/quicksuggest/85"
[task 2024-06-26T17:12:35.299Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /attachments/main/quicksuggest/85"
[task 2024-06-26T17:12:35.300Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /v1/buckets/main/collections/quicksuggest/records?type=data&gt_last_modified=1368273600187&_sort=last_modified"
[task 2024-06-26T17:12:35.300Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /v1/buckets/main/collections/quicksuggest/records"
<...>
[task 2024-06-26T17:12:35.321Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "< HTTP 1.1 GET /attachments/main/quicksuggest/85"
[task 2024-06-26T17:12:35.321Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "> 200 /attachments/main/quicksuggest/85"
[task 2024-06-26T17:12:35.321Z] 17:12:35     INFO -  "QuickSuggestTestUtils.forceSync Done syncing Rust backend"
[task 2024-06-26T17:12:35.322Z] 17:12:35     INFO -  "QuickSuggestTestUtils.forceSync Done"
[task 2024-06-26T17:12:35.322Z] 17:12:35     INFO -  "QuickSuggestTestUtils.setRemoteSettingsRecords Done"
[task 2024-06-26T17:12:35.322Z] 17:12:35     INFO -  (xpcshell/head.js) | test run_next_test 51 pending (2)
[task 2024-06-26T17:12:35.322Z] 17:12:35     INFO -  (xpcshell/head.js) | test finished (2)
[task 2024-06-26T17:12:35.322Z] 17:12:35     INFO -  (xpcshell/head.js) | test run_next_test 51 finished (1)
[task 2024-06-26T17:12:35.322Z] 17:12:35     INFO -  exiting test
[task 2024-06-26T17:12:35.323Z] 17:12:35     INFO -  "MockMerinoServer stopping"
[task 2024-06-26T17:12:35.323Z] 17:12:35     INFO -  "MockMerinoServer is now stopped"
[task 2024-06-26T17:12:35.323Z] 17:12:35     INFO -  "QuickSuggestTestUtils.#uninitQuickSuggest Started"
[task 2024-06-26T17:12:35.323Z] 17:12:35     INFO -  "QuickSuggestTestUtils.forceSync Started"
[task 2024-06-26T17:12:35.324Z] 17:12:35     INFO -  "QuickSuggestTestUtils.forceSync Done"
[task 2024-06-26T17:12:35.324Z] 17:12:35     INFO -  "QuickSuggestTestUtils.#uninitQuickSuggest Stopping remote settings server"
[task 2024-06-26T17:12:35.324Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "Stopping"
[task 2024-06-26T17:12:35.324Z] 17:12:35     INFO -  PID 11523 | console.info: RemoteSettingsServer: "Server is now stopped"
[task 2024-06-26T17:12:35.324Z] 17:12:35     INFO -  "QuickSuggestTestUtils.#uninitQuickSuggest Done"
[task 2024-06-26T17:12:35.325Z] 17:12:35     INFO -  "MerinoTestUtils cleanup function"
[task 2024-06-26T17:12:35.325Z] 17:12:35     INFO -  "MerinoTestUtils uninit: Depth is now 0"
[task 2024-06-26T17:12:35.325Z] 17:12:35     INFO -  "MerinoTestUtils uninit: Now uninitializing"
[task 2024-06-26T17:12:35.325Z] 17:12:35     INFO -  "MockMerinoServer uninit"
[task 2024-06-26T17:12:35.325Z] 17:12:35     INFO -  "Force a GC"
[task 2024-06-26T17:12:35.326Z] 17:12:35     INFO -  PID 11523 | [ERROR glean_core] Timeout while blocking on the dispatcher. No further shutdown cleanup will happen.
[task 2024-06-26T17:12:35.326Z] 17:12:35     INFO -  PID 11523 | ==================
[task 2024-06-26T17:12:35.326Z] 17:12:35     INFO -  PID 11523 | WARNING: ThreadSanitizer: thread leak (pid=11523)
[task 2024-06-26T17:12:35.326Z] 17:12:35     INFO -  PID 11523 |   Thread T97 'glean.upload' (tid=11626, finished) created by thread T95 at:
[task 2024-06-26T17:12:35.327Z] 17:12:35     INFO -  PID 11523 |     #0 pthread_create /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1023:3 (xpcshell+0xc56cb) (BuildId: a0c77fc3a2ba6eab35709b144a08803404ab4a4f)
[task 2024-06-26T17:12:35.327Z] 17:12:35     INFO -  PID 11523 |     #1 std::sys::pal::unix::thread::Thread::new::hc27584d958188dcc /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:87:19 (libxul.so+0xb22a7f5) (BuildId: 0238498149d08b1a14c11366231d1a14db13de79)
[task 2024-06-26T17:12:35.332Z] 17:12:35     INFO -  PID 11523 |     #2 std::thread::Builder::spawn_unchecked_::ha38775cf9d76a285 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:580:30 (libxul.so+0xabf911d) (BuildId: 0238498149d08b1a14c11366231d1a14db13de79)
[task 2024-06-26T17:12:35.333Z] 17:12:35     INFO -  PID 11523 |     #3 std::thread::Builder::spawn_unchecked::hfb8eac8d64f1468c /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:456:32 (libxul.so+0xabf911d)
[task 2024-06-26T17:12:35.334Z] 17:12:35     INFO -  PID 11523 |     #4 std::thread::Builder::spawn::h18077443ccb2e357 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:388:18 (libxul.so+0xabf911d)
[task 2024-06-26T17:12:35.334Z] 17:12:35     INFO -  PID 11523 |     #5 glean::net::UploadManager::trigger_upload::h30dfb2a5e2a7b19d /builds/worker/checkouts/gecko/third_party/rust/glean/src/net/mod.rs:110:14 (libxul.so+0xabf911d)
[task 2024-06-26T17:12:35.335Z] 17:12:35     INFO -  PID 11523 |     #6 _$LT$glean..GleanEvents$u20$as$u20$glean_core..OnGleanEvents$GT$::trigger_upload::h3336780a8cc0f895 /builds/worker/checkouts/gecko/third_party/rust/glean/src/lib.rs:78:9 (libxul.so+0xabf911d)
[task 2024-06-26T17:12:35.336Z] 17:12:35     INFO -  PID 11523 |     #7 glean_core::initialize_inner::_$u7b$$u7b$closure$u7d$$u7d$::hbc39b420381a4aae /builds/worker/checkouts/gecko/third_party/rust/glean-core/src/lib.rs:481:37 (libxul.so+0xac96b86) (BuildId: 0238498149d08b1a14c11366231d1a14db13de79)
[task 2024-06-26T17:12:35.336Z] 17:12:35     INFO -  PID 11523 |     #8 std::sys_common::backtrace::__rust_begin_short_backtrace::hf9d5401237d6f0e3 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:155:18 (libxul.so+0xac96b86)
[task 2024-06-26T17:12:35.337Z] 17:12:35     INFO -  PID 11523 |     #9 std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h9006005b9c9e0bae /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:542:17 (libxul.so+0xac94ccf) (BuildId: 0238498149d08b1a14c11366231d1a14db13de79)
[task 2024-06-26T17:12:35.338Z] 17:12:35     INFO -  PID 11523 |     #10 _$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h115816f898157dee /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/panic/unwind_safe.rs:272:9 (libxul.so+0xac94ccf)
[task 2024-06-26T17:12:35.338Z] 17:12:35     INFO -  PID 11523 |     #11 std::panicking::try::do_call::h4054244cd8d0f995 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panicking.rs:559:40 (libxul.so+0xac94ccf)
[task 2024-06-26T17:12:35.339Z] 17:12:35     INFO -  PID 11523 |     #12 std::panicking::try::ha8c88e3ec88c0850 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panicking.rs:523:19 (libxul.so+0xac94ccf)
[task 2024-06-26T17:12:35.339Z] 17:12:35     INFO -  PID 11523 |     #13 std::panic::catch_unwind::h2cc4692ebcd7f473 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/panic.rs:149:14 (libxul.so+0xac94ccf)
[task 2024-06-26T17:12:35.340Z] 17:12:35     INFO -  PID 11523 |     #14 std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::h569d94d700350438 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/thread/mod.rs:541:30 (libxul.so+0xac94ccf)
[task 2024-06-26T17:12:35.340Z] 17:12:35     INFO -  PID 11523 |     #15 core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h07ff0134fbd257a3 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5 (libxul.so+0xac94ccf)
[task 2024-06-26T17:12:35.341Z] 17:12:35     INFO -  PID 11523 |     #16 _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::he96159683efdca7b /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2022:9 (libxul.so+0xb22ac90) (BuildId: 0238498149d08b1a14c11366231d1a14db13de79)
[task 2024-06-26T17:12:35.342Z] 17:12:35     INFO -  PID 11523 |     #17 _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::hd5c342381ff65ac7 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/alloc/src/boxed.rs:2022:9 (libxul.so+0xb22ac90)
[task 2024-06-26T17:12:35.342Z] 17:12:35     INFO -  PID 11523 |     #18 std::sys::pal::unix::thread::Thread::new::thread_start::h7200d6b7d740b9e1 /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:108:17 (libxul.so+0xb22ac90)
[task 2024-06-26T17:12:35.343Z] 17:12:35     INFO -  PID 11523 | SUMMARY: ThreadSanitizer: thread leak /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/std/src/sys/pal/unix/thread.rs:87:19 in std::sys::pal::unix::thread::Thread::new::hc27584d958188dcc
[task 2024-06-26T17:12:35.344Z] 17:12:35     INFO -  PID 11523 | ==================
[task 2024-06-26T17:12:35.344Z] 17:12:35     INFO -  <<<<<<<
[task 2024-06-26T17:12:35.355Z] 17:12:35     INFO -  INFO | Result summary:
[task 2024-06-26T17:12:35.355Z] 17:12:35     INFO -  INFO | Passed: 175
[task 2024-06-26T17:12:35.356Z] 17:12:35  WARNING -  INFO | Failed: 1
[task 2024-06-26T17:12:35.356Z] 17:12:35  WARNING -  One or more unittests failed.
[task 2024-06-26T17:12:35.356Z] 17:12:35     INFO -  INFO | Todo: 0
[task 2024-06-26T17:12:35.357Z] 17:12:35     INFO -  INFO | Retried: 2
[task 2024-06-26T17:12:35.357Z] 17:12:35     INFO -  SUITE-END | took 878s
[task 2024-06-26T17:12:35.362Z] 17:12:35     INFO -  Node moz-http2 server shutting down ...
[task 2024-06-26T17:12:35.363Z] 17:12:35     INFO -  http3Server server shutting down ...
[task 2024-06-26T17:12:35.491Z] 17:12:35     INFO - Return code: 1
[task 2024-06-26T17:12:35.492Z] 17:12:35     INFO - TinderboxPrint: xpcshell-xpcshell<br/>175/<em class="testfail">1</em>/0
[task 2024-06-26T17:12:35.492Z] 17:12:35  WARNING - setting return code to 2
[task 2024-06-26T17:12:35.492Z] 17:12:35     INFO - The xpcshell suite: xpcshell ran with return status: FAILURE
```