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

Null pointer dereference segfault in mongo shell

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1.2
    • 2.1.1
    • Shell
    • None
    • ALL

    Description

      Reproduction, by asya:

      $ ./mongo
      > <ctl-s>
      hit down arrow
      (i-search)`': Sun Jun 10 14:54:24 mongo got signal 11 (Segmentation fault: 11), stack trace

      Coverity output:

      Null pointer dereferences
      A null pointer dereference will occur.
      Dereference of an explicit null value
       
      Defect 10069 (STATIC_C)
        Checker FORWARD_NULL (subcategory deref_constant_null)
        File /src/mongo/shell/linenoise.cpp
        Function InputBuffer::incrementalHistorySearch(PromptBase &, int)
          /src/mongo/shell/linenoise.cpp, line: 1640
          Assigning: "activeHistoryLine" = "NULL".
              UChar32* activeHistoryLine = 0;

      Attachments

        Activity

          People

            tad Tad Marshall
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: