Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3235

Golang mongo db driver 1.15 causing pod crash

    • Type: Icon: Question Question
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Stable API
    • None
    • Go Drivers
    • 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?

      Customer is experiencing pod crashes on Orders-API in their Production and they believe they're related to the Golang MongoDB driver version 1.15. I'm reaching out to inquire if there is any known bug or issue related to Golang MongoDB driver version 1.15 that could lead to pod crashes on their API.
      They have recently performed:
      1. Go driver upgrade from 1.10 to 1.15 on the 7th of May 2024.
      2. DB upgrade from 5.0.18 to 6.0.14 on the 19th of May 2024.
      Here's a snippet from their stack trace:
      ```
      unexpected fault address 0x5700be60
      fatal error: fault
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x5700be60 pc=0x4790e9]

      goroutine 130204602 gp=0xc00684d180 m=2 mp=0xc000082808 [running]:
      runtime.throw(

      {0x182972b?, 0x4ace00?}

      )
      /usr/local/go/src/runtime/panic.go:1023 +0x5c fp=0xc00138ab18 sp=0xc00138aae8 pc=0x43d79c
      runtime.sigpanic()
      /usr/local/go/src/runtime/signal_unix.go:895 +0x285 fp=0xc00138ab78 sp=0xc00138ab18 pc=0x4561e5
      runtime.memmove()
      /usr/local/go/src/runtime/memmove_amd64.s:399 +0x489 fp=0xc00138ab80 sp=0xc00138ab78 pc=0x4790e9
      go.mongodb.org/mongo-driver/x/bsonx/bsoncore.appendstring(...)
      /go/pkg/mod/go.mongodb.org/mongo-driver@v1.15.0/x/bsonx/bsoncore/bsoncore.go:805
      go.mongodb.org/mongo-driver/x/bsonx/bsoncore.AppendString(...)
      /go/pkg/mod/go.mongodb.org/mongo-driver@v1.15.0/x/bsonx/bsoncore/bsoncore.go:163
      go.mongodb.org/mongo-driver/bson/bsonrw.(*valueWriter).WriteString(0xc000531d60,

      {0x1731520, 0x558da9c0}

      )
      ```
      Please see attached Supporting Stack Trace and the log leading up to the crash pricecrash.txt

        1. pickercrash.txt
          7.42 MB
        2. Supporting Stack trace.txt
          7 kB

            Assignee:
            qingyang.hu@mongodb.com Qingyang Hu
            Reporter:
            indraneil.seal@mongodb.com Indraneil Seal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: