|
From: Daniel V. <m4...@ma...> - 2005-12-16 17:40:10
|
Hello Dennis, On Friday, December 16, 2005, at 04:13PM, Dennis Lubert <pla...@pr...> wrote: >Am Freitag, den 16.12.2005, 13:58 +0100 schrieb Daniel Vollmer: >> I've been using valgrind to check my image compression routine, and reduced the reported problem to the following code, compiled with gcc 4.0.1-4ubuntu9 using "gcc -g -Wall vt.c". >> I am not even sure whether valgrind can possibly report the right thing, but here goes: >Usually it is correct even on bit-level. maybe the shift&addition is not >correctly recognized as defining the bit (well, even the shift should >make one bit valid). As valgrind does not know anything about >programming languages logic, we would need to look at the generated >assembler code. [more useful explanation snipped] Yes, you are right. I've reported the bug as https://bugs.kde.org/show_bug.cgi?id=118466 and it contains a further simplified testcase as well as the generated assembly code. In spite of me trying, I was unable to find (or rather understand) the relevant portion of the source-code for memcheck to implement a fix myself. Thanks, Daniel. |