|
From: Tom H. <th...@cy...> - 2004-07-15 22:44:06
|
In message <Pin...@he...>
Nicholas Nethercote <nj...@ca...> wrote:
> That would seem to be enough. But in vg_signals.c, there's a bit in the
> SEGV handler with this comment:
>
> /* If there's a fault within the shadow memory range, and it
> is a permissions fault, then it means that the client is
> using some memory which had not previously been used.
> This catches those faults, makes the memory accessible,
> and calls the tool to initialize that page.
> */
>
> This calls VG_(init_shadow_range)(), which calls the init_shadow_page
> trackable event, telling the tool to make itself a shadow page. But none
> of the tools actually provide the necessary init_shadow_page callback.
Somebody did manage to reach that code however, although I'm not
quite sure how. See bug 80932 where I was also trying to work out
what that bit in the SEGV handler was for.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|