Closed Bug 1635619 Opened 4 years ago Closed 2 years ago

Intermittent TEST-UNEXPECTED-TIMEOUT | tools/profiler/tests/xpcshell/test_feature_mainthreadio.js | Test timed out

Categories

(Core :: Gecko Profiler, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [retriggered])

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


[task 2020-05-05T23:23:43.314Z] 23:23:43     INFO -  TEST-START | toolkit/components/downloads/test/unit/test_DownloadList.js
[task 2020-05-05T23:23:50.164Z] 23:23:50     INFO -  TEST-PASS | toolkit/components/downloads/test/unit/test_DownloadList.js | took 6849ms
[task 2020-05-05T23:23:50.172Z] 23:23:50     INFO -  TEST-START | toolkit/components/places/tests/unit/test_bookmarks_json_corrupt.js
[task 2020-05-05T23:23:54.816Z] 23:23:54     INFO -  TEST-PASS | toolkit/components/places/tests/unit/test_bookmarks_json_corrupt.js | took 4645ms
[task 2020-05-05T23:23:54.824Z] 23:23:54     INFO -  TEST-START | tools/profiler/tests/xpcshell/test_feature_mainthreadio.js
[task 2020-05-05T23:28:54.821Z] 23:28:54  WARNING -  TEST-UNEXPECTED-TIMEOUT | tools/profiler/tests/xpcshell/test_feature_mainthreadio.js | Test timed out
[task 2020-05-05T23:28:54.822Z] 23:28:54     INFO -  TEST-INFO took 300000ms
[task 2020-05-05T23:28:54.822Z] 23:28:54     INFO -  >>>>>>>
[task 2020-05-05T23:28:54.823Z] 23:28:54     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2020-05-05T23:28:54.823Z] 23:28:54     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2020-05-05T23:28:54.823Z] 23:28:54     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2020-05-05T23:28:54.823Z] 23:28:54     INFO -  running event loop
[task 2020-05-05T23:28:54.824Z] 23:28:54     INFO -  "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties"
[task 2020-05-05T23:28:54.824Z] 23:28:54     INFO -  tools/profiler/tests/xpcshell/test_feature_mainthreadio.js | Starting
[task 2020-05-05T23:28:54.824Z] 23:28:54     INFO -  (xpcshell/head.js) | test pending (2)
[task 2020-05-05T23:28:54.825Z] 23:28:54     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2020-05-05T23:28:54.825Z] 23:28:54     INFO -  <<<<<<<
[task 2020-05-05T23:28:54.833Z] 23:28:54     INFO -  xpcshell return code: None
[task 2020-05-05T23:28:54.833Z] 23:28:54     INFO -  tools/profiler/tests/xpcshell/test_feature_mainthreadio.js | Process still running after test!
[task 2020-05-05T23:28:54.889Z] 23:28:54     INFO -  INFO | Result summary:
[task 2020-05-05T23:28:54.891Z] 23:28:54     INFO -  INFO | Passed: 533
[task 2020-05-05T23:28:54.892Z] 23:28:54  WARNING -  INFO | Failed: 1
[task 2020-05-05T23:28:54.892Z] 23:28:54  WARNING -  One or more unittests failed.
[task 2020-05-05T23:28:54.893Z] 23:28:54     INFO -  INFO | Todo: 0
[task 2020-05-05T23:28:54.893Z] 23:28:54     INFO -  INFO | Retried: 3
[task 2020-05-05T23:28:54.894Z] 23:28:54     INFO -  SUITE-END | took 4602s
[task 2020-05-05T23:28:54.895Z] 23:28:54     INFO -  Node moz-http2 server shutting down ...
[task 2020-05-05T23:28:54.945Z] 23:28:54    ERROR - Return code: 1
[task 2020-05-05T23:28:54.946Z] 23:28:54     INFO - TinderboxPrint: xpcshell-xpcshell<br/>533/<em class="testfail">1</em>/0
[task 2020-05-05T23:28:54.946Z] 23:28:54  WARNING - # TBPL FAILURE #
[task 2020-05-05T23:28:54.947Z] 23:28:54  WARNING - setting return code to 2
[task 2020-05-05T23:28:54.947Z] 23:28:54  WARNING - The xpcshell suite: xpcshell ran with return status: FAILURE
[task 2020-05-05T23:28:54.947Z] 23:28:54     INFO - Running post-action listener: _package_coverage_data
[task 2020-05-05T23:28:54.948Z] 23:28:54     INFO - Running post-action listener: _resource_record_post_action
[task 2020-05-05T23:28:54.949Z] 23:28:54     INFO - Running post-action listener: process_java_coverage_data
[task 2020-05-05T23:28:54.949Z] 23:28:54     INFO - [mozharness: 2020-05-05 23:28:54.949129Z] Finished run-tests step (success)
[task 2020-05-05T23:28:54.949Z] 23:28:54     INFO - Running post-run listener: _resource_record_post_run
[task 2020-05-05T23:28:55.226Z] 23:28:55     INFO - Validating Perfherder data against /builds/worker/workspace/mozharness/external_tools/performance-artifact-schema.json
[task 2020-05-05T23:28:55.230Z] 23:28:55     INFO - PERFHERDER_DATA: {"framework": {"name": "job_resource_usage"}, "suites": [{"subtests": [{"name": "cpu_percent", "value": 87.17697041675652}, {"name": "io_write_bytes", "value": 12389855232}, {"name": "io.read_bytes", "value": 897470464}, {"name": "io_write_time", "value": 649596}, {"name": "io_read_time", "value": 17184}], "extraOptions": ["e10s", "taskcluster-m5.large"], "name": "xpcshell.xpcshell.overall"}, {"subtests": [{"name": "time", "value": 0.030916213989257812}], "name": "xpcshell.xpcshell.start-pulseaudio"}, {"subtests": [{"name": "time", "value": 30.929887771606445}, {"name": "cpu_percent", "value": 50.38103448275862}], "name": "xpcshell.xpcshell.install"}, {"subtests": [{"name": "time", "value": 0.011712074279785156}], "name": "xpcshell.xpcshell.stage-files"}, {"subtests": [{"name": "time", "value": 4604.784519195557}, {"name": "cpu_percent", "value": 87.42396739130425}], "name": "xpcshell.xpcshell.run-tests"}]}
[task 2020-05-05T23:28:55.231Z] 23:28:55     INFO - Total resource usage - Wall time: 4636s; CPU: 87.0%; Read bytes: 897470464; Write bytes: 12389855232; Read time: 17184; Write time: 649596
[task 2020-05-05T23:28:55.232Z] 23:28:55     INFO - TinderboxPrint: CPU usage<br/>87.4%
[task 2020-05-05T23:28:55.233Z] 23:28:55     INFO - TinderboxPrint: I/O read bytes / time<br/>897,470,464 / 17,184
[task 2020-05-05T23:28:55.233Z] 23:28:55     INFO - TinderboxPrint: I/O write bytes / time<br/>12,389,855,232 / 649,596
[task 2020-05-05T23:28:55.234Z] 23:28:55     INFO - TinderboxPrint: CPU idle<br/>1,190.3 (12.8%)
[task 2020-05-05T23:28:55.235Z] 23:28:55     INFO - TinderboxPrint: CPU system<br/>1,088.3 (11.7%)
[task 2020-05-05T23:28:55.235Z] 23:28:55     INFO - TinderboxPrint: CPU user<br/>6,983.7 (75.3%)
[task 2020-05-05T23:28:55.236Z] 23:28:55     INFO - TinderboxPrint: Swap in / out<br/>0 / 0
[task 2020-05-05T23:28:55.237Z] 23:28:55     INFO - start-pulseaudio - Wall time: 0s; CPU: Can't collect data; Read bytes: 0; Write bytes: 0; Read time: 0; Write time: 0
[task 2020-05-05T23:28:55.239Z] 23:28:55     INFO - install - Wall time: 31s; CPU: 50.0%; Read bytes: 552960; Write bytes: 954773504; Read time: 4; Write time: 91052
Has Regression Range: --- → yes
Severity: normal → S3
Priority: P5 → P2
Flags: needinfo?(padenot)

