Closed Bug 1858677 Opened 3 years ago Closed 2 months ago

Crash in [@ shutdownhang | std::_Sort_unchecked<T>]

Categories

(Core :: JavaScript Engine, defect, P3)

Firefox 120
Unspecified
Windows 10
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: Robert_Hartmann, Unassigned)

References

(Blocks 1 open bug)

Details

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/2398daa2-583b-4dfe-84b0-508630231012

MOZ_CRASH Reason: Shutdown hanging at step CCPostLastCycleCollection. Something is blocking the main-thread.

Top 6 frames of crashing thread:

0  xul.dll  std::_Sort_unchecked<void**, `lambda at /builds/worker/checkouts/gecko/js/src/gc/Nursery.cpp:1324:13'>  /builds/worker/fetches/vs/VC/Tools/MSVC/14.29.30133/include/algorithm:7046
1  ?  @0x000001ce51d164df  
2  xul.dll  _tailMerge_hid.dll  
3  xul.dll  _tailMerge_hid.dll  
4  mozglue.dll  mozilla::TimeStamp::TimeStamp  mozglue/misc/TimeStamp_windows.h:57
4  mozglue.dll  mozilla::TimeStamp::Now  mozglue/misc/TimeStamp_windows.cpp:547

sadly I cannot give any information after which situation the crash happens.
Perhaps it was a crash of an instance which main window was closed, or it was a background process...

The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

The top stack frame is the sort in Nursery::freeTrailerBlocks: https://searchfox.org/mozilla-central/source/js/src/gc/Nursery.cpp#1322-1326

I don't expect this is actionable but passing it on just in case.

Flags: needinfo?(jseward)

This code is just using std::sort to sort a vector of machine words.
It seems unlikely to me that it is really in an infinite loop; that would
imply a bug in MS's std::sort implementation. More likely the thread
just happened to be in this sort routine when the timeout mechanism
looked at it.

That this code was executed at all implies that Fx at the time was
running an application that uses the wasm-gc extension, and had
possibly created a large number of wasm-gc objects.

Flags: needinfo?(jseward)

The bug has a crash signature, thus the bug will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
Priority: -- → P3

Signature no longer exists for current versions. Most recent Firefox crash report is 115.12.0esr

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.