Closed Bug 1839193 Opened 3 years ago Closed 2 years ago

Assertion failure: mBase > 0, at /builds/worker/workspace/obj-build/dist/include/TimeUnits.h:84

Categories

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

defect

Tracking

()

VERIFIED FIXED
119 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- wontfix
firefox116 --- wontfix
firefox117 --- wontfix
firefox118 --- wontfix
firefox119 --- verified

People

(Reporter: tsmith, Assigned: padenot)

References

(Regression)

Details

(4 keywords, Whiteboard: [bugmon:bisected,confirmed,origRev=3cf19f416a7b])

Crash Data

Attachments

(2 files, 2 obsolete files)

Attached audio testcase.aac (obsolete) —

Found while fuzzing m-c 20230618-1634cff61cb0 (--enable-address-sanitizer --enable-fuzzing)

To reproduce via Grizzly Replay:

$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch -a --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.aac

Assertion failure: mBase > 0, at /builds/worker/workspace/obj-build/dist/include/TimeUnits.h:84

#0 0x7f5fc8066cc9 in TimeUnit /builds/worker/workspace/obj-build/dist/include/TimeUnits.h:84:5
#1 0x7f5fc8066cc9 in mozilla::FFmpegAudioDecoder<58>::DoDecode(mozilla::MediaRawData*, unsigned char*, int, bool*, nsTArray<RefPtr<mozilla::MediaData>>&) /builds/worker/checkouts/gecko/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp:350:34
#2 0x7f5fc8069c72 in mozilla::FFmpegDataDecoder<58>::DoDecode(mozilla::MediaRawData*, bool*, nsTArray<RefPtr<mozilla::MediaData>>&) /builds/worker/checkouts/gecko/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp:204:10
#3 0x7f5fc8069314 in mozilla::FFmpegDataDecoder<58>::ProcessDecode(mozilla::MediaRawData*) /builds/worker/checkouts/gecko/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp:158:20
#4 0x7f5fc808935b in operator()<StoreRefPtrPassByPtr<mozilla::MediaRawData> &> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1164:18
#5 0x7f5fc808935b in __invoke_impl<RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData> >, mozilla::MediaResult, true> >, (lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9), StoreRefPtrPassByPtr<mozilla::MediaRawData> &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:60:14
#6 0x7f5fc808935b in __invoke<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9), StoreRefPtrPassByPtr<mozilla::MediaRawData> &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:95:14
#7 0x7f5fc808935b in __apply_impl<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9), std::tuple<StoreRefPtrPassByPtr<mozilla::MediaRawData> > &, 0UL> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/tuple:1678:14
#8 0x7f5fc808935b in apply<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9), std::tuple<StoreRefPtrPassByPtr<mozilla::MediaRawData> > &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/tuple:1687:14
#9 0x7f5fc808935b in apply<mozilla::FFmpegDataDecoder<58>, RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData> >, mozilla::MediaResult, true> > (mozilla::FFmpegDataDecoder<58>::*)(mozilla::MediaRawData *)> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1162:12
#10 0x7f5fc808935b in Invoke /builds/worker/workspace/obj-build/dist/include/mozilla/MozPromise.h:1569:47
#11 0x7f5fc808935b in mozilla::detail::ProxyRunnable<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData>>, mozilla::MediaResult, true>, RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData>>, mozilla::MediaResult, true>> (mozilla::FFmpegDataDecoder<58>::*)(mozilla::MediaRawData*), mozilla::FFmpegDataDecoder<58>, mozilla::MediaRawData*>::Run() /builds/worker/workspace/obj-build/dist/include/mozilla/MozPromise.h:1589:42
#12 0x7f5fbf285880 in mozilla::TaskQueue::Runner::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskQueue.cpp:259:20
#13 0x7f5fbf2d90dc in nsThreadPool::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadPool.cpp:343:14
#14 0x7f5fbf2c7639 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16
#15 0x7f5fbf2d4d14 in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:479:10
#16 0x7f5fc0edd2e1 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:300:20
#17 0x7f5fc0d04e3a in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10
#18 0x7f5fc0d04e3a in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
#19 0x7f5fc0d04e3a in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
#20 0x7f5fbf2be69a in nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:391:10
#21 0x7f5fe6103b3f in _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5
#22 0x7f5fe5e94b42 in start_thread nptl/pthread_create.c:442:8
#23 0x7f5fe5f269ff  misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Flags: in-testsuite?
Crash Signature: [@ mozilla::media::TimeUnit::TimeUnit ]
Component: DOM: Core & HTML → Audio/Video: Playback