I'll have a look...

Assignee: nobody → gsquelart

This fails locally in opt+debug TSAN:

pid:12945 ==================
 0:02.80 pid:12945 WARNING: ThreadSanitizer: data race (pid=12945)
 0:02.80 pid:12945   Write of size 4 at 0x7f6ecc0a67a4 by thread T3:
 0:02.80 pid:12945     #0 PR_Unlock /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptsynch.c:217:29 (libnspr4.so+0x3bff2)
 0:02.80 pid:12945     #1 _pt_root /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:199:5 (libnspr4.so+0x577a0)
 0:02.80 pid:12945   Previous write of size 4 at 0x7f6ecc0a67a4 by main thread:
 0:02.80 pid:12945     #0 PR_Unlock /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptsynch.c:217:29 (libnspr4.so+0x3bff2)
 0:02.80 pid:12945     #1 _PR_CreateThread /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:518:9 (libnspr4.so+0x4e085)
 0:02.80 pid:12945     #2 PR_CreateThread /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x42ed7)
 0:02.80 pid:12945     #3 nsThread::Init(nsTSubstring<char> const&) /home/padenot/src/trees/mozilla-unified/xpcom/threads/nsThread.cpp:659:8 (libxul.so+0x67fcfa0)
 0:02.80 pid:12945     #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /home/padenot/src/trees/mozilla-unified/xpcom/threads/nsThreadManager.cpp:619:12 (libxul.so+0x680737c)
 0:02.80 pid:12945     #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /home/padenot/src/trees/mozilla-unified/xpcom/threads/nsThreadUtils.cpp:157:57 (libxul.so+0x681027f)
 0:02.80 pid:12945     #6 nsresult NS_NewNamedThread<16ul>(char const (&) [16ul], nsIThread**, nsIRunnable*, unsigned int) /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsThreadUtils.h:82:10 (libxul.so+0x6a8700e)
 0:02.80 pid:12945     #7 mozilla::net::NetlinkService::Init(mozilla::net::NetlinkServiceListener*) /home/padenot/src/trees/mozilla-unified/netwerk/system/netlink/NetlinkService.cpp:1244:8 (libxul.so+0x72c6eb0)
 0:02.80 pid:12945     #8 nsNetworkLinkService::Init() /home/padenot/src/trees/mozilla-unified/netwerk/system/linux/nsNetworkLinkService.cpp:98:21 (libxul.so+0x72bea2a)
 0:02.80 pid:12945     #9 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:9482:7 (libxul.so+0x679729f)
 0:02.80 pid:12945     #10 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:11562:10 (libxul.so+0x6793cf2)
 0:02.80 pid:12945     #11 CreateInstance /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:219:46 (libxul.so+0x67be978)
 0:02.80 pid:12945     #12 nsComponentManagerImpl::GetServiceLocked((anonymous namespace)::MutexLock&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1372:17 (libxul.so+0x67be978)
 0:02.80 pid:12945     #13 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1559:10 (libxul.so+0x67b8044)
 0:02.80 pid:12945     #14 CallGetService /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0x67c3b7e)
 0:02.80 pid:12945     #15 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManagerUtils.cpp:253:21 (libxul.so+0x67c3b7e)
 0:02.81 pid:12945     #16 assign_from_gs_contractid_with_error /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsCOMPtr.h:1232:7 (libxul.so+0x69e3e74)
 0:02.81 pid:12945     #17 operator= /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsCOMPtr.h:762:5 (libxul.so+0x69e3e74)
 0:02.81 pid:12945     #18 mozilla::net::nsIOService::InitializeNetworkLinkService() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:385:23 (libxul.so+0x69e3e74)
 0:02.81 pid:12945     #19 mozilla::net::nsIOService::Init() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:293:3 (libxul.so+0x69e33e8)
 0:02.81 pid:12945     #20 mozilla::net::nsIOService::GetInstance() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:411:9 (libxul.so+0x69e51f0)
 0:02.81 pid:12945     #21 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:9532:48 (libxul.so+0x679a2f9)
 0:02.81 pid:12945     #22 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:11562:10 (libxul.so+0x6793cf2)
 0:02.81 pid:12945     #23 CreateInstance /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:219:46 (libxul.so+0x67be978)
 0:02.81 pid:12945     #24 nsComponentManagerImpl::GetServiceLocked((anonymous namespace)::MutexLock&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1372:17 (libxul.so+0x67be978)
 0:02.81 pid:12945     #25 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1559:10 (libxul.so+0x67b8044)
 0:02.81 pid:12945     #26 CallGetService(char const*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0x67c33e1)
 0:02.81 pid:12945     #27 CallGetService<nsIIOService> /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsServiceManagerUtils.h:72:10 (libxul.so+0x8319481)
 0:02.81 pid:12945     #28 nsScriptSecurityManager::Init() /home/padenot/src/trees/mozilla-unified/caps/nsScriptSecurityManager.cpp:1369:17 (libxul.so+0x8319481)
 0:02.81 pid:12945     #29 nsScriptSecurityManager::InitStatics() /home/padenot/src/trees/mozilla-unified/caps/nsScriptSecurityManager.cpp:1430:28 (libxul.so+0x8319d5a)
 0:02.81 pid:12945     #30 nsXPConnect::InitStatics() /home/padenot/src/trees/mozilla-unified/js/xpconnect/src/nsXPConnect.cpp:153:3 (libxul.so+0x7f38140)
 0:02.81 pid:12945     #31 xpcModuleCtor() /home/padenot/src/trees/mozilla-unified/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x7ee5ba1)
 0:02.81 pid:12945     #32 nsLayoutModuleInitialize() /home/padenot/src/trees/mozilla-unified/layout/build/nsLayoutModule.cpp:108:7 (libxul.so+0xd26aa9b)
 0:02.81 pid:12945     #33 nsComponentManagerImpl::Init() /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:482:5 (libxul.so+0x67b8cca)
 0:02.81 pid:12945     #34 NS_InitXPCOM /home/padenot/src/trees/mozilla-unified/xpcom/build/XPCOMInit.cpp:447:51 (libxul.so+0x6864a36)
 0:02.81 pid:12945     #35 XRE_XPCShellMain(int, char**, char**, XREShellData const*) /home/padenot/src/trees/mozilla-unified/js/xpconnect/src/XPCShellImpl.cpp:1204:10 (libxul.so+0x7f0c1b4)
 0:02.81 pid:12945     #36 mozilla::BootstrapImpl::XRE_XPCShellMain(int, char**, char**, XREShellData const*) /home/padenot/src/trees/mozilla-unified/toolkit/xre/Bootstrap.cpp:54:12 (libxul.so+0xf072d1e)
 0:02.81 pid:12945     #37 main /home/padenot/src/trees/mozilla-unified/js/xpconnect/shell/xpcshell.cpp:66:27 (xpcshell+0x11d265)
 0:02.81 pid:12945   Location is global 'pt_debug' of size 40 at 0x7f6ecc0a6790 (libnspr4.so+0x00000005d7a4)
 0:02.81 pid:12945   Thread T3 (tid=12949, running) created by main thread at:
 0:02.81 pid:12945     #0 pthread_create /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:967:3 (xpcshell+0xabb1b)
 0:02.81 pid:12945     #1 _PR_CreateThread /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x4ddec)
 0:02.81 pid:12945     #2 PR_CreateThread /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x42ed7)
 0:02.81 pid:12945     #3 nsThread::Init(nsTSubstring<char> const&) /home/padenot/src/trees/mozilla-unified/xpcom/threads/nsThread.cpp:659:8 (libxul.so+0x67fcfa0)
 0:02.81 pid:12945     #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /home/padenot/src/trees/mozilla-unified/xpcom/threads/nsThreadManager.cpp:619:12 (libxul.so+0x680737c)
 0:02.81 pid:12945     #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /home/padenot/src/trees/mozilla-unified/xpcom/threads/nsThreadUtils.cpp:157:57 (libxul.so+0x681027f)
 0:02.81 pid:12945     #6 nsresult NS_NewNamedThread<16ul>(char const (&) [16ul], nsIThread**, nsIRunnable*, unsigned int) /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsThreadUtils.h:82:10 (libxul.so+0x6a8700e)
 0:02.81 pid:12945     #7 mozilla::net::NetlinkService::Init(mozilla::net::NetlinkServiceListener*) /home/padenot/src/trees/mozilla-unified/netwerk/system/netlink/NetlinkService.cpp:1244:8 (libxul.so+0x72c6eb0)
 0:02.81 pid:12945     #8 nsNetworkLinkService::Init() /home/padenot/src/trees/mozilla-unified/netwerk/system/linux/nsNetworkLinkService.cpp:98:21 (libxul.so+0x72bea2a)
 0:02.81 pid:12945     #9 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:9482:7 (libxul.so+0x679729f)
 0:02.81 pid:12945     #10 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:11562:10 (libxul.so+0x6793cf2)
 0:02.81 pid:12945     #11 CreateInstance /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:219:46 (libxul.so+0x67be978)
 0:02.82 pid:12945     #12 nsComponentManagerImpl::GetServiceLocked((anonymous namespace)::MutexLock&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1372:17 (libxul.so+0x67be978)
 0:02.82 pid:12945     #13 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1559:10 (libxul.so+0x67b8044)
 0:02.82 pid:12945     #14 CallGetService /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0x67c3b7e)
 0:02.82 pid:12945     #15 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManagerUtils.cpp:253:21 (libxul.so+0x67c3b7e)
 0:02.82 pid:12945     #16 assign_from_gs_contractid_with_error /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsCOMPtr.h:1232:7 (libxul.so+0x69e3e74)
 0:02.82 pid:12945     #17 operator= /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsCOMPtr.h:762:5 (libxul.so+0x69e3e74)
 0:02.82 pid:12945     #18 mozilla::net::nsIOService::InitializeNetworkLinkService() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:385:23 (libxul.so+0x69e3e74)
 0:02.82 pid:12945     #19 mozilla::net::nsIOService::Init() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:293:3 (libxul.so+0x69e33e8)
 0:02.82 pid:12945     #20 mozilla::net::nsIOService::GetInstance() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:411:9 (libxul.so+0x69e51f0)
 0:02.82 pid:12945     #21 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:9532:48 (libxul.so+0x679a2f9)
 0:02.82 pid:12945     #22 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/xpcom/components/StaticComponents.cpp:11562:10 (libxul.so+0x6793cf2)
 0:02.82 pid:12945     #23 CreateInstance /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:219:46 (libxul.so+0x67be978)
 0:02.82 pid:12945     #24 nsComponentManagerImpl::GetServiceLocked((anonymous namespace)::MutexLock&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1372:17 (libxul.so+0x67be978)
 0:02.82 pid:12945     #25 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:1559:10 (libxul.so+0x67b8044)
 0:02.82 pid:12945     #26 CallGetService(char const*, nsID const&, void**) /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0x67c33e1)
 0:02.82 pid:12945     #27 CallGetService<nsIIOService> /home/padenot/src/trees/mozilla-unified/objdir-ff-tsan/dist/include/nsServiceManagerUtils.h:72:10 (libxul.so+0x8319481)
 0:02.82 pid:12945     #28 nsScriptSecurityManager::Init() /home/padenot/src/trees/mozilla-unified/caps/nsScriptSecurityManager.cpp:1369:17 (libxul.so+0x8319481)
 0:02.82 pid:12945     #29 nsScriptSecurityManager::InitStatics() /home/padenot/src/trees/mozilla-unified/caps/nsScriptSecurityManager.cpp:1430:28 (libxul.so+0x8319d5a)
 0:02.82 pid:12945     #30 nsXPConnect::InitStatics() /home/padenot/src/trees/mozilla-unified/js/xpconnect/src/nsXPConnect.cpp:153:3 (libxul.so+0x7f38140)
 0:02.82 pid:12945     #31 xpcModuleCtor() /home/padenot/src/trees/mozilla-unified/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x7ee5ba1)
 0:02.82 pid:12945     #32 nsLayoutModuleInitialize() /home/padenot/src/trees/mozilla-unified/layout/build/nsLayoutModule.cpp:108:7 (libxul.so+0xd26aa9b)
 0:02.82 pid:12945     #33 nsComponentManagerImpl::Init() /home/padenot/src/trees/mozilla-unified/xpcom/components/nsComponentManager.cpp:482:5 (libxul.so+0x67b8cca)
 0:02.82 pid:12945     #34 NS_InitXPCOM /home/padenot/src/trees/mozilla-unified/xpcom/build/XPCOMInit.cpp:447:51 (libxul.so+0x6864a36)
 0:02.82 pid:12945     #35 XRE_XPCShellMain(int, char**, char**, XREShellData const*) /home/padenot/src/trees/mozilla-unified/js/xpconnect/src/XPCShellImpl.cpp:1204:10 (libxul.so+0x7f0c1b4)
 0:02.82 pid:12945     #36 mozilla::BootstrapImpl::XRE_XPCShellMain(int, char**, char**, XREShellData const*) /home/padenot/src/trees/mozilla-unified/toolkit/xre/Bootstrap.cpp:54:12 (libxul.so+0xf072d1e)
 0:02.83 pid:12945     #37 main /home/padenot/src/trees/mozilla-unified/js/xpconnect/shell/xpcshell.cpp:66:27 (xpcshell+0x11d265)
 0:02.83 pid:12945 SUMMARY: ThreadSanitizer: data race /home/padenot/src/trees/mozilla-unified/nsprpub/pr/src/pthreads/ptsynch.c:217:29 in PR_Unlock

