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

clang compiled mongo shell crashes on exit with a stack trace in v8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.9, 2.5.4
    • Component/s: Shell
    • Labels:
    • Environment:
      So far, only observed on OS X using XCode 5 (which is clang).
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      A mongo shell built with --dbg=on --opt=on dies with the following stack trace on exit:

      ./mongo ./jstests/and.js
      MongoDB shell version: 2.5.3-pre-
      connecting to: test
      XXX ACM printing on last line of js file
      mongo got signal 11 (Segmentation fault: 11), stack trace:
      0x10c560640 0x10c3eaacc 0x7fff8c13f90a 0x181d05f11249 0x10c6a305f 0x10c7f5b96 0x10c7f59be 0x10c4e8164 0x10c4e803f 0x10c3ef9e6 0x10c3f0abf 0x7fff8d8e07e1
       0   mongo                               0x000000010c560640 _ZN5mongo15printStackTraceERSo + 64
       1   mongo                               0x000000010c3eaacc _Z12quitAbruptlyi + 348
       2   libsystem_c.dylib                   0x00007fff8c13f90a _sigtramp + 26
       3   ???                                 0x0000181d05f11249 0x0 + 26512932803145
       4   mongo                               0x000000010c6a305f _ZN2v88internal15DeoptimizerDataD2Ev + 143
       5   mongo                               0x000000010c7f5b96 _ZN2v88internal7Isolate6DeinitEv + 134
       6   mongo                               0x000000010c7f59be _ZN2v88internal7Isolate8TearDownEv + 110
       7   mongo                               0x000000010c4e8164 _ZN5mongo7V8ScopeD2Ev + 244
       8   mongo                               0x000000010c4e803f _ZN5mongo7V8ScopeD0Ev + 15
       9   mongo                               0x000000010c3ef9e6 _Z5_mainiPPcS0_ + 13142
       10  mongo                               0x000000010c3f0abf main + 95
       11  libdyld.dylib                       0x00007fff8d8e07e1 start + 0
      

      The 'XXX' line was added to the test as the last print in the function to confirm that this was after evaluating the file.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              acm Andrew Morrow
              Reporter:
              acm Andrew Morrow
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: