Bug: Intermittent [tier 2] SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:1236:7 in mozilla::net::nsSocketTransport::InitiateSocket()
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-09-10 23:02:16+00:00
Resolved: 2021-10-05 17:03:03+00:00

**Filed by:** imoraru [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=351192940&repo=mozilla-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/cpoxHHG2R2-JfDFzByxBIQ/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2021-09-10T21:52:35.122Z] 21:52:35     INFO - TEST-START | browser/components/doh/test/browser/browser_trrSelect.js
[task 2021-09-10T21:52:45.374Z] 21:52:45     INFO - GECKO(9293) | FATAL ERROR: Non-local network connections are disabled and a connection attempt to mozilla.cloudflare-dns.com (104.16.249.249) was made.
[task 2021-09-10T21:52:45.375Z] 21:52:45     INFO - GECKO(9293) | You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.
[task 2021-09-10T21:52:45.376Z] 21:52:45     INFO - GECKO(9293) | AddressSanitizer:DEADLYSIGNAL
[task 2021-09-10T21:52:45.377Z] 21:52:45     INFO - GECKO(9293) | =================================================================
[task 2021-09-10T21:52:45.378Z] 21:52:45    ERROR - GECKO(9293) | ==9293==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000001 (pc 0x7f2598d14eb4 bp 0x7f258ce32d30 sp 0x7f258ce32560 T6)
[task 2021-09-10T21:52:45.378Z] 21:52:45     INFO - GECKO(9293) | ==9293==The signal is caused by a WRITE memory access.
[task 2021-09-10T21:52:45.378Z] 21:52:45     INFO - GECKO(9293) | ==9293==Hint: address points to the zero page.
[task 2021-09-10T21:52:45.429Z] 21:52:45     INFO - GECKO(9293) | MEMORY STAT | vsize 20975173MB | residentFast 1147MB
[task 2021-09-10T21:52:45.431Z] 21:52:45     INFO - TEST-OK | browser/components/doh/test/browser/browser_trrSelect.js | took 10308ms
[task 2021-09-10T21:52:45.539Z] 21:52:45     INFO - checking window state
[task 2021-09-10T21:52:45.573Z] 21:52:45     INFO - TEST-START | browser/components/doh/test/browser/browser_trrSelection_disable.js
[task 2021-09-10T21:52:46.087Z] 21:52:46     INFO - GECKO(9293) |     #0 0x7f2598d14eb4 in mozilla::net::nsSocketTransport::InitiateSocket() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:1236:7
[task 2021-09-10T21:52:46.088Z] 21:52:46     INFO - GECKO(9293) |     #1 0x7f2598d1a0f9 in mozilla::net::nsSocketTransport::OnSocketEvent(unsigned int, nsresult, nsISupports*) /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:1987:22
[task 2021-09-10T21:52:46.090Z] 21:52:46     INFO - GECKO(9293) |     #2 0x7f2598d60c7a in mozilla::net::nsSocketEvent::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:94:17
[task 2021-09-10T21:52:46.114Z] 21:52:46     INFO - GECKO(9293) |     #3 0x7f25989be7ab in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1142:16
[task 2021-09-10T21:52:46.115Z] 21:52:46     INFO - GECKO(9293) |     #4 0x7f25989c8ecc in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:466:10
[task 2021-09-10T21:52:46.116Z] 21:52:46     INFO - GECKO(9293) |     #5 0x7f2598d2ad41 in mozilla::net::nsSocketTransportService::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1190:11
[task 2021-09-10T21:52:46.117Z] 21:52:46     INFO - GECKO(9293) |     #6 0x7f2598d2c9cc in non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp
[task 2021-09-10T21:52:46.118Z] 21:52:46     INFO - GECKO(9293) |     #7 0x7f25989be7ab in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1142:16
[task 2021-09-10T21:52:46.118Z] 21:52:46     INFO - GECKO(9293) |     #8 0x7f25989c8ecc in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:466:10
[task 2021-09-10T21:52:46.136Z] 21:52:46     INFO - GECKO(9293) |     #9 0x7f2599aea538 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:300:20
[task 2021-09-10T21:52:46.147Z] 21:52:46     INFO - GECKO(9293) |     #10 0x7f25999f6e21 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:331:10
[task 2021-09-10T21:52:46.148Z] 21:52:46     INFO - GECKO(9293) |     #11 0x7f25999f6e21 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:324:3
[task 2021-09-10T21:52:46.149Z] 21:52:46     INFO - GECKO(9293) |     #12 0x7f25999f6e21 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:306:3
[task 2021-09-10T21:52:46.149Z] 21:52:46     INFO - GECKO(9293) |     #13 0x7f25989b8262 in nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:390:10
[task 2021-09-10T21:52:46.154Z] 21:52:46     INFO - GECKO(9293) |     #14 0x7f25b9ad770e in _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5
[task 2021-09-10T21:52:46.173Z] 21:52:46     INFO - GECKO(9293) |     #15 0x7f25bd8f26da in start_thread /tmp/glibc/nptl/pthread_create.c:463
[task 2021-09-10T21:52:46.244Z] 21:52:46     INFO - GECKO(9293) |     #16 0x7f25bc8d0a3e in clone /tmp/glibc/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
[task 2021-09-10T21:52:46.244Z] 21:52:46     INFO - GECKO(9293) | AddressSanitizer can not provide additional info.
[task 2021-09-10T21:52:46.244Z] 21:52:46     INFO - GECKO(9293) | SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:1236:7 in mozilla::net::nsSocketTransport::InitiateSocket()
[task 2021-09-10T21:52:46.246Z] 21:52:46     INFO - GECKO(9293) | Thread T6 (Socket Thread) created by T0 (GeckoMain) here:
[task 2021-09-10T21:52:46.260Z] 21:52:46     INFO - GECKO(9293) |     #0 0x55ff350fabbc in pthread_create /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cpp:205:3
[task 2021-09-10T21:52:46.260Z] 21:52:46     INFO - GECKO(9293) |     #1 0x7f25b9ac7784 in _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14
[task 2021-09-10T21:52:46.260Z] 21:52:46     INFO - GECKO(9293) |     #2 0x7f25b9ab8c5e in PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12
[task 2021-09-10T21:52:46.260Z] 21:52:46     INFO - GECKO(9293) |     #3 0x7f25989bac2a in nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:602:18
[task 2021-09-10T21:52:46.262Z] 21:52:46     INFO - GECKO(9293) |     #4 0x7f25989c68ef in nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:574:12
[task 2021-09-10T21:52:46.263Z] 21:52:46     INFO - GECKO(9293) |     #5 0x7f25989d1b61 in NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:162:57
[task 2021-09-10T21:52:46.264Z] 21:52:46     INFO - GECKO(9293) |     #6 0x7f2598d286e9 in NS_NewNamedThread<14> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:85:10
[task 2021-09-10T21:52:46.266Z] 21:52:46     INFO - GECKO(9293) |     #7 0x7f2598d286e9 in mozilla::net::nsSocketTransportService::Init() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:760:7
[task 2021-09-10T21:52:46.273Z] 21:52:46     INFO - GECKO(9293) |     #8 0x7f259893b47f in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:9134:7
[task 2021-09-10T21:52:46.278Z] 21:52:46     INFO - GECKO(9293) |     #9 0x7f2598971b87 in CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:177:46
[task 2021-09-10T21:52:46.280Z] 21:52:46     INFO - GECKO(9293) |     #10 0x7f2598971b87 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1276:17
[task 2021-09-10T21:52:46.285Z] 21:52:46     INFO - GECKO(9293) |     #11 0x7f25989738d4 in nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1465:10
[task 2021-09-10T21:52:46.286Z] 21:52:46     INFO - GECKO(9293) |     #12 0x7f2598978b22 in CallGetService /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:61:43
[task 2021-09-10T21:52:46.287Z] 21:52:46     INFO - GECKO(9293) |     #13 0x7f2598978b22 in nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:253:21
[task 2021-09-10T21:52:46.290Z] 21:52:46     INFO - GECKO(9293) |     #14 0x7f25987f0b4d in nsCOMPtr_base::assign_from_gs_contractid_with_error(nsGetServiceByContractIDWithError const&, nsID const&) /builds/worker/checkouts/gecko/xpcom/base/nsCOMPtr.cpp:91:7
[task 2021-09-10T21:52:46.309Z] 21:52:46     INFO - GECKO(9293) |     #15 0x7f2598c8390b in operator= /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:774:5
[task 2021-09-10T21:52:46.310Z] 21:52:46     INFO - GECKO(9293) |     #16 0x7f2598c8390b in mozilla::net::nsIOService::InitializeSocketTransportService() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:419:29
[task 2021-09-10T21:52:46.311Z] 21:52:46     INFO - GECKO(9293) |     #17 0x7f2598c82670 in mozilla::net::nsIOService::SetOffline(bool) /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:1270:7
[task 2021-09-10T21:52:46.313Z] 21:52:46     INFO - GECKO(9293) |     #18 0x7f2598c80867 in mozilla::net::nsIOService::Init() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:303:3
[task 2021-09-10T21:52:46.315Z] 21:52:46     INFO - GECKO(9293) |     #19 0x7f2598c8459b in mozilla::net::nsIOService::GetInstance() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:476:9
[task 2021-09-10T21:52:46.316Z] 21:52:46     INFO - GECKO(9293) |     #20 0x7f259892479f in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:9538:48
[task 2021-09-10T21:52:46.317Z] 21:52:46     INFO - GECKO(9293) |     #21 0x7f2598971b87 in CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:177:46
[task 2021-09-10T21:52:46.317Z] 21:52:46     INFO - GECKO(9293) |     #22 0x7f2598971b87 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1276:17
[task 2021-09-10T21:52:46.318Z] 21:52:46     INFO - GECKO(9293) |     #23 0x7f25989738d4 in nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1465:10
[task 2021-09-10T21:52:46.325Z] 21:52:46     INFO - GECKO(9293) |     #24 0x7f259a739a17 in CallGetService<nsIIOService> /builds/worker/workspace/obj-build/dist/include/nsServiceManagerUtils.h:52:10
[task 2021-09-10T21:52:46.326Z] 21:52:46     INFO - GECKO(9293) |     #25 0x7f259a739a17 in nsScriptSecurityManager::Init() /builds/worker/checkouts/gecko/caps/nsScriptSecurityManager.cpp:1474:17
[task 2021-09-10T21:52:46.327Z] 21:52:46     INFO - GECKO(9293) |     #26 0x7f259a739f19 in nsScriptSecurityManager::InitStatics() /builds/worker/checkouts/gecko/caps/nsScriptSecurityManager.cpp:1535:28
[task 2021-09-10T21:52:46.338Z] 21:52:46     INFO - GECKO(9293) |     #27 0x7f259a4f7bd0 in nsXPConnect::InitStatics() /builds/worker/checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:154:3
[task 2021-09-10T21:52:46.362Z] 21:52:46     INFO - GECKO(9293) |     #28 0x7f259a48f908 in xpcModuleCtor() /builds/worker/checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3
[task 2021-09-10T21:52:46.365Z] 21:52:46     INFO - GECKO(9293) |     #29 0x7f25a074b3bc in nsLayoutModuleInitialize() /builds/worker/checkouts/gecko/layout/build/nsLayoutModule.cpp:100:7
[task 2021-09-10T21:52:46.367Z] 21:52:46     INFO - GECKO(9293) |     #30 0x7f2598969996 in nsComponentManagerImpl::Init() /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:408:5
[task 2021-09-10T21:52:46.371Z] 21:52:46     INFO - GECKO(9293) |     #31 0x7f2598a2d8d7 in NS_InitXPCOM /builds/worker/checkouts/gecko/xpcom/build/XPCOMInit.cpp:446:51
[task 2021-09-10T21:52:46.378Z] 21:52:46     INFO - GECKO(9293) |     #32 0x7f25a37de4a6 in ScopedXPCOMStartup::Initialize(bool) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:1717:8
[task 2021-09-10T21:52:46.379Z] 21:52:46     INFO - GECKO(9293) |     #33 0x7f25a37f451e in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5472:22
[task 2021-09-10T21:52:46.380Z] 21:52:46     INFO - GECKO(9293) |     #34 0x7f25a37f52a3 in XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5535:21
[task 2021-09-10T21:52:46.381Z] 21:52:46     INFO - GECKO(9293) |     #35 0x55ff35144a8f in do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:225:22
[task 2021-09-10T21:52:46.382Z] 21:52:46     INFO - GECKO(9293) |     #36 0x55ff35144a8f in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:386:16
[task 2021-09-10T21:52:46.384Z] 21:52:46     INFO - GECKO(9293) |     #37 0x7f25bc7d0b96 in __libc_start_main /tmp/glibc/csu/../csu/libc-start.c:310
[task 2021-09-10T21:52:46.385Z] 21:52:46     INFO - GECKO(9293) | ==9293==ABORTING
```