Closed Bug 1748643 Opened 3 years ago Closed 3 years ago

Crash in [@ core::ptr::drop_in_place<T> | midir_impl_shutdown]

Categories

(Core :: DOM: Device Interfaces, defect)

Unspecified
All
defect

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/cc91a601-fd83-49a5-bf90-c084b0211228

Reason: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS

Top 10 frames of crashing thread:

0 XUL core::ptr::drop_in_place<midir_impl::MidirWrapper> library/core/src/ptr/mod.rs:188
1 XUL midir_impl_shutdown dom/midi/midir_impl/src/lib.rs:211
2 XUL mozilla::dom::midirMIDIPlatformService::~midirMIDIPlatformService dom/midi/midirMIDIPlatformService.cpp:57
3 XUL mozilla::dom::midirMIDIPlatformService::~midirMIDIPlatformService dom/midi/midirMIDIPlatformService.cpp:56
4 XUL mozilla::dom::MIDIManagerParent::RecvShutdown dom/midi/MIDIManagerParent.cpp:21
5 XUL mozilla::dom::PMIDIManagerParent::OnMessageReceived ipc/ipdl/PMIDIManagerParent.cpp:168
6 XUL mozilla::ipc::PBackgroundParent::OnMessageReceived ipc/ipdl/PBackgroundParent.cpp:3418
7 XUL mozilla::ipc::MessageChannel::DispatchMessage ipc/glue/MessageChannel.cpp:1968
8 XUL mozilla::ipc::MessageChannel::MessageTask::Run ipc/glue/MessageChannel.cpp:1855
9 XUL nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1177

This appears to be an intermittent shutdown crash which we also saw on Linux in automation, see: https://treeherder.mozilla.org/logviewer?job_id=362239866&repo=autoland&lineNumber=3818

Haven't seen this since I fixed bug 1748647 so most likely a dup.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

This showed up again

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

While working on bug 1750763 I finally got a reproducible STR: follow the steps in bug 1750763 comment 0 then shut down Firefox while the music is still playing. I'll work on this tomorrow.

Assignee: nobody → gsvelto
Status: REOPENED → ASSIGNED

This patch fixes two different issues: accessing the MIDI service after
it has shut down and sending MIDI messages through ports that have
already been closed. In both cases we just drop the operation since it
has become meaningless.

Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eaeaf7286193 Do not process MIDI runnables after shutdown r=padenot

Backed out for causing mochitest failures on test_midi_permission_gated.html.

Push with failures

Failure log

Backout link

