[CDRIVER-493] DEBUG: cluster: Client initialized in direct mode. Segmentation fault (core dumped) Created: 28/Dec/14  Updated: 11/Sep/19  Resolved: 21/May/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.2.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ranjeet Kuruvilla [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.10


Attachments: File DbWrapper.cc    

 Description   

I can not connect to the mongodb system via c driver.

> ./unitTests/unitTest_DbWrapper
[2014-12-28T19:35:58.791.758Z] Enter unitTest_DbWrapper
2014/12/28 19:35:58.0529: [ 5684]: DEBUG: cluster: Client initialized in direct mode.
Segmentation fault (core dumped)

My code is attached. My guess is that the driver does not connect to the database and therefore the driver can not read or write.



 Comments   
Comment by Mira Carey [ 25/Feb/15 ]

Which version of libmongoc are you running? Also, can you run your test's under a debugger like gdb or lldb? Without an obvious entry point (I don't see a main() in your DbWrapper.cc), it's difficult for me to guess what code path you've taken to get to that segfault.

Regards,
Jason

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