hey gerald, may this be linked to bug 1622477 ?

From a quick look at the failures, it seems to fail mostly when starting the profiler again in the second part of the test, but it fails also sometimes for the first start. We don't have logs as fine as for the test_active_configuration test (from bug 1622477) so we don't know for sure this is timing out on starting the profiler, or capturing, or stopping.

Flags: needinfo?(gsquelart)

Yes, thanks for the tip. Investigating...

Flags: needinfo?(gsquelart)

(In reply to Paul Adenot (:padenot) from comment #10)

This fails locally in opt+debug TSAN:

...
 0:02.81 pid:12945     #18 mozilla::net::nsIOService::InitializeNetworkLinkService() /home/padenot/src/trees/mozilla-unified/netwerk/base/nsIOService.cpp:385:23 (libxul.so+0x69e3e74)
...

Could this be somehow related to bug 1647759, and not be relevant to our issue here?

Anyway, today I ran some Try tests to verify whether bug 1626918 is the cause (as Cristina found in comment 5), and to attempt to hone in on the actual cause:

  1. Central -> Intermittents in "Linux 18.04 x64 tsan" opt X4 tests (same as recorded in this bug and bug 1622477)
    https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&selectedTaskRun=D4x0TgMYQXqtyAyznriV3A.0&revision=a325e6dc947f3b1aa3df48792ee3441df0abdd51
  2. Forcefully disable MOZ_GECKO_PROFILER in AsyncLogger.h -> Intermittents are still present.
    https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&selectedTaskRun=D4x0TgMYQXqtyAyznriV3A.0&revision=2bf178055b736b3cbd6b27393f86821973e8d990
  3. Same as 2, and also don't start&stop audio callback tracing -> No intermittents! (So far, I've just restarted more X4 test runs)
    https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&selectedTaskRun=dmMnUigpR4GQrE6mSOqWxQ.0&revision=f972b0b58291a97e117b5f57f476a7fdd41261a0

