Open Bug 1775214 Opened 2 years ago Updated 3 days ago

Intermittent SUMMARY: ThreadSanitizer: use of an invalid mutex (e.g. uninitialized or destroyed) /builds/worker/checkouts/gecko/netwerk/sctp/src/netinet/sctp_pcb.c:3857:2 in sctp_inpcb_free

Categories

(Core :: WebRTC: Networking, defect, P5)

defect

Tracking

()

REOPENED

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: nfay [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=382003734&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/f7on2TkvTsiE8TTFVlTtTw/runs/0/artifacts/public/logs/live_backing.log


[task 2022-06-21T06:56:17.341Z] 06:56:17     INFO - PID 11877 | [Child 12137: Main Thread]: D/DataChannel 7b2c000641e0(7b3400021360): DoOnMessageAvailable - Dispatching
[task 2022-06-21T06:56:17.341Z] 06:56:17     INFO - PID 11877 | [Child 12137: Socket Thread]: D/DataChannel HandleOpenRequestMessage: deferring sending ON_CHANNEL_OPEN for 7b340006d6f0
[task 2022-06-21T06:56:17.342Z] 06:56:17     INFO - PID 11877 | [Child 12137: Socket Thread]: D/DataChannel Sent buffer (written=1, len=1, left=0)
[task 2022-06-21T06:56:17.342Z] 06:56:17     INFO - PID 11877 | ==================
[task 2022-06-21T06:56:17.343Z] 06:56:17     INFO - PID 11877 | WARNING: ThreadSanitizer: use of an invalid mutex (e.g. uninitialized or destroyed) (pid=12137)
[task 2022-06-21T06:56:17.344Z] 06:56:17     INFO - PID 11877 |     #0 pthread_mutex_lock /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/../../sanitizer_common/sanitizer_common_interceptors.inc:4324:3 (firefox+0x7bb6a) (BuildId: 08a5f53a57a965919b776ae51fc22c2a5b42a435)
[task 2022-06-21T06:56:17.344Z] 06:56:17     INFO - PID 11877 |     #1 sctp_inpcb_free /builds/worker/checkouts/gecko/netwerk/sctp/src/netinet/sctp_pcb.c:3857:2 (libxul.so+0x1cf3d70) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.345Z] 06:56:17     INFO - PID 11877 |     #2 sctp_close /builds/worker/checkouts/gecko/netwerk/sctp/src/netinet/sctp_usrreq.c (libxul.so+0x1d080d8) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.345Z] 06:56:17     INFO - PID 11877 |     #3 sofree /builds/worker/checkouts/gecko/netwerk/sctp/src/user_socket.c:287:2 (libxul.so+0x1d2afee) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.346Z] 06:56:17     INFO - PID 11877 |     #4 usrsctp_close /builds/worker/checkouts/gecko/netwerk/sctp/src/user_socket.c:2020:3 (libxul.so+0x1d2e78e) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.347Z] 06:56:17     INFO - PID 11877 |     #5 mozilla::DataChannelConnection::DestroyOnSTS(socket*, socket*) /builds/worker/checkouts/gecko/netwerk/sctp/datachannel/DataChannel.cpp:400:22 (libxul.so+0x1d33bda) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.347Z] 06:56:17     INFO - PID 11877 |     #6 __invoke_impl<void, void (mozilla::DataChannelConnection::*const &)(socket *, socket *), RefPtr<mozilla::DataChannelConnection> &, socket *, socket *> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/invoke.h:73:14 (libxul.so+0x1d4844f) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.348Z] 06:56:17     INFO - PID 11877 |     #7 __invoke<void (mozilla::DataChannelConnection::*const &)(socket *, socket *), RefPtr<mozilla::DataChannelConnection> &, socket *, socket *> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/invoke.h:95:14 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.349Z] 06:56:17     INFO - PID 11877 |     #8 operator()<RefPtr<mozilla::DataChannelConnection> &, socket *, socket *> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/functional:175:11 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.349Z] 06:56:17     INFO - PID 11877 |     #9 __invoke_impl<void, std::_Mem_fn<void (mozilla::DataChannelConnection::*)(socket *, socket *)>, RefPtr<mozilla::DataChannelConnection> &, socket *, socket *> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/invoke.h:60:14 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.350Z] 06:56:17     INFO - PID 11877 |     #10 __invoke<std::_Mem_fn<void (mozilla::DataChannelConnection::*)(socket *, socket *)>, RefPtr<mozilla::DataChannelConnection> &, socket *, socket *> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/invoke.h:95:14 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.351Z] 06:56:17     INFO - PID 11877 |     #11 __apply_impl<std::_Mem_fn<void (mozilla::DataChannelConnection::*)(socket *, socket *)>, std::tuple<RefPtr<mozilla::DataChannelConnection> &, socket *, socket *>, 0UL, 1UL, 2UL> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/tuple:1662:14 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.352Z] 06:56:17     INFO - PID 11877 |     #12 apply<std::_Mem_fn<void (mozilla::DataChannelConnection::*)(socket *, socket *)>, std::tuple<RefPtr<mozilla::DataChannelConnection> &, socket *, socket *> > /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/tuple:1671:14 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.352Z] 06:56:17     INFO - PID 11877 |     #13 mozilla::runnable_args_memfn<RefPtr<mozilla::DataChannelConnection>, void (mozilla::DataChannelConnection::*)(socket*, socket*), socket*, socket*>::RunInternal() /builds/worker/checkouts/gecko/dom/media/webrtc/transport/runnable_utils.h:121:5 (libxul.so+0x1d4844f)
[task 2022-06-21T06:56:17.353Z] 06:56:17     INFO - PID 11877 |     #14 mozilla::detail::runnable_args_base<(mozilla::detail::RunnableResult)0>::Run() /builds/worker/checkouts/gecko/dom/media/webrtc/transport/runnable_utils.h:41:5 (libxul.so+0x1d4810e) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.353Z] 06:56:17     INFO - PID 11877 |     #15 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1199:16 (libxul.so+0x11e4758) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.354Z] 06:56:17     INFO - PID 11877 |     #16 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:465:10 (libxul.so+0x11eac25) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.355Z] 06:56:17     INFO - PID 11877 |     #17 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x1e4699e) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.355Z] 06:56:17     INFO - PID 11877 |     #18 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:380:10 (libxul.so+0x1d6570c) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.356Z] 06:56:17     INFO - PID 11877 |     #19 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:373:3 (libxul.so+0x1d6570c)
[task 2022-06-21T06:56:17.356Z] 06:56:17     INFO - PID 11877 |     #20 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:355:3 (libxul.so+0x1d6570c)
[task 2022-06-21T06:56:17.357Z] 06:56:17     INFO - PID 11877 |     #21 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:384:10 (libxul.so+0x11dfb16) (BuildId: 8f75f3c940357ab7ec0ed9d81df74bc01abd85cf)
[task 2022-06-21T06:56:17.357Z] 06:56:17     INFO - PID 11877 |     #22 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4615d) (BuildId: fb895833819c7e18063b759e51039980dd7a34c1)
[task 2022-06-21T06:56:17.358Z] 06:56:17     INFO - PID 11877 |   Location is global 'sctp_it_ctl' of size 168 at 0x7f3f671a1b38 (libxul.so+0xdfd7b60)
[task 2022-06-21T06:56:17.358Z] 06:56:17     INFO - PID 11877 |   Mutex M0 (0x7f3f671a1b60) created at:
[task 2022-06-21T06:56:17.359Z] 06:56:17     INFO - PID 11877 |     [failed to restore the stack]
[task 2022-06-21T06:56:17.360Z] 06:56:17     INFO - PID 11877 | SUMMARY: ThreadSanitizer: use of an invalid mutex (e.g. uninitialized or destroyed) /builds/worker/checkouts/gecko/netwerk/sctp/src/netinet/sctp_pcb.c:3857:2 in sctp_inpcb_free
[task 2022-06-21T06:56:17.360Z] 06:56:17     INFO - PID 11877 | ==================
[task 2022-06-21T06:56:17.360Z] 06:56:17     INFO - PID 11877 | A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down
[task 2022-06-21T06:56:17.786Z] 06:56:17     INFO - PID 11877 | 1655794577781	Marionette	INFO	Stopped listening on port 57112
[task 2022-06-21T06:56:18.024Z] 06:56:18     INFO - Browser not responding, setting status to CRASH
[task 2022-06-21T06:56:18.035Z] 06:56:18     INFO - TEST-UNEXPECTED-CRASH | /webrtc/RTCDataChannel-send.html | expected OK
[task 2022-06-21T06:56:18.035Z] 06:56:18     INFO - TEST-INFO took 3518ms
[task 2022-06-21T06:56:18.047Z] 06:56:18     INFO - PID 11877 | JavaScript error: chrome://remote/content/marionette/cert.js, line 57: NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICertOverrideService.setDisableAllSecurityChecksAndLetAttackersInterceptMyData]
[task 2022-06-21T06:56:18.113Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400163500 - BlockShutdown: CanSend.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:3607
[task 2022-06-21T06:56:18.115Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400163500 - ShutDownProcess: Sent shutdown message.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1808
[task 2022-06-21T06:56:18.118Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400069500 - BlockShutdown: CanSend.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:3607
[task 2022-06-21T06:56:18.119Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400069500 - ShutDownProcess: Sent shutdown message.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1808
[task 2022-06-21T06:56:18.120Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b640013b000 - BlockShutdown: CanSend.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:3607
[task 2022-06-21T06:56:18.121Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b640013b000 - ShutDownProcess: Sent shutdown message.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1808
[task 2022-06-21T06:56:18.147Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400163500 - ShutDownProcess: Closing channel.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1843
[task 2022-06-21T06:56:18.148Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400163500 - RemoveShutdownBlockers: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:3709
[task 2022-06-21T06:56:18.150Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400069500 - ShutDownProcess: Closing channel.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1843
[task 2022-06-21T06:56:18.151Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b6400069500 - RemoveShutdownBlockers: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:3709
[task 2022-06-21T06:56:18.154Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b640013b000 - ShutDownProcess: Closing channel.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1843
[task 2022-06-21T06:56:18.154Z] 06:56:18     INFO - PID 11877 | [Parent 11877, Main Thread] WARNING: ContentParent: id=7b640013b000 - RemoveShutdownBlockers: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:3709
[task 2022-06-21T06:56:21.372Z] 06:56:21     INFO - Browser exited with return code 245
[task 2022-06-21T06:56:21.375Z] 06:56:21     INFO - Closing logging queue
[task 2022-06-21T06:56:21.375Z] 06:56:21     INFO - queue closed
[task 2022-06-21T06:56:21.386Z] 06:56:21     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2022-06-21T06:56:21.387Z] 06:56:21     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox --marionette about:blank -profile /tmp/tmpc4p6zfrl
[task 2022-06-21T06:56:21.403Z] 06:56:21     INFO - PID 12142 | 1655794478099	Marionette	INFO	Marionette enabled
[task 2022-06-21T06:56:21.403Z] 06:56:21     INFO - PID 12142 | 1655794478126	Marionette	INFO	Listening on port 58394
[task 2022-06-21T06:56:21.404Z] 06:56:21     INFO - PID 12142 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/tmp5rqc2ngf/search.json.mozlz4", (void 0)))
[task 2022-06-21T06:56:21.405Z] 06:56:21     INFO - Starting runner
[task 2022-06-21T06:56:23.220Z] 06:56:23     INFO - TEST-START | /webrtc/RTCDataChannelEvent-constructor.html
See Also: → 1776143
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Component: Networking → WebRTC: Networking
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago11 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 11 months ago9 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 9 months ago7 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 7 months ago6 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 6 months ago2 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 months ago3 days ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
You need to log in before you can comment on or make changes to this bug.