Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46217

Unit tests consistently segfault after SERVER-45793

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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)
      

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: