-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
None
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
To reproduce:
- start a long running op from a mongo shell connected to mongod
- try to exit the shell (ctrl-c)
- when you get a "do you want to kill the current ops" dialog from the shell, stop mongod
- tell the shell yes you want to kill the ops
MongoDB shell version: 2.1.1-pre-
connecting to: test
> db.c.find( {$where:function(){while(1){;}}} )
^C
do you want to kill the current op(s) on the server? (y/n): y
Fri Feb 17 20:20:05 DBClientCursor::init call() failed
Fri Feb 17 20:20:05 terminate() called in shell, printing stack:
0x10bcf1b35 0x10bcce6f0 0x7fff8abff001 0x7fff8abff05c 0x7fff8ac00152 0x10bdc5b47 0x10bdc5c3a 0x10be04437 0x10bdf5ab1 0x10bccf5e7 0x10bcce236 0x7fff8b702cfa 0x241d004ec 0x10bdd6139 0x10bdd8443 0x10bddecc7 0x10bddf880 0x10bddfeb4 0x10bdfbd47 0x10bdfc18d
0 mongo 0x000000010bcf1b35 _ZN5mongo15printStackTraceERSo + 37
1 mongo 0x000000010bcce6f0 _Z11myterminatev + 176
2 libc++abi.dylib 0x00007fff8abff001 _Z19safe_handler_callerPFvvE + 11
3 libc++abi.dylib 0x00007fff8abff05c __cxa_bad_typeid + 0
4 libc++abi.dylib 0x00007fff8ac00152 _Z23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception + 0
5 mongo 0x000000010bdc5b47 _ZN5mongo9uassertedEiPKc + 599
6 mongo 0x000000010bdc5c3a _ZN5mongo9uassertedEiRKSs + 42
7 mongo 0x000000010be04437 _ZN5mongo17DBClientInterface5findNERSt6vectorINS_7BSONObjESaIS2_EERKSsNS_5QueryEiiPKS2_i + 801
8 mongo 0x000000010bdf5ab1 _ZN5mongo17DBClientInterface7findOneERKSsRKNS_5QueryEPKNS_7BSONObjEi + 273
9 mongo 0x000000010bccf5e7 _Z7killOpsv + 2551
10 mongo 0x000000010bcce236 _Z10quitNicelyi + 262
11 libsystem_c.dylib 0x00007fff8b702cfa _sigtramp + 26
12 ??? 0x0000000241d004ec 0x0 + 9694086380
13 mongo 0x000000010bdd6139 _ZN5mongo6Socket11unsafe_recvEPci + 41
14 mongo 0x000000010bdd8443 _ZN5mongo6Socket4recvEPci + 59
15 mongo 0x000000010bddecc7 _ZN5mongo13MessagingPort4recvERNS_7MessageE + 117
16 mongo 0x000000010bddf880 _ZN5mongo13MessagingPort4recvERKNS_7MessageERS1_ + 42
17 mongo 0x000000010bddfeb4 _ZN5mongo13MessagingPort4callERNS_7MessageES2_ + 78
18 mongo 0x000000010bdfbd47 _ZN5mongo18DBClientConnection4callERNS_7MessageES2_bPSs + 79
19 mongo 0x000000010bdfc18d _ZThn72_N5mongo18DBClientConnection4callERNS_7MessageES2_bPSs + 93