|
From: Tom H. <th...@cy...> - 2004-07-11 16:58:18
|
In message <Pin...@he...>
Nicholas Nethercote <nj...@ca...> wrote:
> On Sun, 11 Jul 2004, Tom Hughes wrote:
>
> > I can work around that by marking the segments which are not mapped so
> > that I know I need to pad them, but it turns out the VG_(brk) doesn't
> > update the segment list which it gives out memory and I've far been
> > unable to make it do so as it just seems to either segfault or get into
> > an infinite loop.
>
> Hmm, sounds like there's some interaction here with my embryonic layout
> changes... for example, I've got rid of VG_(brk) by merging Valgrind's
> heap and its mmap-segment, and I want to merge that with the shadow memory
> area...
Probably. It turns out that the reason for the infinite loop if you
try and make VG_(brk) register the memory it allocates with the segment
list is that the segment list code tries to allocate a new skip list
node which winds up calling VG_(brk) again to get memory and hence you
wind up in an infinite loop.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|