Bug 2032944 Comment 11 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

On a debug build I see:

```
[Child 331150, MediaPDecoder #1] ###!!! ASSERTION: Packet must have gp by now: 'packet->granulepos != -1', file dom/media/ogg/OggCodecState.cpp:552
[331150] Assertion failure: mIsValid (Invalid checked integer (division by zero or integer overflow)), at dist/include/mozilla/CheckedInt.h:316
#01: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0xab313fa]
#02: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0xae8c0c0]
#03: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0xae9b976]
#04: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0xae9c984]
#05: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0xaa768ac]
#06: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x656518d]
#07: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x657d60f]
#08: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x657556c]
#09: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x657ab00]
#10: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x7158527]
#11: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x70941c2]
#12: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libxul.so +0x657116b]
#13: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/libnspr4.so +0x3d4fd]
#14: ???[/home/emilio/src/moz/firefox-4/obj-debug/dist/bin/firefox +0x8f83e]
#15: ???[/usr/lib/libc.so.6 +0x9697a]
#16: __clone[/usr/lib/libc.so.6 +0x11a0e4]
#17: ??? (???:???)
```
On a debug build I see:

```
[Child 331150, MediaPDecoder #1] ###!!! ASSERTION: Packet must have gp by now: 'packet->granulepos != -1', file dom/media/ogg/OggCodecState.cpp:552
[331150] Assertion failure: mIsValid (Invalid checked integer (division by zero or integer overflow)), at dist/include/mozilla/CheckedInt.h:316
```

Stack for the failure is:

```
#0  __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
#1  0x00007ff0aa69339c in __internal_syscall_cancel (a1=a1@entry=0, a2=a2@entry=0, a3=a3@entry=140671052061072, a4=a4@entry=140671052061072, a5=a5@entry=0, a6=a6@entry=0, nr=230) at cancellation.c:49
#2  0x00007ff0aa6e3452 in __GI___clock_nanosleep (clock_id=<optimized out>, clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7ff088169990, rem=rem@entry=0x7ff088169990) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
#3  0x00007ff0aa6ef537 in __GI___nanosleep (req=req@entry=0x7ff088169990, rem=rem@entry=0x7ff088169990) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#4  0x00007ff0aa701b8e in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#5  0x00007ff097d0f950 in common_crap_handler (signum=signum@entry=11, aFirstFramePC=<optimized out>) at ./../../../toolkit/xre/nsSigHandlers.cpp:104
#6  0x00007ff097d0fa6e in child_ah_crap_handler (signum=11) at ./../../../toolkit/xre/nsSigHandlers.cpp:118
#7  0x00007ff0993f00b9 in WasmTrapHandler (signum=11, info=0x7ff088169bf0, context=0x7ff088169ac0) at ./../../../../js/src/wasm/WasmSignalHandlers.cpp:819
#8  0x00007ff0aa63e2d0 in <signal handler called> () at /usr/lib/libc.so.6
#9  0x00007ff094d31412 in MOZ_CrashSequence (aAddress=0x0, aLine=316) at ../../dist/include/mozilla/Assertions.h:261
#10 mozilla::CheckedInt<long>::value (this=<optimized out>) at ../../dist/include/mozilla/CheckedInt.h:314
#11 mozilla::media::TimeUnit::IsPositiveOrZero (this=<optimized out>) at ./../../../dom/media/TimeUnits.cpp:169
#12 0x00007ff09508c0c0 in mozilla::OggCodecState::PacketOutAsMediaRawData (this=0x7ff0883e9c00) at ./../../../../dom/media/ogg/OggCodecState.cpp:267
#13 0x00007ff09509b976 in mozilla::OggTrackDemuxer::NextSample (this=this@entry=0x7ff086d464f0) at ./../../../../dom/media/ogg/OggDemuxer.cpp:1377
#14 0x00007ff09509c984 in mozilla::OggTrackDemuxer::GetSamples (this=0x7ff086d464f0, aNumSamples=1) at ./../../../../dom/media/ogg/OggDemuxer.cpp:1450
#15 0x00007ff094c768ac in mozilla::MediaFormatReader::DemuxerProxy::Wrapper::GetSamples(int)::{lambda()#1}::operator()() const (this=<optimized out>) at ./../../../dom/media/MediaFormatReader.cpp:700
#16 mozilla::detail::ProxyFunctionRunnable<mozilla::MediaFormatReader::DemuxerProxy::Wrapper::GetSamples(int)::{lambda()#1}, mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> >::Run()
    (this=0x7ff086d05830) at ../../dist/include/mozilla/MozPromise.h:1836
#17 0x00007ff09076518d in mozilla::TaskQueue::Runner::Run (this=0x7ff086d46610) at ./../../../xpcom/threads/TaskQueue.cpp:309
#18 0x00007ff09077d60f in nsThreadPool::Run (this=0x7ff086d64820) at ./../../../xpcom/threads/nsThreadPool.cpp:442
#19 0x00007ff09077556c in nsThread::ProcessNextEvent (this=0x7ff086d09240, aMayWait=<optimized out>, aResult=0x7ff086720a3f) at ./../../../xpcom/threads/nsThread.cpp:1173
#20 0x00007ff09077ab00 in NS_ProcessNextEvent (aThread=0x7ff0aa80b740 <_IO_stdfile_2_lock>, aThread@entry=0x7ff086d09240, aMayWait=false) at ./../../../xpcom/threads/nsThreadUtils.cpp:465
#21 0x00007ff091358527 in mozilla::ipc::MessagePumpForNonMainThreads::Run (this=0x7ff08695ffc0, aDelegate=0x7ff086720b00) at ./../../../ipc/glue/MessagePump.cpp:297
#22 0x00007ff0912941c2 in MessageLoop::RunHandler (this=0x7ff0aa80b740 <_IO_stdfile_2_lock>) at ./../../../ipc/chromium/src/base/message_loop.cc:364
#23 MessageLoop::Run (this=0x7ff0aa80b740 <_IO_stdfile_2_lock>) at ./../../../ipc/chromium/src/base/message_loop.cc:346
#24 0x00007ff09077116b in nsThread::ThreadFunc (aArg=0x7ff08692b8e0) at ./../../../xpcom/threads/nsThread.cpp:374
#25 0x00007ff0aad584fd in _pt_root (arg=arg@entry=0x7ff086929940) at ./../../../../../nsprpub/pr/src/pthreads/ptthread.c:190
#26 0x000055738c59283e in set_alt_signal_stack_and_start (params=<optimized out>) at ./../../../mozglue/interposers/pthread_create_interposer.cpp:81
#27 0x00007ff0aa69697a in start_thread (arg=<optimized out>) at pthread_create.c:454
```

Back to Bug 2032944 Comment 11