|
From: Tom H. <to...@co...> - 2005-03-15 17:39:56
|
In message <111...@ph...>
Robert Walsh <rj...@du...> wrote:
> > Valgrind will periodically open /proc/self/maps to do some sanity
> > checking. If the thread changes its id so that it can't open its own
> > /proc/self/maps, then this will fail. You can use --sanity-level=0 to
> > turn off the sanity checking. I guess the proper fix would be for
> > Valgrind to keep /proc/self/maps open from the start in case it gets
> > into a state where it can't open it later (chroot would also cause this).
>
> You often can't seek on stuff in /proc - is maps any different?
So open it once at the start, leave that descriptor along (positioned
at start of file) and dup it each time you want to read the file ;-)
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|