Unit Tests Under -fsanitize=address Timeout

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
            Hannes Magnusson (Inactive)
            Reporter:
            Alex Bishop
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: