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

find() and remove() with criteria crashes shell

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • None

    Description

      passing anything to either seems to crash the shell:

      > db.y.remove()
      > db.y.remove({})
      > db.y.remove(

      {"x":1}

      )
      Fri Jul 10 14:17:28 JS Error: SyntaxError: missing ] in index expression (shellhelp1):0
      Fri Jul 10 14:17:28 User Exception (shellhelp1) exec failed
      terminate called after throwing an instance of 'mongo::UserException'
      what(): (shellhelp1) exec failed
      Fri Jul 10 14:17:28 mongo got signal 6 (Aborted), stack trace:
      Fri Jul 10 14:17:28 0x8056acd 0xb7f3f400 0xb7f3f430 0xb7b706d0 0xb7b72098 0xb7ef38f8 0xb7ef17d5 0xb7ef1812 0xb7ef194a 0x8080e43 0x808ee1a 0x80587e8 0xb7b5b775 0x8056401
      mongo(_Z12quitAbruptlyi+0x43d) [0x8056acd]
      [0xb7f3f400]
      [0xb7f3f430]
      /lib/tls/i686/cmov/libc.so.6(gsignal+0x50) [0xb7b706d0]
      /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7b72098]
      /usr/lib/libstdc++.so.6(ZN9gnu_cxx27_verbose_terminate_handlerEv+0x158) [0xb7ef38f8]
      /usr/lib/libstdc++.so.6 [0xb7ef17d5]
      /usr/lib/libstdc++.so.6 [0xb7ef1812]
      /usr/lib/libstdc++.so.6 [0xb7ef194a]
      mongo [0x8080e43]
      mongo [0x808ee1a]
      mongo [0x80587e8]
      /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7b5b775]
      mongo [0x8056401]

      > db.y.find(

      {"x":1}

      )
      Fri Jul 10 14:18:53 JS Error: SyntaxError: missing ] in index expression (shellhelp1):0
      Fri Jul 10 14:18:53 User Exception (shellhelp1) exec failed
      terminate called after throwing an instance of 'mongo::UserException'
      what(): (shellhelp1) exec failed
      Fri Jul 10 14:18:53 mongo got signal 6 (Aborted), stack trace:
      Fri Jul 10 14:18:53 0x8056acd 0xb80d7400 0xb80d7430 0xb7d086d0 0xb7d0a098 0xb808b8f8 0xb80897d5 0xb8089812 0xb808994a 0x8080e43 0x808ee1a 0x80587e8 0xb7cf3775 0x8056401
      mongo(_Z12quitAbruptlyi+0x43d) [0x8056acd]
      [0xb80d7400]
      [0xb80d7430]
      /lib/tls/i686/cmov/libc.so.6(gsignal+0x50) [0xb7d086d0]
      /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7d0a098]
      /usr/lib/libstdc++.so.6(ZN9gnu_cxx27_verbose_terminate_handlerEv+0x158) [0xb808b8f8]
      /usr/lib/libstdc++.so.6 [0xb80897d5]
      /usr/lib/libstdc++.so.6 [0xb8089812]
      /usr/lib/libstdc++.so.6 [0xb808994a]
      mongo [0x8080e43]
      mongo [0x808ee1a]
      mongo [0x80587e8]
      /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7cf3775]
      mongo [0x8056401]

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: