• Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.9.8
    • Affects Version/s: 0.9.6
    • Component/s: JavaScript, Shell, Stability
    • None
    • Environment:
      OS X

      Inserting the test darta with the attached script makes the shell crash when 'finding' that entry in the DB.

      $ echo 'db.reports.find(

      { "_id": "nntp-3158" }

      )' | /usr/local/mongodb/bin/mongo temp
      MongoDB shell version: 0.9.6
      url: temp
      connecting to: temp
      type "help" for help
      > db.reports.find(

      { "_id": "nntp-3158" }

      )
      Tue Jul 21 12:01:10 in client mode Assertion failure s 32bit/scripting/engine_spidermonkey.cpp 323
      0x49870 0x506e1 0x79f45 0x7054f 0x108023 0x107cb0 0xfae73 0xfb1e4 0xdfe3a 0xdc115 0x9d4a9 0x9d400 0x9d30a 0x7aad8 0x31f1 0x1cc6
      0 mongo 0x00049870 _ZN5mongo12sayDbContextEPKc + 256
      1 mongo 0x000506e1 _ZN5mongo8assertedEPKcS1_j + 337
      2 mongo 0x00079f45 _ZN5mongo9Convertor5tovalERKNS_11BSONElementE + 5349
      3 mongo 0x0007054f ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3 + 239
      4 mongo 0x00108023 js_LookupPropertyWithFlags + 881
      5 mongo 0x00107cb0 js_LookupProperty + 53
      6 mongo 0x000fae73 js_ValueToIterator + 2115
      7 mongo 0x000fb1e4 js_CallIteratorNext + 249
      8 mongo 0x000dfe3a js_Interpret + 11620
      9 mongo 0x000dc115 js_Execute + 774
      10 mongo 0x0009d4a9 JS_EvaluateUCScriptForPrincipals + 167
      11 mongo 0x0009d400 JS_EvaluateUCScript + 67
      12 mongo 0x0009d30a JS_EvaluateScript + 108
      13 mongo 0x0007aad8 _ZN5mongo7SMScope4execERKSsS2_bbbi + 920
      14 mongo 0x000031f1 main + 4001
      15 mongo 0x00001cc6 start + 54
      terminate called after throwing an instance of 'mongo::AssertionException'
      what():
      Tue Jul 21 12:01:10 mongo got signal 6 (Abort trap), stack trace:
      Tue Jul 21 12:01:10 0x5a57 0x9475d2bb 0xffffffff 0x947d123a 0x947dd679 0x968cd005 0x968cb10c 0x968cb14b 0x968cb261 0x5082c 0x79f45 0x7054f 0x108023 0x107cb0 0xfae73 0xfb1e4 0xdfe3a 0xdc115 0x9d4a9 0x9d400
      0 mongo 0x00005a57 _Z12quitAbruptlyi + 999
      1 libSystem.B.dylib 0x9475d2bb _sigtramp + 43
      2 ??? 0xffffffff 0x0 + 4294967295
      3 libSystem.B.dylib 0x947d123a raise + 26
      4 libSystem.B.dylib 0x947dd679 abort + 73
      5 libstdc++.6.dylib 0x968cd005 ZN9gnu_cxx27_verbose_terminate_handlerEv + 445
      6 libstdc++.6.dylib 0x968cb10c __gxx_personality_v0 + 1108
      7 libstdc++.6.dylib 0x968cb14b _ZSt9terminatev + 29
      8 libstdc++.6.dylib 0x968cb261 __cxa_throw + 101
      9 mongo 0x0005082c _ZN5mongo8assertedEPKcS1_j + 668
      10 mongo 0x00079f45 _ZN5mongo9Convertor5tovalERKNS_11BSONElementE + 5349
      11 mongo 0x0007054f ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3 + 239
      12 mongo 0x00108023 js_LookupPropertyWithFlags + 881
      13 mongo 0x00107cb0 js_LookupProperty + 53
      14 mongo 0x000fae73 js_ValueToIterator + 2115
      15 mongo 0x000fb1e4 js_CallIteratorNext + 249
      16 mongo 0x000dfe3a js_Interpret + 11620
      17 mongo 0x000dc115 js_Execute + 774
      18 mongo 0x0009d4a9 JS_EvaluateUCScriptForPrincipals + 167
      19 mongo 0x0009d400 JS_EvaluateUCScript + 67

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            ask Ask Bjørn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: