macOS Crash in [@ _pthread_create.cold.2]
Categories
(Core :: DOM: Web Crypto, defect)
Tracking
()
People
(Reporter: aryx, Unassigned)
References
Details
(Keywords: crash)
Crash Data
This crash was preexisting but the frequency increased from 2-3 crashes/day to 7-13. All crash reports are on macOS 10.15 or 10.16 (= 11.0 with x64).
Crash report: https://crash-stats.mozilla.org/report/index/588269e4-7862-46ad-939b-a91ec0201201
Reason: EXC_BAD_INSTRUCTION / EXC_I386_INVOP
Top 10 frames of crashing thread:
0 libsystem_pthread.dylib _pthread_create.cold.2
1 libsystem_pthread.dylib _pthread_create
2 libnss3.dylib libnss3.dylib@0xd6e1f
3 libnss3.dylib _PR_CreateThread nsprpub/pr/src/pthreads/ptthread.c:458
4 libnss3.dylib PR_CreateThread nsprpub/pr/src/pthreads/ptthread.c:533
5 XUL nsThread::Init xpcom/threads/nsThread.cpp:659
6 libmozglue.dylib mozilla::TimeStamp::Now mozglue/misc/TimeStamp_darwin.cpp:145
7 XUL nsThreadManager::NewNamedThread xpcom/threads/nsThreadManager.cpp:640
8 libmozglue.dylib mozilla::PrintfTarget::appendIntDec mozglue/misc/Printf.cpp:190
9 XUL mozilla::dom::NormalizeToken dom/crypto/WebCryptoCommon.h:188
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 1•5 years ago
|
||
The urls submitted are various video sites.
Comment 3•5 years ago
|
||
We have a potential STR for this issue in bug 1689903 comment 2.
For some reason I can not reproduce the crash while downloading the testfiles. My crashes happens with mp4 files. Filesize are between 500MB to 15GB. It does not always crash but several times a day and only while downloading files. Below is the crash report by the OS.
The macOS-specific crash report attached by the user is attachment 9203931 [details]. It contains the following bit which seems interesting:
BUG IN CLIENT OF LIBPTHREAD: Unable to allocate thread port, possible port leak
The stack isn't great because of stack scanning but it seems that the issue originates here when we create a new background thread.
Comment 4•5 years ago
|
||
I tried with safe mode and the crash happens also in safe mode. I think it also produced a crash report (this is the only crash report in about:crashes).
https://crash-stats.mozilla.org/report/index/2abe2871-35bc-41c1-a128-46fe20210228#tab-correlation
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Added different signatures for different macOS versions. The stacks are now much better as unwinding is being done properly but this doesn't really shed any new light on this. All crashes have the mac crash info bit set like in comment 3.
Comment 6•3 years ago
|
||
In the last 6 months there have been only 11 crashes with these signatures: one in Thunderbird 78.7.1, one in Firefox 103.0.2, the rest in Firefox 91 ESR. I opened 6 of them and only one involved WebCrypto. Two others were dealing with certs in different ways (cert verification, OCSP), and three were doing background downloads (necko). That last is consistent with the bug in comment 3.
Description
•