If the results in 3 hold, this is pointing towards the AsyncLogger, even when there is no profiler code.

Paul, could you please have a look, see if there's anything obvious to you?
(End of my day here, I can investigate further tomorrow, depending on what you find...)

Flags: needinfo?(padenot)

(In reply to Gerald Squelart [:gerald] (he/him) from comment #15)

  1. Same as 2, and also don't start&stop audio callback tracing -> No intermittents! (So far, I've just restarted more X4 test runs)
    https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&selectedTaskRun=dmMnUigpR4GQrE6mSOqWxQ.0&revision=f972b0b58291a97e117b5f57f476a7fdd41261a0

If the results in 3 hold, this is pointing towards the AsyncLogger, even when there is no profiler code.

Woops, one intermittent happened in that last try, in test_active_configuration.js (bug 1626918), out of 30 runs.
It's interesting though that overall there are much fewer intermittents. Or it could just be a coincidence (only 15-30 runs, maybe on different machines, etc.).
Anyway, more work needed...

Tried adding an explicit linearization point in my code, in the form of a global lock, no luck.

Having stacks for all threads when the xpcshell time out should help.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=52b5e7d3c818e7f60b4847f36c56f44111f2a14a

Flags: needinfo?(padenot)

Bug 1653181 removed the spikes introduced by bug 1626918, but there are still a few hits like before, so I'm keeping this bug open at a lower priority.

Priority: P2 → P5
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → INCOMPLETE

Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=353395924&repo=autoland&lineNumber=3141

[task 2021-10-01T20:40:35.633Z] 20:40:35     INFO -  TEST-START | tools/profiler/tests/xpcshell/test_feature_mainthreadio.js
[task 2021-10-01T20:45:35.637Z] 20:45:35  WARNING -  TEST-UNEXPECTED-TIMEOUT | tools/profiler/tests/xpcshell/test_feature_mainthreadio.js | Test timed out
[task 2021-10-01T20:45:35.638Z] 20:45:35     INFO -  TEST-INFO took 300001ms
[task 2021-10-01T20:45:35.638Z] 20:45:35     INFO -  >>>>>>>
[task 2021-10-01T20:45:35.639Z] 20:45:35     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2021-10-01T20:45:35.640Z] 20:45:35     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2021-10-01T20:45:35.641Z] 20:45:35     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2021-10-01T20:45:35.641Z] 20:45:35     INFO -  running event loop
[task 2021-10-01T20:45:35.641Z] 20:45:35     INFO -  tools/profiler/tests/xpcshell/test_feature_mainthreadio.js | Starting
[task 2021-10-01T20:45:35.641Z] 20:45:35     INFO -  (xpcshell/head.js) | test pending (2)
[task 2021-10-01T20:45:35.642Z] 20:45:35     INFO -  "Get the file"
[task 2021-10-01T20:45:35.643Z] 20:45:35     INFO -  "Generate file IO on the main thread using FileUtils.openSafeFileOutputStream."
[task 2021-10-01T20:45:35.645Z] 20:45:35     INFO -  "Write to the file"
[task 2021-10-01T20:45:35.645Z] 20:45:35     INFO -  "Close the file"
[task 2021-10-01T20:45:35.645Z] 20:45:35     INFO -  "Remove the file"
[task 2021-10-01T20:45:35.645Z] 20:45:35     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2021-10-01T20:45:35.645Z] 20:45:35     INFO -  "Check the FileIO markers when using the mainthreadio feature"
[task 2021-10-01T20:45:35.646Z] 20:45:35     INFO -  TEST-PASS | tools/profiler/tests/xpcshell/test_feature_mainthreadio.js |  - Found some markers - 3 > 0
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.