Actually on second thought the reason it causes a permission denied with
valgrind is probably because valgrind corrects some invalid accesses.

valgrind for strace says:
==9083== Invalid write of size 1
==9083==    at 0x407E05: (within /usr/bin/strace)
==9083==    by 0x408171: (within /usr/bin/strace)
==9083==    by 0x40CB48: (within /usr/bin/strace)
==9083==    by 0x405C0D: (within /usr/bin/strace)
==9083==    by 0x404915: (within /usr/bin/strace)
==9083==    by 0x4E4A5A5: (below main) (in /lib/libc-2.9.so)
==9083==  Address 0x519f386 is 0 bytes after a block of size 134 alloc'd
==9083==    at 0x4C278AE: malloc (vg_replace_malloc.c:207)
==9083==    by 0x408259: (within /usr/bin/strace)
==9083==    by 0x40CB82: (within /usr/bin/strace)
==9083==    by 0x40550F: (within /usr/bin/strace)
==9083==    by 0x404915: (within /usr/bin/strace)
==9083==    by 0x4E4A5A5: (below main) (in /lib/libc-2.9.so)
==9083== 
==9083== Invalid read of size 1
==9083==    at 0x4C28034: strlen (mc_replace_strmem.c:242)
==9083==    by 0x4081DE: (within /usr/bin/strace)
==9083==    by 0x40CB48: (within /usr/bin/strace)
==9083==    by 0x405C0D: (within /usr/bin/strace)
==9083==    by 0x404915: (within /usr/bin/strace)
==9083==    by 0x4E4A5A5: (below main) (in /lib/libc-2.9.so)
==9083==  Address 0x519f386 is 0 bytes after a block of size 134 alloc'd
==9083==    at 0x4C278AE: malloc (vg_replace_malloc.c:207)
==9083==    by 0x408259: (within /usr/bin/strace)
==9083==    by 0x40CB82: (within /usr/bin/strace)
==9083==    by 0x40550F: (within /usr/bin/strace)
==9083==    by 0x404915: (within /usr/bin/strace)
==9083==    by 0x4E4A5A5: (below main) (in /lib/libc-2.9.so)
==9083==

-- 
strace: malloc(): memory corruption (fast): 0x00000000026452c0
https://bugs.launchpad.net/bugs/376858
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to