[CDRIVER-899] Segfault in /Cursor/get_host Created: 01/Oct/15  Updated: 03/May/17  Resolved: 24/Oct/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.2-beta1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Kyle Suarez Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-963 Document object-destruction order Closed

 Description   

There are intermittent errors on Windows when running the test /Cursor/get_host:

[2015/09/30 18:09:50.008] Begin /Cursor/get_host
[2015/09/30 18:09:50.016] sh: line 24:  4672 Segmentation fault      ./Debug/test-libmongoc.exe -d -f -p



 Comments   
Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: Merge branch 'r1.2'

Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-899 segfault in test_get_host

Must destroy cursor before destroying client, not after.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5a37ac0a4b72de66f86fae9e5a6a233e3c99b0cb

Comment by Githook User [ 24/Oct/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-899 segfault in test_get_host

Must destroy cursor before destroying client, not after.
Branch: r1.2
https://github.com/mongodb/mongo-c-driver/commit/5a37ac0a4b72de66f86fae9e5a6a233e3c99b0cb

Generated at Wed Feb 07 21:10:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.