Valgrind and strlen

Ben Laurie ben at links.org
Sun Apr 20 11:09:39 UTC 2014


I've been running valgrind and I get a lot of:

==20561== Invalid read of size 8
==20561==    at 0x207CC: ??? (in /libexec/ld-elf.so.1)
==20561==    by 0x14198: ??? (in /libexec/ld-elf.so.1)
==20561==    by 0x163A6: ??? (in /libexec/ld-elf.so.1)
==20561==    by 0x16CB2: ??? (in /libexec/ld-elf.so.1)
==20561==    by 0x179C6: ??? (in /libexec/ld-elf.so.1)
...

I'm pretty sure this is caused by strlen().

I read somewhere that valgrind needs to replace strlen, but ld-elf.so
doesn't have the symbol for it. Is this a bug? Or what?


More information about the freebsd-questions mailing list