mongo_crypt_v1_get_version() aborts in 8.0.13-rc0 and above

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.13, 8.2.0
    • Component/s: None
    • Environment:
      Linux x64
      macOS arm64
    • DevProd Build
    • ALL
    • Hide
      curl -O https://downloads.mongodb.com/linux/mongo_crypt_shared_v1-linux-x86_64-enterprise-ubuntu2204-8.0.13-rc0.tgz
      tar xf mongo_crypt_shared_v1-linux-x86_64-enterprise-ubuntu2204-8.0.13-rc0.tgz
      cat > test.c <<EOF
      #include <dlfcn.h>
      #include <stdio.h>
      
      int main() {
        void* lib = dlopen("./lib/mongo_crypt_v1.so", RTLD_NOW);
        const char*(*version)(void) = (const char*(*)(void))
          dlsym(lib, "mongo_crypt_v1_get_version_str");
        printf("%s\n", version());
      }
      EOF
      gcc -o test test.c
      ./test
      

      (analogous for macOS)

      Show
      curl -O https: //downloads.mongodb.com/linux/mongo_crypt_shared_v1-linux-x86_64-enterprise-ubuntu2204-8.0.13-rc0.tgz tar xf mongo_crypt_shared_v1-linux-x86_64-enterprise-ubuntu2204-8.0.13-rc0.tgz cat > test.c <<EOF #include <dlfcn.h> #include <stdio.h> int main() { void* lib = dlopen( "./lib/mongo_crypt_v1.so" , RTLD_NOW); const char *(*version)(void) = ( const char *(*)(void)) dlsym(lib, "mongo_crypt_v1_get_version_str" ); printf( "%s\n" , version()); } EOF gcc -o test test.c ./test (analogous for macOS)
    • None
    • 2
    • 1-Day
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Calling mongo_crypt_v1_get_version_str() or mongo_crypt_v1_get_version() terminates with a fatal MongoDB exception.

      {"t":{"$date":"2025-08-31T21:56:43.896Z"},"s":"F",  "c":"CONTROL",  "id":40278,   "ctx":"main","msg":"Terminating because valid version info has not been configured"}
      {"t":{"$date":"2025-08-31T21:56:43.896Z"},"s":"F",  "c":"ASSERT",   "id":23089,   "ctx":"main","msg":"Fatal assertion","attr":{"msgid":40278,"file":"src/mongo/util/version.cpp","line":133}}
      {"t":{"$date":"2025-08-31T21:56:43.896Z"},"s":"F",  "c":"ASSERT",   "id":23090,   "ctx":"main","msg":"\n\n***aborting after fassert() failure\n\n"}
      

            Assignee:
            Zac Codiamat
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: