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

implement thread safety for shell utils, using fine grained locking

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: None
    • Component/s: JavaScript, Shell
    • None
    • Environment:
      Linux 64-bit v8, need to see if Windows V8 has issues
    • ALL

      shell: started program /data/slave/Linux_64bit_v8/mongo/mongo --eval sleep(1000); db.sps.insert({x:1}); db.getLastError(); 127.0.0.1:27999
      Tue Apr  3 08:48:32 mongo got signal 11 (Segmentation fault), stack trace: 
      
      sh16333| connecting to: 127.0.0.1:27999/test
      sh16333| null
      Tue Apr  3 08:48:32 0x47c78b 0x7f97ffc4d980 0x7f98004ae06f 0x4907a1 0x490885 0x49f850 0x499dcd 0x55bbbf 0x552306 0x5da021 0x30f4dc306302 
       /data/slave/Linux_64bit_v8/mongo/mongo(_Z12quitAbruptlyi+0x33b) [0x47c78b]
       /lib64/libc.so.6(+0x32980) [0x7f97ffc4d980]
       /usr/lib64/libstdc++.so.6(_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x5f) [0x7f98004ae06f]
       /data/slave/Linux_64bit_v8/mongo/mongo() [0x4907a1]
       /data/slave/Linux_64bit_v8/mongo/mongo() [0x490885]
       /data/slave/Linux_64bit_v8/mongo/mongo(_ZN5mongo10shellUtils13ProgramRunner5startEv+0x380) [0x49f850]
       /data/slave/Linux_64bit_v8/mongo/mongo(_ZN5mongo10shellUtils17StartMongoProgramERKNS_7BSONObjEPv+0x3d) [0x499dcd]
       /data/slave/Linux_64bit_v8/mongo/mongo(_ZN5mongo7V8Scope14nativeCallbackEPS0_RKN2v89ArgumentsE+0x5cf) [0x55bbbf]
       /data/slave/Linux_64bit_v8/mongo/mongo(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0x76) [0x552306]
       /data/slave/Linux_64bit_v8/mongo/mongo() [0x5da021]
       [0x30f4dc306302]
      

      http://buildbot.mongodb.org/builders/Linux%2064-bit%20v8/builds/3256/steps/test_11/logs/stdio

            Assignee:
            tad Tad Marshall
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: