[CXX-458] Crashed caused by genOID Created: 05/Jan/15 Updated: 06/Jan/15 Resolved: 06/Jan/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | BSON |
| Affects Version/s: | legacy-1.0.0-rc3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | tianchaohaohan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Centos 7.0 64bit test: /usr/local/include/boost/smart_ptr/scoped_ptr.hpp:99: T* boost::scoped_ptr<T>::operator->() const [with T = mongo::AtomicWord<unsigned int>]: Assertion `px != 0' failed. |
| Comments |
| Comment by tianchaohaohan [ 06/Jan/15 ] |
|
Create a new dev machine with centos 7 64bit. gcc 4.8.2, boost 1.56. mongo driver build with --c++11 flag. No crash happened. |
| Comment by Andrew Morrow (Inactive) [ 05/Jan/15 ] |
|
Hi - That crash looks pretty weird. A few comments:
Also, in general, rather than opening tickets, you might try emailing the mongodb-users group (https://groups.google.com/forum/#!forum/mongodb-user) with questions. We will work with you there to determine whether the issue is a real bug and then we can open JIRA issues as needed. Hope this helps. Thanks, |
| Comment by tianchaohaohan [ 05/Jan/15 ] |
|
Another crash happened after enable the call to mongo::client::initialize, here is the dump details: binary and core dump files are attached compile options for mongo c++ driver: scons --ssl --sharedclient install compile options for test binary: |
| Comment by Andrew Morrow (Inactive) [ 05/Jan/15 ] |
|
Hi - You must call mongo::client::initialize before using any functions of the driver. Your attached test code has such a call, but it is commented out on line 32. I can reproduce your crash when running the code as written, but when I re-enable the call to mongo::client::initialize the code works correctly. Please let me know if re-enabling the call to initialize resolves this issue for you. Thanks, |