Closed Bug 1533261 Opened 6 years ago Closed 6 years ago

Intermittent PID 9884 | Assertion failure: gInstance, at z:/build/build/src/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp:159

Categories

(Core :: WebRTC: Signaling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox-esr60 --- unaffected
firefox65 --- unaffected
firefox66 + fixed
firefox67 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: bwc)

Details

(Keywords: assertion, intermittent-failure, regression)

Attachments

(1 file)

#[markdown(off)]
Filed by: aciure [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=232351795&repo=autoland

https://queue.taskcluster.net/v1/task/FCmvcL65Q6udzPv7E53RpQ/runs/0/artifacts/public/logs/live_backing.log

05:42:15 INFO - PID 9884 | [Parent 2800, Main Thread] WARNING: NS_ENSURE_TRUE(aCsp) failed: file z:/build/build/src/dom/base/nsOpenURIInFrameParams.cpp, line 84
05:42:15 INFO - PID 9884 | [Child 9512: Socket Thread]: I/mtransport Flow[transport_0(none)]; Layer[dtls]: Handshake would have blocked
05:42:15 INFO - PID 9884 | [Child 9512: Socket Thread]: I/mtransport Flow[transport_0(none)]; Layer[dtls]: Handshake would have blocked
05:42:15 INFO - PID 9884 | ++DOCSHELL 000001994A84C000 == 1 [pid = 7676] [id = {7fc0ae4b-9bf2-4912-b1a8-5bef9767ffec}]
05:42:15 INFO - PID 9884 | [Child 9512: Socket Thread]: I/mtransport Flow[transport_0(none)]; Layer[dtls]: ****** SSL handshake completed ******
05:42:15 INFO - PID 9884 | [Child 9512: Socket Thread]: I/mtransport Flow[transport_0(none)]; Layer[dtls]: Selected ALPN string: webrtc
05:42:15 INFO - PID 9884 | ++DOMWINDOW == 1 (00000199505EB020) [pid = 7676] [serial = 1] [outer = 0000000000000000]
05:42:15 INFO - PID 9884 | [Child 9512: Socket Thread]: D/mtransport Created SRTP flow!
05:42:15 INFO - PID 9884 | Assertion failure: gInstance, at z:/build/build/src/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp:159
05:42:15 INFO - PID 9884 | (ice/INFO) ICE-PEER(PC:1551937335608000 (id=17179869188 url=https://web-platform.test:8443/webrtc/RTCDTMFSender-insertDTMF.https.html):default): no FROZEN/WAITING pairs for PC:1551937335608000 (id=17179869188 url=https://web-platform.test:8443/webrtc/RTCDTMFSender-insertDTMF.https.html) transport-id=transport_0 - eec2c962:41abe7b18433abd1d94234bb2e036581
05:42:15 INFO - PID 9884 | [Parent 2800, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
05:42:15 INFO - PID 9884 | ++DOMWINDOW == 2 (0000019950566000) [pid = 7676] [serial = 2] [outer = 00000199505EB020]
05:42:35 INFO - PID 9884 | #01: nsresult mozilla::runnable_args_func<void (*)(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &),std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::Run() [media/mtransport/runnable_utils.h:95]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #02: nsThread::ProcessNextEvent(bool,bool *) [xpcom/threads/nsThread.cpp:1166]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #03: nsThread::Shutdown() [xpcom/threads/nsThread.cpp:880]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #04: nsresult mozilla::detail::RunnableFunction<`lambda at z:/build/build/src/dom/workers/remoteworkers/RemoteWorkerService.cpp:144:54'>::Run() [xpcom/threads/nsThreadUtils.h:562]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #05: mozilla::SchedulerGroup::Runnable::Run() [xpcom/threads/SchedulerGroup.cpp:295]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #06: nsThread::ProcessNextEvent(bool,bool *) [xpcom/threads/nsThread.cpp:1166]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #07: nsThread::Shutdown() [xpcom/threads/nsThread.cpp:880]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #08: nsThreadPool::Shutdown() [xpcom/threads/nsThreadPool.cpp:349]
05:42:35 INFO -
05:42:35 INFO - PID 9884 | #09: nsresult mozilla::detail::RunnableMethodImpl<nsCOMPtr<nsIThreadPool>,nsresult (nsIThreadPool::*)(),1,mozilla::RunnableKind::Standard>::Run() [xpcom/threads/nsThreadUtils.h:1177]

Looking at the stack, it seems that we must be running a Runnable created by WrapRunnableNM, that takes two std::string params. I see only one such call:

https://searchfox.org/mozilla-central/rev/fbb251448feb7276f9b1d0a88f9c0cb1cd144ce4/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp#690

This does end up calling PeerConnectionCtx::GetInstance, via the PeerConnectionWrapper c'tor. It seems reasonable that PeerConnectionWrapper should check PeerConnectionCtx::IsActive before calling GetInstance.

Rank: 18
Priority: P5 → P2
Assignee: nobody → docfaraday
Pushed by bcampen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2ccf4b1b18ad Check whether PeerConnectionCtx is active before calling GetInstance. r=mjf
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67

Comment on attachment 9049229 [details]
Bug 1533261: Check whether PeerConnectionCtx is active before calling GetInstance. r?mjf

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: None
  • User impact if declined: Relatively uncommon intermittent failures in mozilla-beta wpt. Maybe caused by wpt changes from upstream, but hard to tell.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very low risk, just adds a check that avoids null-pointer use.
  • String changes made/needed: None
Attachment #9049229 - Flags: approval-mozilla-beta?

Comment on attachment 9049229 [details]
Bug 1533261: Check whether PeerConnectionCtx is active before calling GetInstance. r?mjf

Adds a null check, OK for uplift for the 66 RC.

Attachment #9049229 - Flags: approval-mozilla-release+
Attachment #9049229 - Flags: approval-mozilla-beta?
Attachment #9049229 - Flags: approval-mozilla-beta-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: