[CDRIVER-1898] Crash in APM with mongoc_client_kill_cursor Created: 02/Nov/16 Updated: 07/Nov/16 Resolved: 07/Nov/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The deprecated function mongoc_client_kill_cursor does not pass database or collection name, but if an APM callback is registered for "command started", it attempts to dereference the database and collection name. This function is deprecated so just skip APM. Coverity report: Defect 99992 (STATIC_C)
|
| Comments |
| Comment by Githook User [ 07/Nov/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: If an APM "command started" callback is registered, the null database |
| Comment by Hannes Magnusson [ 02/Nov/16 ] |
|
This is in the apm which requires database name in the event. |