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

Seg fault when adding

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Environment:
      Mongo DB 2.1.0 binary
      Created three Mongod(s) with one mongos with a chunk size of 1MB.
      Mac OSX 10.7.2, Macbook Air
    • OS X

      Last login: Wed Feb 15 15:30:27 on ttys006
      Bleecker-Street:bin mshopsin$ ./mongo
      MongoDB shell version: 2.1.0
      connecting to: test
      mongos> use admin
      switched to db admin
      mongos> db.runCommand(

      {addshard : "localhost:10000"}

      )

      { "shardAdded" : "shard0001", "ok" : 1 }

      mongos> db.runCommand(

      {addshard : "localhost:10001"}

      )

      { "shardAdded" : "shard0002", "ok" : 1 }

      mongos> db.runCommand(

      {enablesharding : "test" }

      )

      { "ok" : 1 }

      mongos> db.runCommand( { shardcollection : "test.people", key :

      {name : 1}

      })

      { "collectionsharded" : "test.people", "ok" : 1 }

      mongos> for(i = 0; i < 1000; i++) {
      ... ['quiz','essay','exam'].forEach(function(name) {
      ... var score = Math.floor(Math.random() * 50) + 50;
      ... db.scores.insert(

      {student: i, name: name, score: score}

      );
      ... });
      ... }
      mongos> db.scores.count()
      3000
      mongos> show collections
      scores
      system.indexes
      mongos> use test
      switched to db test
      mongos> for(i = 0; i < 1000; i++) { ['quiz','essay','exam'].forEach(function(name) { var score = Math.floor(Math.random() * 50) + 50; db.test.insert(

      {student: name, name: i, score: score}

      ); }); }
      mongos> for(i = 0; i < 600000; i++) { ['quiz','essay','exam'].forEach(function(name) { var score = Math.floor(Math.random() * 50) + 50; db.test.insert(

      {student: name, name: i, score: score}

      ); }); }

      ^CWed Feb 15 15:54:07 Assertion: 13111:field not found, expected type 2
      0x10009a6fe 0x10009a93c 0x100014e5c 0x100014f67 0x100004df6 0x100005fed 0x7fff86c0ecfa 0 0x10017ba78 0x100160900 0x1001666b1 0x100172a4a 0x10012c9a2 0x100172352 0x1001631a8 0x100171be9 0x1001275db 0x1001ea5ab 0x100008ec1 0x10000b15a
      0 mongo 0x000000010009a6fe _ZN5mongo11msgassertedEiPKc + 318
      1 mongo 0x000000010009a93c _ZN5mongo11msgassertedEiRKSs + 12
      2 mongo 0x0000000100014e5c _ZNK5mongo11BSONElement3chkEi + 620
      3 mongo 0x0000000100014f67 _ZNK5mongo11BSONElement6StringEv + 55
      4 mongo 0x0000000100004df6 _Z7killOpsv + 1222
      5 mongo 0x0000000100005fed _Z10quitNicelyi + 45
      6 libsystem_c.dylib 0x00007fff86c0ecfa _sigtramp + 26
      7 ??? 0x0000000000000000 0x0 + 0
      8 mongo 0x000000010017ba78 js_GetProperty + 120
      9 mongo 0x0000000100160900 js_ValueToIterator + 192
      10 mongo 0x00000001001666b1 js_Interpret + 18977
      11 mongo 0x0000000100172a4a js_Invoke + 3002
      12 mongo 0x000000010012c9a2 array_extra + 1010
      13 mongo 0x0000000100172352 js_Invoke + 1218
      14 mongo 0x00000001001631a8 js_Interpret + 5400
      15 mongo 0x0000000100171be9 js_Execute + 409
      16 mongo 0x00000001001275db JS_EvaluateScript + 219
      17 mongo 0x00000001001ea5ab _ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi + 475
      18 mongo 0x0000000100008ec1 _Z5_mainiPPc + 6113
      19 mongo 0x000000010000b15a main + 42
      error:field not found, expected type 2
      mongos> for(i = 0; i < 1000; i++) { ['quiz','essay','exam'].forEach(function(name) { var score = Math.floor(Math.random() * 50) + 50; db.people.insert(

      {student: name, name: i, score: score}

      ); }); }
      mongos> for(i = 0; i < 60000; i++) { ['quiz','essay','exam'].forEach(function(name) { var score = Math.floor(Math.random() * 50) + 50; db.people.insert(

      {student: name, name: i, score: score}

      ); }); }
      Wed Feb 15 15:55:54 mongo got signal 11 (Segmentation fault: 11), stack trace:

      Wed Feb 15 15:55:54 0x100001afc 0x7fff86c0ecfa 0xd 0x10015e7fe 0x100178721 0x100178ae5 0x1001afa9f 0x10017c110 0x10016a31d 0x100172a4a 0x10012c9a2 0x100172352 0x1001631a8 0x100171be9 0x1001275db 0x1001ea5ab 0x100008ec1 0x10000b15a 0x100000c14 0x1
      0 mongo 0x0000000100001afc _Z12quitAbruptlyi + 316
      1 libsystem_c.dylib 0x00007fff86c0ecfa _sigtramp + 26
      2 ??? 0x000000000000000d 0x0 + 13
      3 mongo 0x000000010015e7fe js_NewGCThing + 302
      4 mongo 0x0000000100178721 AllocSlots + 321
      5 mongo 0x0000000100178ae5 js_AllocSlot + 165
      6 mongo 0x00000001001afa9f js_AddScopeProperty + 1199
      7 mongo 0x000000010017c110 js_SetProperty + 512
      8 mongo 0x000000010016a31d js_Interpret + 34445
      9 mongo 0x0000000100172a4a js_Invoke + 3002
      10 mongo 0x000000010012c9a2 array_extra + 1010
      11 mongo 0x0000000100172352 js_Invoke + 1218
      12 mongo 0x00000001001631a8 js_Interpret + 5400
      13 mongo 0x0000000100171be9 js_Execute + 409
      14 mongo 0x00000001001275db JS_EvaluateScript + 219
      15 mongo 0x00000001001ea5ab _ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi + 475
      16 mongo 0x0000000100008ec1 _Z5_mainiPPc + 6113
      17 mongo 0x000000010000b15a main + 42
      18 mongo 0x0000000100000c14 start + 52
      19 ??? 0x0000000000000001 0x0 + 1

            Assignee:
            antoine Antoine Girbal
            Reporter:
            matts Matthew Shopsin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: