Comment 2 for bug 1567219

Revision history for this message
In , Paweł Sikora (pluto-pld-linux) wrote :

for compressed debuginfo valgrind doesn't display source/line info.

Reproducible: Always

Steps to Reproduce:
$ cat t.cpp
int* p = 0;
int main()
{
        *p = 0;
}

$ gcc t.cpp -gdwarf-4 -g2 -o t

$ valgrind ./t
==10551== Invalid write of size 4
==10551== at 0x4004F7: main (t.cpp:4)

$ objcopy --compress-debug-sections ./t

$ valgrind ./t
==10568== Invalid write of size 4
==10568== at 0x4004F7: main (in /home/users/pawels/bugs/t)