Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 12:09:38 +0100
From:      Ben Laurie <ben@links.org>
To:        freebsd-questions@freebsd.org
Subject:   Valgrind and strlen
Message-ID:  <CAG5KPzwTzvOOnQyXOF9eizNBCh_Ujxh33GnBHP=jNtdJSeG=7w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG5KPzwTzvOOnQyXOF9eizNBCh_Ujxh33GnBHP=jNtdJSeG=7w>