TSan startup failures due to external (gfx related) libs
Categories
(Core :: Sanitizers, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: tsmith, Assigned: tsmith)
References
(Blocks 1 open bug)
Details
Attachments
(10 files, 1 obsolete file)
|
39.55 KB,
text/plain
|
Details | |
|
28.89 KB,
text/plain
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
32.20 KB,
text/plain
|
Details | |
|
36.46 KB,
text/plain
|
Details | |
|
31.84 KB,
text/plain
|
Details | |
|
12.13 KB,
text/plain
|
Details | |
|
30.56 KB,
text/plain
|
Details | |
|
25.96 KB,
text/plain
|
Details | |
|
10.60 KB,
text/plain
|
Details |
This is a start up crash on Ubuntu 22.04.
I believe this will require a suppression.
| Assignee | ||
Comment 1•3 years ago
|
||
Jonathan, is this the TSan report you were seeing when working on bug 1824200? If not could you please add the log and I will add a suppression if needed.
| Assignee | ||
Comment 2•3 years ago
|
||
Hmm, I'm going to assume that is a bugzilla issues since I've seen a few others do the exact same thing...
Comment 3•3 years ago
|
||
(In reply to Tyson Smith [:tsmith] from comment #1)
Jonathan, is this the TSan report you were seeing when working on bug 1824200? If not could you please add the log and I will add a suppression if needed.
No, mine's "unlock of an unlocked mutex (or by a wrong thread)" inside of libappmenu-gtk3-parser.so.0. I'll attach a log.
(Note that I'm on an older Ubuntu, so I expect all the system libs are different versions than yours.)
Comment 4•3 years ago
|
||
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 6•3 years ago
|
||
Jonathan: Would you mind testing the patch locally?
Or the try build (https://treeherder.mozilla.org/#/jobs?repo=try&revision=87a88b05de781c414298c2db6981af4548d68260)
| Assignee | ||
Comment 7•3 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Comment 8•3 years ago
|
||
With the current patch applied I am still getting this error. I though the libwayland-client.so.0 entry would have prevented this, not sure what I am missing.
Comment 9•3 years ago
|
||
(In reply to Tyson Smith [:tsmith] from comment #6)
Jonathan: Would you mind testing the patch locally?
Or the try build (https://treeherder.mozilla.org/#/jobs?repo=try&revision=87a88b05de781c414298c2db6981af4548d68260)
I tried the current patch in my local build, and it does avoid the error from comment 4; startup seems to get somewhat further, but then it dies with a new issue. This time it looks like a data race inside a Radeon driver, afaics. I'll attach a new log.
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
I was able to start the browser successfully after adding
+ "called_from_lib:libEGL_mesa\n" \
+ "called_from_lib:radeonsi_dri\n" \
to the list, but I don't really know the significance of what I'm suppressing here... :)
| Assignee | ||
Comment 12•3 years ago
|
||
Is the called_from_lib:libEGL_mesa\n line required? It is already in https://searchfox.org/mozilla-central/source/mozglue/build/TsanOptions.cpp#56
I see this when I add that line:
==12521==ThreadSanitizer: library '/lib/x86_64-linux-gnu/libEGL_mesa.so.0' that was matched against called_from_lib suppression 'libEGL_mesa' is unloaded
Comment 13•3 years ago
|
||
Without that line, it dies with the attached errors.
(Initially, I tried adding libLLVM-12 to the list, but still hit a problem, so then tried libEGL_mesa and that seems to have resolved it for me -- and then I didn't need libLLVM-12.)
| Assignee | ||
Comment 14•3 years ago
|
||
I'll add Wayland related suppressions in Bug 1825171
Comment 15•3 years ago
|
||
Attached launch failure log on Debian with NVidia driver 525.116.03 (X11).
| Assignee | ||
Updated•3 years ago
|
Comment 16•3 years ago
|
||
Comment 17•3 years ago
|
||
Comment 18•3 years ago
|
||
Crash with https://treeherder.mozilla.org/jobs?repo=try&revision=31935bd64d0fbfa423901f955a488505d9ab8969 on NVidia.
This trace doesn't seem to have any NVidia libs in it.
| Assignee | ||
Comment 19•3 years ago
|
||
The build is now able to launch in VMs with Wayland, X11 and hardware using Intel and AMD cards. nvidia crashes for other reasons and I will log a follow up bug.
Updated•3 years ago
|
Comment 20•3 years ago
|
||
Comment 21•3 years ago
|
||
| bugherder | ||
Description
•