I digged a little bit at your problem (using a valgrind patched with gdbserver): I put a break at line 83, then searched the leaks and examined the value of m14. Then did "next", and again searched leaks and examined value of m14. And then the same for the next line.
You will see then that the realloc at line 85 (and following) are all failing. I suspect the realloc fails due to Valgrind malloc replacement being unfriendly to "realloc" usage pattern. As the realloc at line 85 fails, the "m14" block last allocated is at line 84. The m14 value is then replaced by NULL at line 85 (which means that the free(m14) does not free anything). I suggest you look at the following bug (and attached patch): https://bugs.kde.org/show_bug.cgi?id=250101 Note that the problem I encountered was not with realloc, but with "free" followed by "malloc" of a bigger block. But I suppose this matches pretty well your problem. And of course, feel free to try the gdbserver patch: https://bugs.kde.org/show_bug.cgi?id=214909 (any feedback, in particular on the user manual, will be welcome.). Philippe ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