[task 2022-02-11T22:54:14.764Z] 22:54:14     INFO - mozcrash Saved app info as /builds/worker/workspace/build/blobber_upload_dir/6d806f87-941d-881b-5077-6a7e3b877330.extra
[task 2022-02-11T22:54:15.096Z] 22:54:15     INFO - PROCESS-CRASH | dom/midi/tests/test_midi_permission_gated.html (finished) | application crashed [@ midir_impl_shutdown]
[task 2022-02-11T22:54:15.096Z] 22:54:15     INFO - Crash dump filename: /tmp/tmpxqru_s4u.mozrunner/minidumps/6d806f87-941d-881b-5077-6a7e3b877330.dmp
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - Operating system: Linux
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO -                   0.0.0 Linux 4.4.0-1014-aws #14taskcluster1-Ubuntu SMP Tue Apr 3 10:27:00 UTC 2018 x86_64
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - CPU: amd64
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO -      family 6 model 85 stepping 7
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO -      2 CPUs
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - Linux Ubuntu 18.04 - bionic (Ubuntu 18.04.6 LTS)
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - 
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - Crash reason:  SIGSEGV / SEGV_MAPERR
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - Crash address: 0x10
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - Process uptime: not available
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - 
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO - Thread 6  (crashed)
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO -  0  libxul.so!midir_impl_shutdown [lib.rs:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 227 + 0x0]
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO -     rax = 0x00007f994e633e90   rdx = 0x0000000000000000
[task 2022-02-11T22:54:15.098Z] 22:54:15     INFO -     rcx = 0x0000000000000000   rbx = 0x00007f994c97a9d0
[task 2022-02-11T22:54:15.099Z] 22:54:15     INFO -     rsi = 0x00007f997a1d938f   rdi = 0x0000000000000000
[task 2022-02-11T22:54:15.099Z] 22:54:15     INFO -     rbp = 0x00007f9970f92760   rsp = 0x00007f9970f92730
[task 2022-02-11T22:54:15.099Z] 22:54:15     INFO -      r8 = 0x0000000000000010    r9 = 0x00007f997d1de3e2
[task 2022-02-11T22:54:15.100Z] 22:54:15     INFO -     r10 = 0x0000000000000014   r11 = 0x0000000000001230
[task 2022-02-11T22:54:15.100Z] 22:54:15     INFO -     r12 = 0x0000000000000000   r13 = 0x0000000000000000
[task 2022-02-11T22:54:15.101Z] 22:54:15     INFO -     r14 = 0x00007f994c97a9d0   r15 = 0x00007f994d78c590
[task 2022-02-11T22:54:15.101Z] 22:54:15     INFO -     rip = 0x00007f99828ea771
[task 2022-02-11T22:54:15.101Z] 22:54:15     INFO -     Found by: given as instruction pointer in context
[task 2022-02-11T22:54:15.102Z] 22:54:15     INFO -  1  libxul.so!mozilla::dom::midirMIDIPlatformService::~midirMIDIPlatformService() [midirMIDIPlatformService.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 66 + 0xb]
[task 2022-02-11T22:54:15.102Z] 22:54:15     INFO -     rbx = 0x00007f994c97a9d0   rbp = 0x00007f9970f92780
[task 2022-02-11T22:54:15.103Z] 22:54:15     INFO -     rsp = 0x00007f9970f92770   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.103Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f994c97a9d0
[task 2022-02-11T22:54:15.103Z] 22:54:15     INFO -     r15 = 0x00007f994d78c590   rip = 0x00007f997fc4d487
[task 2022-02-11T22:54:15.104Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.104Z] 22:54:15     INFO -  2  libxul.so!mozilla::dom::midirMIDIPlatformService::~midirMIDIPlatformService() [midirMIDIPlatformService.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 64 + 0x10]
[task 2022-02-11T22:54:15.104Z] 22:54:15     INFO -     rbx = 0x00007f994c97a9d0   rbp = 0x00007f9970f927a0
[task 2022-02-11T22:54:15.105Z] 22:54:15     INFO -     rsp = 0x00007f9970f92790   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.105Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9970f927d8
[task 2022-02-11T22:54:15.105Z] 22:54:15     INFO -     r15 = 0x00007f994d78c590   rip = 0x00007f997fc4d517
[task 2022-02-11T22:54:15.105Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.105Z] 22:54:15     INFO -  3  libxul.so!mozilla::dom::MIDIPlatformService::Release() [MIDIPlatformService.h:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 35 + 0x55]
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -     rbx = 0x00007f994c97a9d0   rbp = 0x00007f9970f927c0
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -     rsp = 0x00007f9970f927b0   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9970f927d8
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -     r15 = 0x00007f994d78c590   rip = 0x00007f997fc4b03a
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -  4  libxul.so!mozilla::dom::MIDIPlatformService::RemoveManager(mozilla::dom::MIDIManagerParent*) [MIDIPlatformService.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 228 + 0x7]
[task 2022-02-11T22:54:15.106Z] 22:54:15     INFO -     rbx = 0x00007f994c97a9d0   rbp = 0x00007f9970f92800
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     rsp = 0x00007f9970f927d0   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9970f927d8
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     r15 = 0x00007f994d78c590   rip = 0x00007f997fc44fa9
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -  5  libxul.so!mozilla::ipc::BackgroundParentImpl::DeallocPMIDIManagerParent(mozilla::dom::PMIDIManagerParent*) [BackgroundParentImpl.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 1290 + 0xf]
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     rbx = 0x00007f99509f48d0   rbp = 0x00007f9970f92840
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     rsp = 0x00007f9970f92810   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.107Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9970f92820
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     r15 = 0x00007f994d78c590   rip = 0x00007f997d8f8b66
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -  6  libxul.so!mozilla::ipc::ActorLifecycleProxy::~ActorLifecycleProxy() [ProtocolUtils.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 248 + 0x8]
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     rbx = 0x00007f994d78c580   rbp = 0x00007f9970f92870
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     rsp = 0x00007f9970f92850   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f994d78c5a0
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     r15 = 0x00007f994d78c590   rip = 0x00007f997d943949
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.108Z] 22:54:15     INFO -  7  libxul.so!mozilla::ipc::ActorLifecycleProxy::Release() [ProtocolUtils.h:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 609 + 0x4f]
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     rbx = 0x00007f994d78c580   rbp = 0x00007f9970f92890
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     rsp = 0x00007f9970f92880   r12 = 0x0000000000000001
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f995477b000
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     r15 = 0x00007f995477b290   rip = 0x00007f997d9173b0
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -  8  libxul.so!mozilla::ipc::PBackgroundParent::ClearSubtree() [PBackgroundParent.cpp: : 6904 + 0x9]
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     rbx = 0x0000000000000000   rbp = 0x00007f9970f928d0
[task 2022-02-11T22:54:15.109Z] 22:54:15     INFO -     rsp = 0x00007f9970f928a0   r12 = 0x0000000000000001
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f995477b000
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     r15 = 0x00007f995477b290   rip = 0x00007f997dc7c66a
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -  9  libxul.so!mozilla::ipc::PBackgroundParent::OnChannelClose() [PBackgroundParent.cpp: : 6519 + 0x7]
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     rbx = 0x00007f995477b000   rbp = 0x00007f9970f928f0
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     rsp = 0x00007f9970f928e0   r12 = 0x00007f9970f92980
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     r13 = 0x00007f998de9c820   r14 = 0x00007f9970f92908
[task 2022-02-11T22:54:15.110Z] 22:54:15     INFO -     r15 = 0xaaaaaaaaaaaaaaaa   rip = 0x00007f997dc7b0fa
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO - 10  libxul.so!mozilla::ipc::MessageChannel::OnNotifyMaybeChannelError() [MessageChannel.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 1936 + 0xa]
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO -     rbx = 0x00007f995477b088   rbp = 0x00007f9970f92930
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO -     rsp = 0x00007f9970f92900   r12 = 0x00007f9970f92980
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO -     r13 = 0x00007f998de9c820   r14 = 0x00007f9970f92908
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO -     r15 = 0xaaaaaaaaaaaaaaaa   rip = 0x00007f997d92c04b
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.111Z] 22:54:15     INFO - 11  libxul.so!mozilla::detail::RunnableMethodImpl<mozilla::ipc::MessageChannel*, void (mozilla::ipc::MessageChannel::*)(), false, (mozilla::RunnableKind)1, >::Run() [nsThreadUtils.h:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 1200 + 0x16]
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     rbx = 0x00007f9970f929f0   rbp = 0x00007f9970f92940
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     rsp = 0x00007f9970f92940   r12 = 0x00007f9970f92980
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     r13 = 0x00007f998de9c820   r14 = 0x00007f998de9c6f0
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     r15 = 0xaaaaaaaaaaaaaaaa   rip = 0x00007f997d940daf
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO - 12  libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 1165 + 0x10]
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     rbx = 0x00007f9970f929f0   rbp = 0x00007f9970f92a80
[task 2022-02-11T22:54:15.112Z] 22:54:15     INFO -     rsp = 0x00007f9970f92950   r12 = 0x00007f9970f92980
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     r13 = 0x00007f998de9c820   r14 = 0x00007f998de9c6f0
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     r15 = 0xaaaaaaaaaaaaaaaa   rip = 0x00007f997d279bf8
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO - 13  libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 467 + 0xb]
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     rbx = 0x0000000000000001   rbp = 0x00007f9970f92ab0
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     rsp = 0x00007f9970f92a90   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     r13 = 0x00007f9976af63e0   r14 = 0x00007f9970f92a97
[task 2022-02-11T22:54:15.113Z] 22:54:15     INFO -     r15 = 0x00007f998de9c6f0   rip = 0x00007f997d27e8b8
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO - 14  libxul.so!mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [MessagePump.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 330 + 0xc]
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO -     rbx = 0x00007f9970f92bb8   rbp = 0x00007f9970f92b00
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO -     rsp = 0x00007f9970f92ac0   r12 = 0x0000000000000000
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO -     r13 = 0x00007f9976af63e0   r14 = 0x00007f9976af63c0
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO -     r15 = 0x00007f998de9c6f0   rip = 0x00007f997d92e427
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.114Z] 22:54:15     INFO - 15  libxul.so!MessageLoop::RunInternal() [message_loop.cc:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 331 + 0x16]
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     rbx = 0x00007f9970f92bb8   rbp = 0x00007f9970f92b40
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     rsp = 0x00007f9970f92b10   r12 = 0x00007f9970f92bb8
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     r13 = 0x000000000000000f   r14 = 0x00007f9970f92b50
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     r15 = 0x00007f998de9c6f0   rip = 0x00007f997d8cdc41
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO - 16  libxul.so!MessageLoop::Run() [message_loop.cc:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 306 + 0x7]
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     rbx = 0x00007f9970f92bb8   rbp = 0x00007f9970f92b80
[task 2022-02-11T22:54:15.115Z] 22:54:15     INFO -     rsp = 0x00007f9970f92b50   r12 = 0x00007f9970f92bb8
[task 2022-02-11T22:54:15.116Z] 22:54:15     INFO -     r13 = 0x000000000000000f   r14 = 0x00007f9970f92b50
[task 2022-02-11T22:54:15.116Z] 22:54:15     INFO -     r15 = 0x00007f998de9c6f0   rip = 0x00007f997d8cdb9b
[task 2022-02-11T22:54:15.116Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.116Z] 22:54:15     INFO - 17  libxul.so!nsThread::ThreadFunc(void*) [nsThread.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 387 + 0x7]
[task 2022-02-11T22:54:15.116Z] 22:54:15     INFO -     rbx = 0x00007f998de9c740   rbp = 0x00007f9970f92db0
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO -     rsp = 0x00007f9970f92b90   r12 = 0x00007f9970f92bb8
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO -     r13 = 0x000000000000000f   r14 = 0x00007f998de9c748
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO -     r15 = 0x00007f998de9c6f0   rip = 0x00007f997d27660a
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO - 18  libnspr4.so!_pt_root [ptthread.c:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 201 + 0x6]
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO -     rbx = 0x00007f9977de3940   rbp = 0x00007f9970f92e00
[task 2022-02-11T22:54:15.117Z] 22:54:15     INFO -     rsp = 0x00007f9970f92dc0   r12 = 0x00007f9970f93630
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     r13 = 0x0000000000000002   r14 = 0x0000000000001061
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     r15 = 0x00007f9970f93700   rip = 0x00007f998f37a537
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO - 19  firefox-bin!set_alt_signal_stack_and_start(PthreadCreateParams*) [pthread_create_interposer.cpp:eaeaf72861930aada0bee1325d526ee0a4e5b3eb : 80 + 0x5]
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     rbx = 0x00007f998f229000   rbp = 0x00007f9970f92eb0
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     rsp = 0x00007f9970f92e10   r12 = 0x00007f998f37a3c2
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9977de3940
[task 2022-02-11T22:54:15.118Z] 22:54:15     INFO -     r15 = 0x00007f9970f92e20   rip = 0x00005625ffad056f
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO - 20  libpthread.so.0!start_thread [pthread_create.c : 463 + 0xc]
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     rbx = 0x0000000000000000   rbp = 0x0000000000000000
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     rsp = 0x00007f9970f92ec0   r12 = 0x00007f9970f92f80
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9977df4a50
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     r15 = 0x00007ffccb732b50   rip = 0x00007f998efe96db
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO - 21  libc.so.6!__GI___clone + 0x3e
[task 2022-02-11T22:54:15.119Z] 22:54:15     INFO -     rbx = 0x00007f9970f93700   rbp = 0x0000000000000000
[task 2022-02-11T22:54:15.120Z] 22:54:15     INFO -     rsp = 0x00007f9970f92f80   r12 = 0x00007f9970f92f80
[task 2022-02-11T22:54:15.120Z] 22:54:15     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9977df4a50
[task 2022-02-11T22:54:15.120Z] 22:54:15     INFO -     r15 = 0x00007ffccb732b50   rip = 0x00007f998e1cfa3f
[task 2022-02-11T22:54:15.120Z] 22:54:15     INFO -     Found by: call frame info
[task 2022-02-11T22:54:15.120Z] 22:54:15     INFO - 
Flags: needinfo?(gsvelto)
Regressions: 1755254

Alright, after much more testing I spotted another issue which should have been obvious: the service can be instanced but not initialized, thus during shutdown we don't need to shutdown the midir machinery because it was never initialized in the first place.

Flags: needinfo?(gsvelto)
Attachment #9263462 - Attachment description: Bug 1748643 - Do not process MIDI runnables after shutdown r=padenot → Bug 1748643 - Handle the Web MIDI service shutdown correctly r=padenot
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0a212cbc596 Handle the Web MIDI service shutdown correctly r=padenot
Status: ASSIGNED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
No longer regressions: 1755254
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: