Closed Bug 2046425 Opened 16 days ago Closed 14 days ago

Crash in [@ mozilla::FFmpegDescToVA]

Categories

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

ARM64
All
defect

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox151 --- unaffected
firefox152 --- unaffected
firefox153 --- fixed

People

(Reporter: gsvelto, Assigned: tboiko)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/7a1f0195-9828-4c14-9cd5-265150260610

Reason:

SIGSEGV / SEGV_MAPERR

Top 10 frames:

0  libxul.so  mozilla::FFmpegDescToVA(AVDRMFrameDescriptor&, AVFrame*)  dom/media/platforms/ffmpeg/FFmpegVideoFramePool.cpp:428
0  libxul.so  mozilla::VideoFramePool<46465650>::GetVideoFrameSurface(AVDRMFrameDescriptor&...  dom/media/platforms/ffmpeg/FFmpegVideoFramePool.cpp:599
1  libxul.so  mozilla::FFmpegVideoDecoder<62>::CreateImageV4L2(long, long, long, nsTArray<R...  dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp:2437
2  libxul.so  mozilla::FFmpegVideoDecoder<62>::DoDecode(mozilla::MediaRawData*, unsigned ch...  dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp:1656
3  libxul.so  mozilla::FFmpegDataDecoder<62>::ProcessDecode(mozilla::MediaRawData*)  dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp:310
4  libxul.so  mozilla::detail::RunnableMethodArguments<mozilla::MediaRawData*>::apply<mozil...  xpcom/threads/nsThreadUtils.h:1070
4  libxul.so  std::__invoke_impl<RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaD...  /builds/worker/fetches/sysroot-aarch64-linux-gnu/usr/include/c++/10/bits/invoke.h:60
4  libxul.so  std::__invoke<mozilla::detail::RunnableMethodArguments<mozilla::MediaRawData*...  /builds/worker/fetches/sysroot-aarch64-linux-gnu/usr/include/c++/10/bits/invoke.h:95
4  libxul.so  std::__apply_impl<mozilla::detail::RunnableMethodArguments<mozilla::MediaRawD...  /builds/worker/fetches/sysroot-aarch64-linux-gnu/usr/include/c++/10/tuple:1740
4  libxul.so  std::apply<mozilla::detail::RunnableMethodArguments<mozilla::MediaRawData*>::...  /builds/worker/fetches/sysroot-aarch64-linux-gnu/usr/include/c++/10/tuple:1751

It seems like we're hitting a null pointer but only on ARM64 for some reason, x86-64 builds seem unaffected.

Severity: -- → S2
Flags: needinfo?(tboiko)
Keywords: regression
OS: Unspecified → All
Priority: -- → P2
Regressed by: 2021722
Version: unspecified → Trunk
Attached file triage md report

Guard the hw_frames_ctx dereference in FFmpegDescToVA inside the
non-DRM_PRIME branch. V4L2 frames have a null hw_frames_ctx, so when
CreateImageV4L2 calls GetVideoFrameSurface with a non-DRM_PRIME format
the unconditional deref crashes at address 0x8. The deref is used only
for diagnostic logging so skip it when hw_frames_ctx is null.

Assignee: nobody → tboiko
Status: NEW → ASSIGNED
Flags: needinfo?(tboiko)

Set release status flags based on info from the regressing bug 2021722

Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: