spidermonkey: don't crash on out of memory

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      this happened again this time there is some kind of a log:

      on Oct 18 04:37:41 [conn329] running multiple plans
      Mon Oct 18 04:37:41 [conn324] query caches.objects ntoreturn:1 idhack
      reslen:4078 24ms
      Mon Oct 18 04:37:43 [conn323] JS Error: out of memory nofile_a:0
      Mon Oct 18 04:37:43 [conn323] Assertion: 13072:JS_NewObject failed:
      NumberLong1
      0x54098e 0x5f9883 0x5f8b42 0x5ecc07 0x9015c9 0x9011a6 0x902906
      0x8e28be 0x8d2030 0x8d2479 0x88fe02 0x5fa1bc 0x5ba301 0x6eb872
      0x6164b1 0x73a5a6 0x7423c7 0x7468b2 0x74740f 0x747e57
      /usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x1de) [0x54098e]
      /usr/bin/mongod(_ZN5mongo9Convertor5tovalERKNS_11BSONElementE+0x17a3)
      [0x5f9883]
      /usr/bin/mongod(_ZN5mongo9Convertor5tovalERKNS_11BSONElementE+0xa62)
      [0x5f8b42]
      /usr/bin/
      mongod(ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3+0x377)
      [0x5ecc07]
      /usr/bin/mongod(js_LookupPropertyWithFlags+0x421) [0x9015c9]
      /usr/bin/mongod(js_LookupProperty+0x49) [0x9011a6]
      /usr/bin/mongod(js_GetProperty+0xff) [0x902906]
      /usr/bin/mongod(js_Interpret+0xed54) [0x8e28be]
      /usr/bin/mongod(js_Invoke+0xef2) [0x8d2030]
      /usr/bin/mongod(js_InternalInvoke+0x189) [0x8d2479]
      /usr/bin/mongod(JS_CallFunction+0x56) [0x88fe02]
      /usr/bin/mongod(_ZN5mongo7SMScope6invokeEP10JSFunctionRKNS_7BSONObjEib
      +0x2ec) [0x5fa1bc]
      /usr/bin/
      mongod(_ZN5mongo7Matcher7matchesERKNS_7BSONObjEPNS_12MatchDetailsE
      +0xfc1) [0x5ba301]
      /usr/bin/
      mongod(_ZN5mongo19CoveredIndexMatcher7matchesERKNS_7BSONObjERKNS_7DiskLocEPNS_12MatchDetailsE
      +0xe2) [0x6eb872]
      /usr/bin/mongod(_ZN5mongo11UserQueryOp4nextEv+0x2a1) [0x6164b1]
      /usr/bin/mongod(_ZN5mongo12QueryPlanSet6Runner6nextOpERNS_7QueryOpE
      +0x56) [0x73a5a6]
      /usr/bin/mongod(_ZN5mongo12QueryPlanSet6Runner3runEv+0x6f7)
      [0x7423c7]
      /usr/bin/mongod(_ZN5mongo12QueryPlanSet5runOpERNS_7QueryOpE+0x232)
      [0x7468b2]
      /usr/bin/mongod(_ZN5mongo16MultiPlanScanner9runOpOnceERNS_7QueryOpE
      +0x5f) [0x74740f]
      /usr/bin/mongod(_ZN5mongo16MultiPlanScanner5runOpERNS_7QueryOpE+0x17)
      [0x747e57]
      Mon Oct 18 04:37:44 Got signal: 11 (Segmentation fault).

      Mon Oct 18 04:37:44 Backtrace:
      0x8212f9 0x7f2459b7d040 0x8cdbf0 0x8ce2ac 0x8cc360 0x8fefe7 0x88b2c0
      0x5f792d 0x5f7f5a 0x5ba25d 0x6eb872 0x6164b1 0x73a5a6 0x7423c7
      0x7468b2 0x74740f 0x747e57 0x5ff6aa 0x70547a 0x708ab6
      /usr/bin/mongod(_ZN5mongo10abruptQuitEi+0x399) [0x8212f9]
      /lib/libc.so.6 [0x7f2459b7d040]
      /usr/bin/mongod(js_MarkStackFrame+0x191) [0x8cdbf0]
      /usr/bin/mongod(js_GC+0x3b8) [0x8ce2ac]
      /usr/bin/mongod(js_NewGCThing+0xd7) [0x8cc360]
      /usr/bin/mongod(js_NewObject+0xe4) [0x8fefe7]
      /usr/bin/mongod(JS_NewObject+0x3f) [0x88b2c0]
      /usr/bin/mongod(_ZN5mongo9Convertor10toJSObjectEPKNS_7BSONObjEb+0x8d)
      [0x5f792d]
      /usr/bin/mongod(_ZN5mongo7SMScope7setThisEPKNS_7BSONObjE+0x6a)
      [0x5f7f5a]
      /usr/bin/
      mongod(_ZN5mongo7Matcher7matchesERKNS_7BSONObjEPNS_12MatchDetailsE
      +0xf1d) [0x5ba25d]
      /usr/bin/
      mongod(_ZN5mongo19CoveredIndexMatcher7matchesERKNS_7BSONObjERKNS_7DiskLocEPNS_12MatchDetailsE
      +0xe2) [0x6eb872]
      /usr/bin/mongod(_ZN5mongo11UserQueryOp4nextEv+0x2a1) [0x6164b1]
      /usr/bin/mongod(_ZN5mongo12QueryPlanSet6Runner6nextOpERNS_7QueryOpE
      +0x56) [0x73a5a6]
      /usr/bin/mongod(_ZN5mongo12QueryPlanSet6Runner3runEv+0x6f7)
      [0x7423c7]
      /usr/bin/mongod(_ZN5mongo12QueryPlanSet5runOpERNS_7QueryOpE+0x232)
      [0x7468b2]
      /usr/bin/mongod(_ZN5mongo16MultiPlanScanner9runOpOnceERNS_7QueryOpE
      +0x5f) [0x74740f]
      /usr/bin/mongod(_ZN5mongo16MultiPlanScanner5runOpERNS_7QueryOpE+0x17)
      [0x747e57]
      /usr/bin/
      mongod(ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1
      +0x103a) [0x5ff6aa]
      /usr/bin/mongod [0x70547a]
      /usr/bin/
      mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE
      +0x14d6) [0x708ab6]

      Mon Oct 18 04:37:44 dbexit:

      On Oct 12, 12:30 pm, sirpy <had...@gmail.com> wrote:
      > I'm running mongodb 1.6.2, on ubuntu. I use the /etc/init.d/mongod
      > script to start the database. thelogfile is configured correctly in /
      > etc/mongod.conf.
      > The server seems tocrashin an environment where there are many
      > simultaneous requests.
      > There is no trace of thecrashin thelogfiles. I just see that the
      > drivers stop getting a response from the server and the mongod process
      > is gone.
      >
      > What could be the reason for thecrash, and how can I make mongolog
      > thecrashreason, or show some kind of trace?

            Assignee:
            Unassigned
            Reporter:
            Dwight Merriman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: