Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6709

intermittent segmentation fault on container builds for zstd and mongodb-client-encryption

    • Not Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Some linux builds in zstd's CI are failing with a segmentation fault when building facebook's zstd library:

      ... truncated
      
      #15 50.64 [  2%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/debug.c.o
      #15 51.02 [  5%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/entropy_common.c.o
      #15 53.41 [  8%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/error_private.c.o
      #15 54.90 [ 10%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/fse_decompress.c.o
      #15 57.93 [ 13%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/pool.c.o
      #15 59.59 [ 16%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/threading.c.o
      #15 59.97 [ 18%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/xxhash.c.o
      #15 62.42 [ 21%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/common/zstd_common.c.o
      #15 64.09 [ 24%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/compress/fse_compress.c.o
      #15 67.55 [ 27%] Building C object lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/compress/hist.c.o
      #15 67.65 Segmentation fault (core dumped)
      #15 67.66 lib/CMakeFiles/libzstd_static.dir/build.make:278: recipe for target 'lib/CMakeFiles/libzstd_static.dir/zstd/deps/zstd/lib/compress/hist.c.o' failed
      

      This error seems to impact at least one CI task per run, sometimes more. It doesn't always impact the same task. It only affects the docker container tasks (unsure if it only affects tasks which uses QEmu).

      Turns out these failures are also on mongodb-client-encryption: https://github.com/mongodb-js/mongodb-client-encryption/actions/runs/13187783107/job/36813973971.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None