[SERVER-4650] Malformed aggregation runCommand invocation crashes mongod process Created: 09/Jan/12  Updated: 29/May/12  Resolved: 13/Jan/12

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

Type: Bug Priority: Critical - P2
Reporter: Remon van Vliet Assignee: Chris Westin
Resolution: Duplicate Votes: 0
Labels: aggregation, crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Confirmed on Windows x64


Issue Links:
Depends
is depended on by SERVER-447 new aggregation framework Closed
Duplicate
duplicates SERVER-4389 Wrong $eq format crashes Closed
Operating System: Windows
Participants:

 Description   

Executing the following malformed aggregation will crash mongod on (at least) Win64 :

db.runCommand({ aggregate : "t", pipeline : [{ $project:{b:{$gt:["$c"]}}}]})

With mongod output :

unhandled windows exMon Jan 09 16:34:31 access violation

Adding another operand to the $gt resolves the issue.



 Comments   
Comment by Chris Westin [ 13/Jan/12 ]

After fixing SERVER-4389, this now produces the following error message:

{
"errmsg" : "exception: the $gt operator requires 2 operand(s)",
"code" : 16020,
"ok" : 0
}

Comment by Chris Westin [ 10/Jan/12 ]

Crash: required for 2.2, hence linked to SERVER-447.

Generated at Thu Feb 08 03:06:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.