## On insert cheald@Aura ~ % ruby kaboom.rb insert /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/bson-1.6.1/lib/bson/bson_c.rb:28:in `deserialize': no c decoder for this type yet (-74) (TypeError) from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/bson-1.6.1/lib/bson/bson_c.rb:28:in `deserialize' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/networking.rb:230:in `read_documents' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/networking.rb:177:in `receive' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/networking.rb:139:in `receive_message' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/cursor.rb:469:in `block in send_initial_query' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/util/logging.rb:36:in `instrument' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/cursor.rb:467:in `send_initial_query' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/cursor.rb:458:in `refresh' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/cursor.rb:128:in `next' from /usr/local/rvm/gems/ruby-1.9.3-p125-perf/gems/mongo-1.6.1/lib/mongo/collection.rb:288:in `find_one' from kaboom.rb:17:in `
' ## mongod.log Wed Apr 4 08:24:49 [initandlisten] connection accepted from 127.0.0.1:36844 #84 Wed Apr 4 08:24:49 [conn84] end connection 127.0.0.1:36844 Wed Apr 4 08:24:49 [initandlisten] connection accepted from 127.0.0.1:36846 #85 Wed Apr 4 08:24:49 [FileAllocator] allocating new datafile /var/lib/mongo/test.ns, filling with zeroes... Wed Apr 4 08:24:49 [FileAllocator] done allocating datafile /var/lib/mongo/test.ns, size: 16MB, took 0.088 secs Wed Apr 4 08:24:49 [FileAllocator] allocating new datafile /var/lib/mongo/test.0, filling with zeroes... Wed Apr 4 08:24:49 [FileAllocator] done allocating datafile /var/lib/mongo/test.0, size: 64MB, took 0.047 secs Wed Apr 4 08:24:49 [FileAllocator] allocating new datafile /var/lib/mongo/test.1, filling with zeroes... Wed Apr 4 08:24:49 [conn85] build index test.kaboom { _id: 1 } Wed Apr 4 08:24:49 [conn85] build index done 0 records 0.002 secs Wed Apr 4 08:24:49 [conn85] insert test.kaboom 154ms Wed Apr 4 08:24:49 [conn85] end connection 127.0.0.1:36846 Wed Apr 4 08:24:49 [FileAllocator] done allocating datafile /var/lib/mongo/test.1, size: 128MB, took 0.049 secs ## mongo console > db.kaboom.find() Wed Apr 4 08:25:23 Assertion: 10320:BSONElement: bad type -74 0x4a4102 0x47db5c 0x50a776 0x56ad15 0x56d80c 0x55428a 0x5625bf 0x51fc56 0x51fcd2 0x5210de 0x516ab2 0x475f4a 0x476a86 0x3a3b62169d 0x46f579 mongo(_ZN5mongo11msgassertedEiPKc+0x112) [0x4a4102] mongo(_ZNK5mongo11BSONElement4sizeEv+0x1ec) [0x47db5c] mongo(_ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3_+0x136) [0x50a776] mongo(js_LookupPropertyWithFlags+0x3f5) [0x56ad15] mongo(js_GetProperty+0x7c) [0x56d80c] mongo(js_Interpret+0x10ea) [0x55428a] mongo(js_Execute+0x36f) [0x5625bf] mongo(JS_EvaluateUCScriptForPrincipals+0x66) [0x51fc56] mongo(JS_EvaluateUCScript+0x22) [0x51fcd2] mongo(JS_EvaluateScript+0x6e) [0x5210de] mongo(_ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi+0x122) [0x516ab2] mongo(_Z5_mainiPPc+0x2e1a) [0x475f4a] mongo(main+0x26) [0x476a86] /lib64/libc.so.6(__libc_start_main+0xed) [0x3a3b62169d] mongo(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x59) [0x46f579] error:BSONElement: bad type -74 > db.runCommand({compact: 'kaboom'}) { "invalidObjects" : NumberLong(1), "ok" : 1 } > db.kaboom.find()