[ASAN] certutil.exe segfaults on windows11 24H2
Categories
(Firefox Build System :: General, defect, P2)
Tracking
(firefox136 fixed)
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: jmaher, Assigned: yannis)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
we have fixed all the simple obvious things, now we are getting a segfault when running certutil.exe. After downloading items and trying to run the binaries locally, firefox.exe segfaults as well. It appears that all the .exe files I find segfault, this indicates something generic with the libraries we compile with or link with are causing problems.
I am not an expert in ASAN, but I believe it uses some shadow memory map, I don't know if we need to update tools, link with additional libraries, or add different compiler/linker flags.
| Reporter | ||
Comment 1•1 year ago
|
||
:glandium- do you have suggestions on how I could move forward here? this is reproducible, maybe you know something about the compiler/linker chains or some debugging tip I could do since I can reproduce this.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Yannis, could you check this out?
| Assignee | ||
Comment 3•1 year ago
|
||
Hi, I'm happy to help! We are talking about C:\Windows\System32\certutil.exe right? What command line do you run to get a segfault? For firefox.exe, can you point to an ASAN build of Firefox corresponding to the current progress on this track? Thanks!
| Reporter | ||
Comment 4•1 year ago
|
||
certutil.exe from our build artifacts used in testing. Here is a try push:
https://treeherder.mozilla.org/jobs?repo=try&searchStr=asan&revision=e8a35a9ded7ca55653c125045eb7e17949753285
you can see all the failures and download artifacts from the build, such as:
- target.installer.exe
- target.common.tar.gz - unpack this and there are tools in there (as well as test harness files and some tests)
- target.zip - instead of the .exe installer
| Assignee | ||
Comment 5•1 year ago
•
|
||
(In reply to Joel Maher ( :jmaher ) (UTC -8) from comment #4)
certutil.exe from our build artifacts used in testing
Thank you! I did not know about this one -- this makes a lot more sense. The issue is a subtle consequence of the addition of calls to memset in RtlDispatchException in ntdll.dll 10.0.26100.2161 (edit: in fact, in all Windows 11 24H2 builds so far -- thanks Gov Maharaj for figuring this out). I have filed an issue on github.
Updated•1 year ago
|
| Assignee | ||
Comment 6•1 year ago
|
||
This patch adds a temporary workaround when building compiler-rt to
ensure that we can run ASan builds on Windows 11 24H2. The proper fix
will come through llvm-project issue #114793 on github.
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
The attached patch can be used to run ASAN builds on Windows 11 24H2. Discussion whether we want to land it or wait for the proper fix will happen in the code review.
Comment 9•1 year ago
|
||
| bugherder | ||
Description
•