Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1055

Unit Tests Under -fsanitize=address Timeout

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.0
    • Affects Version/s: 1.3.0
    • Component/s: Testing
    • None
    • Environment:
      Linux ubuntu 3.16.0-55-generic #74~14.04.1-Ubuntu SMP
      cmake version 2.8.12.2
      gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4

      Added to /libbson/CMakeLists.txt:

      set(CMAKE_C_FLAGS "-fsanitize=address")
      
      cmake .
      make
      ./test-libbson
      

      Assuming PR #146 and PR #147

      The unit tests will more often than not stall and abort due to a timeout. Given a lucky ordering of the tests from threading, they all pass.

      ./test-libbson
      ...
      Timed out, aborting!
      Aborted (core dumped)
      

      Running the unit tests without parallelization are good.

      ./test-libbson -p
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            arbishop11@gmail.com Alex Bishop
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: