-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
None
-
ALL
-
Service Arch 2020-03-09
From commit f363c7a5f2 onwards, many (most?) unit tests have been consistently producing segfaults after the tests themselves have finished running, regardless of whether they fail or succeed. This has been observed both by myself on my Ubuntu 19.04 workstation, and by another member of my team on his Ubuntu 19.10 workstation. We are both building with --link-model=dynamic --opt=off.
Some examples below:
(mongo-python3) bernard@SEELE:~/mongo$ build/ninja/mongo/s/client/mongos_client_local_test 2020-02-18T11:26:24.250+0000 I - [main] going to run suite: ShardLocalTest 2020-02-18T11:26:24.251+0000 I - [main] going to run test: RunCommand ... 2020-02-18T11:26:24.307+0000 I - [main] SUCCESS - All tests in all suites passed Segmentation fault (core dumped)
(mongo-python3) bernard@SEELE:~/mongo$ ninja -f build-mongo.ninja +document_source_change_stream_test [1/1 (100%) 5.025s] build/ninja/mongo/db/pipeline/db_pipeline_test -fileNameFilter document_source_change_stream_test FAILED: +document_source_change_stream_test build/ninja/mongo/db/pipeline/db_pipeline_test -fileNameFilter document_source_change_stream_test 2020-02-18T11:27:41.675+0000 I - [main] going to run suite: AccumulatorMergeObjects 2020-02-18T11:27:41.675+0000 I - [main] DONE running tests ... 2020-02-18T11:27:43.228+0000 I - [main] SUCCESS - All tests in all suites passed Segmentation fault (core dumped) ninja: build stopped: subcommand failed.
(mongo-python3) bernard@SEELE:~/mongo$ build/ninja/mongo/s/catalog/s_catalog_test ... 2020-02-18T11:30:23.887+0000 I - [main] DistLockCatalogTest | tests: 78 | fails: 0 | assert calls: 0 | time secs: 0.706 2020-02-18T11:30:23.887+0000 I - [main] InsertRetryTest | tests: 6 | fails: 0 | assert calls: 0 | time secs: 0.058 2020-02-18T11:30:23.887+0000 I - [main] RSDistLockMgrWithMockTickSource | tests: 4 | fails: 0 | assert calls: 0 | time secs: 0.104 2020-02-18T11:30:23.887+0000 I - [main] ReplSetDistLockManagerFixture | tests: 28 | fails: 0 | assert calls: 0 | time secs: 0.259 2020-02-18T11:30:23.887+0000 I - [main] ShardingCatalogClientTest | tests: 36 | fails: 0 | assert calls: 0 | time secs: 0.196 2020-02-18T11:30:23.887+0000 I - [main] UpdateRetryTest | tests: 6 | fails: 0 | assert calls: 0 | time secs: 0.031 2020-02-18T11:30:23.887+0000 I - [main] TOTALS | tests: 158 | fails: 0 | assert calls: 0 | time secs: 1.354 2020-02-18T11:30:23.887+0000 I - [main] SUCCESS - All tests in all suites passed Segmentation fault (core dumped)
- depends on
-
SERVER-46041 DiagnosticListeners are destructed before detached threads die
- Closed
- duplicates
-
SERVER-46461 Make static in mutex getDiagnosticListenerState() immortal
- Closed
- is caused by
-
SERVER-45793 Improve mongo::Mutex contract
- Closed