<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 13, 2019, 6:04 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I chased down a buffer overwrite bug in libdl (#3746). On the powerpc and sparc<br>
the test dl05.exe crashed and on xilinx_zynq_a9_qemu I got a heap protection<br>
error on free. This was really nice however it is a mission to take that error<br>
message and figure out the block address that is the cause. A had to add a<br>
couple of additional prints to get the block address and with that I could set a<br>
watch point that triggered on the invalid write. The patch to fix the bug was<br>
the easy part.<br>
<br>
Would a bad block variable set by the error handler that can be inspected by a<br>
debugger or exit handler be useful?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I would like to see the ability to register a handler for various heap issues. And then pass all the info you have to it.</div><div dir="auto"><br></div><div dir="auto">--joel</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Chris<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div></div>