<div dir="ltr">Hello,<br><br>In the past week I had several bugs that while gdb pointed to a place X, the actual place was several instructions prior to that position.<br><br>For example the following error message I had to an off by one bug:<br>
*** glibc detected *** ./test_parser: malloc(): memory corruption (fast): 0x0000000001ddad50 ***<br><br>The instruction set that I was at, when glibc raised this exception was a lot further then the original position of the function that caused it have been executed.<br>
Only by using valgrind, that I could find the exact location and figure out, that it was another function that had the problem.<br><br>How does the modern memory management system is working then, that it takes so much time for the problem to surface ?<br>
<br>Thanks,<br>Ido<br>
</div>