-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
ALL
-
Query 2018-02-12
-
0
The simplest repro is running the following agg explain:
coll.explain('executionStats').aggregate([{$project: {_id: 1}}, {$sort: {_id: 1}}]);
This will trigger an access violation when the explain path attempts to serialize the pipeline after executing the plan, which was disposed by the DocumentSourceSort stage. In the case above, the projection stage releases a unique_ptr when it's disposed, however that same pointer is de-referenced in its serialize method.