Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35519

NULL dereference in LogicalSessionCacheReap

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.1.1
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      The transactions test suite for both the C Driver and Motor are able to pretty often crash the server, version 4.1.0-263-gbb2de3700e, configured as a 3-node RS on macOS with test commands enabled:

      2018-06-08T23:14:25.068-0400 F -        [LogicalSessionCacheReap] Invalid access at address: 0x0
      2018-06-08T23:14:25.106-0400 F -        [LogicalSessionCacheReap] Got signal: 11 (Segmentation fault: 11).
      ...
        ??? [0x0]
       mongod(_ZN5mongo23ServiceEntryPointCommon13handleRequestEPNS_16OperationContextERKNS_7MessageERKNS0_5HooksE+0x9F8) [0x10fa20cd8]
       mongod(_ZN5mongo23ServiceEntryPointMongod13handleRequestEPNS_16OperationContextERKNS_7MessageE+0x3B) [0x10fa1820b]
       mongod(_ZN5mongo12_GLOBAL__N_121loopbackBuildResponseEPNS_16OperationContextEPNS_9LastErrorERNS_7MessageE+0xCF) [0x110a2924f]
       mongod(_ZN5mongo14DBDirectClient4callERNS_7MessageES2_bPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE+0x37) [0x110a290e7]
       mongod(_ZN5mongo14DBClientCursor4initEv+0x6D) [0x110ccc90d]
       mongod(_ZN5mongo12DBClientBase5queryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5QueryEiiPKNS_7BSONObjEii+0x68) [0x110cc5c48]
       mongod(_ZN5mongo14DBDirectClient5queryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5QueryEiiPKNS_7BSONObjEii+0x55) [0x110a29425]
       mongod(_ZN5mongo12_GLOBAL__N_121TransactionReaperImplINS0_11ReplHandlerEE4reapEPNS_16OperationContextE+0x2B9) [0x10fd82639]
       mongod(_ZN5mongo23LogicalSessionCacheImpl5_reapEPNS_6ClientE+0x1B3) [0x110be70e3]
       mongod(_ZN5mongo23LogicalSessionCacheImpl13_periodicReapEPNS_6ClientE+0x30) [0x110be7630]
       mongod(_ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN5mongo18PeriodicRunnerImpl15PeriodicJobImpl3runEvE3$_1EEEEEPvSC_+0xD8) [0x1107b71c8]
       libsystem_pthread.dylib(_pthread_body+0x154) [0x7fff71b8b661]
      

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: