[SERVER-145] find() and remove() with criteria crashes shell Created: 10/Jul/09  Updated: 12/Jul/16  Resolved: 10/Jul/09

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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]


Generated at Thu Feb 08 02:53:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.