Closed iotanbo closed 3 years ago
I just pushed the PR #2, thanks for the report and the bug fix.
OK, then the issue can be closed. It'd also be nice to update the PyPi repo. I don't know why valgrind
developers changed this tag, maybe it's just a bug and they will revert it. Anyway, better to be prepared for any situation. Thanks.
After some further investigations, I've just realized that the <xwhat>
tag is somewhat different than <what>
: the new tag uses sub elements such as <text>
and <leakedbytes>
as your example shows:
<error>
<unique>0x0</unique>
<tid>1</tid>
<kind>Leak_DefinitelyLost</kind>
<xwhat>
<text>248 bytes in 1 blocks are definitely lost in loss record 1 of 1</text>
<leakedbytes>248</leakedbytes>
<leakedblocks>1</leakedblocks>
</xwhat>
As a consequence, your patch fixes the crash but the error message 248 bytes in 1 blocks are definitely lost in loss record 1 of 1
is not read by ValgrindCI.
So it appears the tag <xwhat>
is used for leak errors while the tag <what>
is used for other errors. The consequence is that the 2 tags can coexist and that we need to manage both of them.
As a consequence, your patch fixes the crash but the error message
248 bytes in 1 blocks are definitely lost in loss record 1 of 1
is not read by ValgrindCI.
This has been fixed by commit 6007b185c75.
It'd also be nice to update the PyPi repo.
This is now done :smile:
Thanks for a useful tool, I've already put a star! But there is a problem:
When using valgrind-3.15.0 on Ubuntu 20.04, it looks like
xwhat
tag is used instead of (or in conjuncion with)what
that makes ValgrindCI fail with exception.Xml output excerpt:
valgrind-ci message: