[SERVER-1046] Segfault in C++ driver when using boost::program_options in our own project Created: 24/Apr/10 Updated: 24/Apr/10 Resolved: 24/Apr/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | 1.4.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Leon Mergen | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux |
||
| Attachments: |
|
| Participants: |
| Description |
|
We are in the process of upgrading our MongoDB clients from 1.0.0 to 1.4.1, and started getting segfaults when using the ScopedDbConnection. Eventually I found out it had to do with boost::program_options ,- see attachment for reproducible test case. Output on my machine: $ ./test 172.16.1.12,172.16.1.15 (gdb) thread apply all bt Thread 2 (process 8803): Thread 1 (process 8809): |
| Comments |
| Comment by Leon Mergen [ 24/Apr/10 ] |
|
Not a bug: issue was that we were using Boost 1.40, and as shown in the backtrace, the segfault was caused by tls_destructor () ,- the problem is solved when upgrading to the version Mongo was compiled against, 1.41 |