Details
-
Bug
-
Resolution: Duplicate
-
Blocker - P1
-
None
-
3.4.0
-
None
-
ALL
-
v3.4
-
-
Query 2017-01-23
Description
When using $bucketAuto with an $addToSet accumulator within the 'output' document can crash mongod.
An example query that can crash mongod:
db.tweets.aggregate([
|
{ $bucketAuto: {
|
groupBy: "$user.location",
|
buckets: 1,
|
output: {
|
count: { $sum: 1 },
|
location: { $addToSet: "$user.location" }
|
}
|
} }
|
])
|
This query is probably silly/not-useful because I think specifying no 'output' field would return a similar result (this was just me playing around), but I thought the mongod crash was unexpected.
When mongod crashes, the following is logged before a backtrace:
2016-12-13T12:59:10.048+0100 F - [conn2] Invalid operation at address: 0x7f1d43ba990a
|
2016-12-13T12:59:10.061+0100 F - [conn2] Got signal: 8 (Floating point exception).
|
|
|
0x7f1d443e0f91 0x7f1d443e0089 0x7f1d443e06f6 0x7f1d42153100 0x7f1d43ba990a 0x7f1d43ba91df 0x7f1d43bc8d2e 0x7f1d43bcae3a 0x7f1d43bce255 0x7f1d43ca4492 0x7f1d43a3b0a5 0x7f1d43a3b29c 0x7f1d43a3b893 0x7f1d43d3c31a 0x7f1d43d3cc3b 0x7f1d4398447b 0x7f1d439859a9 0x7f1d438feb2b 0x7f1d438ffd70 0x7f1d43f12afd 0x7f1d43b1c54d 0x7f1d4371082d 0x7f1d4371116d 0x7f1d4435ec22 0x7f1d4214bdc5 0x7f1d41e78ced
|
Attachments
Issue Links
- duplicates
-
SERVER-25535 Remove injectExpressionContext() methods from pipeline directory
-
- Closed
-
- related to
-
SERVER-27518 max accumulator with auto-buckets can cause mongod crash
-
- Closed
-