[CDRIVER-801] Reopen - Segmentation fault during driver initialization Created: 12/Aug/15 Updated: 03/May/17 Resolved: 12/Aug/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.1.6, 1.1.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jan Slesinger | Assignee: | Hannes Magnusson |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | crash | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux czcholsint755.prg-dc.dhl.com 2.6.32-504.12.2.el6.x86_64 #1 SMP Sun Feb 1 12:14:02 EST 2015 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux Server release 6.3 (Santiago) gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) MongoDB 3.0.3, WT |
||
| Issue Links: |
|
||||||||
| Description |
|
Hello, This simple C program
compiled as:
throws segmentation fault when run under Valgrind:
Any idea what is wrong? |
| Comments |
| Comment by Jan Slesinger [ 12/Aug/15 ] | ||||||||||||||||||||||
|
Hello Hannes, Sorry for late response, I was on vacation. I could not reopen this issue so I cloned it. Original issue is Version of Valgrind used is: valgrind-3.6.0 I have also tried the same excercise in Ubuntu 14.04 with valgrind-3.10.0 with exactly the same results. It runs with no errors without valgrind. The thing is I get memory problems in my application later which I wanted to resolve using valgrind. I have isoleted the problem step by step to the simple C program that I have attached earlier. What platform do you use for builing so that it runs correctly for you? I will try to get there, too. Here is my gdb session
If I run the program with empty main() it returns Thank you |