Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread David Chapman
On 10/3/2011 7:23 AM, Andrew Cooper wrote: > Hello, > > I am using valgrind-3.6.0.SVN-Debian, and cant work out why I am getting > Invalid read errors. > > The routine is one which is adding symbols to a std::map, indexed by > their virtual address. As multiple symbols may share the same virtual >

Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread Andrew Cooper
On 03/10/11 16:07, Tom Hughes wrote: > On 03/10/11 16:04, Andrew Cooper wrote: > >> Is there a useful location to put an FAQ/equiv stating that an apparent >> error in __GI_strlen might suggest that you are not working with NULL >> terminating strings? Google was no use which is why I emailed the l

Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread Andrew Cooper
On 03/10/11 15:52, David Chapman wrote: > On 10/3/2011 7:23 AM, Andrew Cooper wrote: >> Hello, >> >> I am using valgrind-3.6.0.SVN-Debian, and cant work out why I am getting >> Invalid read errors. >> >> The routine is one which is adding symbols to a std::map, indexed by >> their virtual address.

Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread Tom Hughes
On 03/10/11 16:04, Andrew Cooper wrote: > Is there a useful location to put an FAQ/equiv stating that an apparent > error in __GI_strlen might suggest that you are not working with NULL > terminating strings? Google was no use which is why I emailed the list. It's kind of valgrind 101 really - re

Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread Andrew Cooper
On 03/10/11 15:41, Tom Hughes wrote: > On 03/10/11 15:23, Andrew Cooper wrote: > >> Where the two errors are referring to the two strlen() calls when >> calculating newsize. >> >> Are these errors indicating a supposed bug in my code, or are they >> complaining about something in the __GI_strlen re

Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread Tom Hughes
On 03/10/11 15:23, Andrew Cooper wrote: > Where the two errors are referring to the two strlen() calls when > calculating newsize. > > Are these errors indicating a supposed bug in my code, or are they > complaining about something in the __GI_strlen replaced code. If so, > does this mean there i

[Valgrind-users] Query about Invalid reads

2011-10-03 Thread Andrew Cooper
Hello, I am using valgrind-3.6.0.SVN-Debian, and cant work out why I am getting Invalid read errors. The routine is one which is adding symbols to a std::map, indexed by their virtual address. As multiple symbols may share the same virtual address, I need to concatenate the symbol names in the a