Unable to reproduce bug 1839193 using build mozilla-central 20230618205154-1634cff61cb0. Without a baseline, bugmon is unable to analyze this bug.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Keywords: bugmon

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

For more information, please visit BugBot documentation.

Flags: needinfo?(jmathies)

Possible timing changes related. Paul, thoughts?

Flags: needinfo?(jmathies) → needinfo?(padenot)

I can't repro, I'll try again.

https://crash-stats.mozilla.org/report/index/b365aac8-d8f2-41b3-a0a1-82ecc0230828

This issue was linked in the crash report. The crash happens to me consistently every time I seek a track from the Hades game OST. I will attach a short track from the OST to the issue, hopefully that's okay.

  1. Drag the file into Firefox
  2. When it starts playing, click the seek bar

Happens with the integrated audio controls, initially discovered with Airsonic.

Attached audio 18.flac (obsolete) —

Track 18 of the official Hades game OST from Steam. Seeking it (or any other track from this OST) reproduces the crash.

Blocks: 1850453

(In reply to chylex from comment #5)

https://crash-stats.mozilla.org/report/index/b365aac8-d8f2-41b3-a0a1-82ecc0230828

Thanks for the report. This stack looks different, I've open bug 1850453 for this flac related issue.

Attachment #9350559 - Attachment is obsolete: true
Attached file testcase.zip

Repackaged test case to make it bugmon friendly.

Attachment #9339862 - Attachment is obsolete: true
No longer blocks: 1850453
See Also: → 1850453

Verified bug as reproducible on mozilla-central 20230828212120-18ac70a5128d.
The bug appears to have been introduced in the following build range:

Start: 9fa4a7ae19238256fcd261c727ad2b08c6f1a4fd (20230524162134)
End: 6a96bb1f430f92b83cc31f74db4e4c1f71e155e5 (20230524133440)
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9fa4a7ae19238256fcd261c727ad2b08c6f1a4fd&tochange=6a96bb1f430f92b83cc31f74db4e4c1f71e155e5

Keywords: regression
Whiteboard: [bugmon:bisected,confirmed]
Flags: needinfo?(padenot)
Keywords: pernosco-wanted

Successfully recorded a pernosco session. A link to the pernosco session will be added here shortly.

A pernosco session for this bug can be found here.

This doesn't reproduce on current tip. This has been fixed by the ffmpeg changes in https://lando.services.mozilla.com/D185170/

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

Bug marked as FIXED but still reproduces on mozilla-central 20230912041249-3cf19f416a7b. If you believe this to be incorrect, please remove the bugmon keyword to prevent further analysis.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Flags: needinfo?(padenot)
Target Milestone: 118 Branch → ---
Flags: needinfo?(padenot)
Whiteboard: [bugmon:bisected,confirmed] → [bugmon:bisected,confirmed,origRev=3cf19f416a7b]

Successfully recorded a pernosco session. A link to the pernosco session will be added here shortly.

A pernosco session for this bug can be found here.

Assignee: nobody → padenot
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d881fdf179d0 Prefer using the sample-rate and channel count from the instance. r=alwu
Flags: needinfo?(padenot)
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d61a99de0775 Prefer using the sample-rate and channel count from the instance. r=alwu
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

Verified bug as fixed on rev mozilla-central 20230921032132-137b5966e6ec.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Status: RESOLVED → VERIFIED
Keywords: bugmon
Flags: in-testsuite? → in-testsuite+
See Also: → 2023046
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: