testing/enterprise/test_felt_browser_new_window_from_cli.py FeltNewWindowFromCli.test_new_window_from_cli | subprocess.CalledProcessError: Command '['/builds/worker/workspace/build/application/firefox/firefox', [...], died with <Signals.SIGSEGV: 11>.
Categories
(Enterprise Products :: Firefox, defect, P5)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: gerard-majax)
References
(Blocks 4 open bugs, Regression)
Details
(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [collect_confirm_failure])
Attachments
(2 external files)
Filed by: alissy [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=598248144&repo=enterprise-firefox-try&task=BjL9wLqVQtqE0Hs72UFfng.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BjL9wLqVQtqE0Hs72UFfng/runs/0/artifacts/public/logs/live_backing.log
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
We likely have the same failure on Windows as well: https://treeherder.mozilla.org/jobs?repo=enterprise-firefox-try&revision=e6cc54b50bcc17d2ac7e20c930a282e5ebc7b107&selectedTaskRun=fgWDLIY-SiWuF2tk-4SuJA.0
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
From Claude:
Common cause: when the second firefox process (the remoting client) sends its command to the running instance, it exits right away. XPCOM never started in that process, so nothing stops the background threads it started before it exits.
Linux (confirmed with a local repro):
- At exit, profiler shutdown records a Glean telemetry counter (Nightly builds only).
- That is the process's first Glean call, so it starts a new glean.dispatcher thread.
- Meanwhile the main thread exits, and static destructors destroy the profiler's mutex (gPSMutex).
- If the new thread starts late, it registers with the profiler, locks that destroyed mutex, and crashes.
Windows (suspected, not reproduced):
- At startup, COM setup (ProcessRuntime) starts a "COM MTA" thread without waiting for it to run.
- That thread is normally stopped during XPCOM shutdown, which never happens in the remoting client.
- The debug log shows the thread only began running after the main thread had finished XRE_main. It then used state already torn down, and the process crashed.
Why Bug 2076819 matters: it's an upstream change that turned on Glean's gecko feature. With it, every Glean thread registers with the profiler when it starts, and that registration is what takes the destroyed mutex on Linux. Before that change, the Glean thread started at exit never touched Gecko locks, so it couldn't crash this way. It reached our branch through the Oct 6 upstream merge, and the CI failures started on Oct 7. It doesn't explain the Windows crash.
Comment 3•1 month ago
|
||
(via GitHub webhook, authenticated as shared-secret)
| Assignee | ||
Comment 4•1 month ago
|
||
Let's try some cleaner exit in https://treeherder.mozilla.org/jobs?repo=enterprise-firefox-try&revision=1844eb3c6d46c94b5efbb8b959da21a32866e79c
| Assignee | ||
Comment 5•1 month ago
|
||
Comparing https://treeherder.mozilla.org/jobs?repo=enterprise-firefox-try&revision=5268a0c17fa36c3e53cf2b85aee8cdbc56664c02 vs https://treeherder.mozilla.org/jobs?repo=enterprise-firefox-try&revision=1844eb3c6d46c94b5efbb8b959da21a32866e79c confirms the fix is clear.
I'd still like to verify if mozilla::AppShutdown::DoImmediateExit(0); is really the correct fix or if we need to properly join threads there?
| Assignee | ||
Comment 6•1 month ago
|
||
(In reply to :gerard-majax from comment #2)
Windows (suspected, not reproduced):
- At startup, COM setup (ProcessRuntime) starts a "COM MTA" thread without waiting for it to run.
- That thread is normally stopped during XPCOM shutdown, which never happens in the remoting client.
- The debug log shows the thread only began running after the main thread had finished XRE_main. It then used state already torn down, and the process crashed.
So after investigating more the Windows part was already present back earlier. Looking at https://treeherder.mozilla.org/jobs?repo=enterprise-main&fromchange=e3428c0ea661d5344367d500fe426449ad793ceb&searchStr=enterprise%2Cwindows%2Cdebug%2Cmarionette-enterprise we could assume it started with https://treeherder.mozilla.org/jobs?repo=enterprise-main&searchStr=enterprise%2Cwindows%2Cdebug%2Cmarionette-enterprise&revision=632969ce3c285f26e2f5e7ef81b1d50193eb5430
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 7•1 month ago
|
||
| Comment hidden (Intermittent Failures Robot) |
Updated•1 month ago
|
Comment 10•1 month ago
|
||
| bugherder | ||
Description
•