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

SEGFAULT with fast performance counters on NUMA

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.1
    • Affects Version/s: 1.3.6, 1.5.0
    • Component/s: libmongoc
    • None
    • Environment:
      Linux (CentOS), clang 3.9.0

      The call to mongoc_client_new segfaults some/most of the time. It occasionally works, but there seems to be no pattern as to when it segfaults and when it succeeds. The same code was compiled against versions 1.3.6 and 1.5.0 of the Mongo C driver, and in both cases the behavior is similar.

      See the attachment for the output when the example program is compiled, the source code for the example program, and the LLDB output, and the compile command.

      NOTE: This also affects the C++ driver because the C++ driver calls the C driver internally.

        1. mongo_c_segfault_debug.txt
          4 kB
          Jonathan Wang
        2. mongo_c_segfault.txt
          5 kB
          Jonathan Wang

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jwang Jonathan Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: