Closed Bug 1802623 Opened 2 years ago Closed 2 years ago

Android Crash in [@ OOM | large | mozalloc_abort | moz_xmalloc | new[]] | mozilla::SPSCRingBufferBase<T>::SPSCRingBufferBase

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 106
All
Android
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox107 --- affected
firefox108 --- affected
firefox109 --- affected
firefox110 --- affected
firefox111 --- affected
firefox112 --- unaffected
firefox113 --- unaffected
firefox116 --- unaffected
firefox117 --- unaffected
firefox118 --- unaffected

People

(Reporter: cpeterson, Assigned: padenot)

References

Details

(Keywords: crash)

Crash Data

@ Paul: I see many Android crash reports about OOMs in SPSCRingBufferBase, like Windows OOM bug 1757618. The OOM Allocation Size is always exactly 2,735,304,706 bytes (2.74 GB).

Crash report: https://crash-stats.mozilla.org/report/index/52df7903-2585-4bd2-8b9d-c56090221124

Reason: SIGSEGV / SEGV_MAPERR

Top 10 frames of crashing thread:

0  libmozglue.so  MOZ_Crash  mfbt/Assertions.h:261
0  libmozglue.so  mozalloc_abort  memory/mozalloc/mozalloc_abort.cpp:35
1  libmozglue.so  mozalloc_handle_oom  memory/mozalloc/mozalloc_oom.cpp:51
2  libmozglue.so  moz_xmalloc  memory/mozalloc/mozalloc.cpp:54
3  libxul.so  operator new[]  memory/mozalloc/cxxalloc.h:42
3  libxul.so  std::__ndk1::make_unique<short []>  /builds/worker/fetches/android-ndk/sources/cxx-stl/llvm-libc++/include/memory:3012
3  libxul.so  mozilla::SPSCRingBufferBase<short>::SPSCRingBufferBase  mfbt/SPSCQueue.h:114
3  libxul.so  mozilla::MakeUnique<mozilla::SPSCRingBufferBase<short>, unsigned int>  mfbt/UniquePtr.h:605
3  libxul.so  mozilla::AudioSink::AudioSink  dom/media/mediasink/AudioSink.cpp:56
4  libxul.so  mozilla::MediaDecoderStateMachine::CreateAudioSink const  dom/media/MediaDecoderStateMachine.cpp:3338
Flags: needinfo?(padenot)

I suspect this is a new signature for an old crash. This bug's crash data graph appears to show a big regression in September, but I think that's when Socorro's stack traces started to include inlined functions.

See Also: → 1802715
Flags: needinfo?(padenot)
Assignee: nobody → padenot

Bug 1802715 has been fixed, so I'm adding what I believe the new crash signature will be.

[@ OOM | large | mozalloc_abort | moz_xmalloc | new[] | mozilla::SPSCRingBufferBase<T>::SPSCRingBufferBase]

Crash Signature: [@ OOM | large | mozalloc_abort | moz_xmalloc | new[]] → [@ OOM | large | mozalloc_abort | moz_xmalloc | new[]] [@ OOM | large | mozalloc_abort | moz_xmalloc | new[] | mozilla::SPSCRingBufferBase<T>::SPSCRingBufferBase]

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)

99.4% of these crashes are from 32-bit ARM. The remaining 0.6% are from 32-bit x86.

Hardware: Unspecified → All
Version: unspecified → Firefox 106
Flags: needinfo?(jmathies)
Severity: -- → S2
Crash Signature: [@ OOM | large | mozalloc_abort | moz_xmalloc | new[]] [@ OOM | large | mozalloc_abort | moz_xmalloc | new[] | mozilla::SPSCRingBufferBase<T>::SPSCRingBufferBase] → [@ mozalloc_abort | moz_xmalloc | new[] | mozilla::SPSCRingBufferBase<T>::SPSCRingBufferBase] [@ OOM | large | mozalloc_abort | moz_xmalloc | new[]] [@ OOM | large | mozalloc_abort | moz_xmalloc | new[] | mozilla::SPSCRingBufferBase<T>::SPSCRingBufferBa…

I'm going to add sprinkle assertions to try to find the cause, it really is unclear.

Flags: needinfo?(padenot)

This crash's volume declined significantly after the Fenix 112 release in mid-March. There were 4000+ crash reports from 110, but only ~400 from 111.

Did a fix land in 112 or the crash signature change?

Severity: S2 → S3

(In reply to Paul Adenot (:padenot) from comment #9)

I don't see any crashes after 111.0a1., it's all old builds. Did I botch my query or something?

LGTM. I'll close this bug as WFM. Thanks for checking!

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(cpeterson)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.