|
From: Tom H. <th...@cy...> - 2004-03-22 19:48:31
|
In message <107...@ix...>
Jeremy Fitzhardinge <je...@go...> wrote:
> On Thu, 2004-03-18 at 01:19, Nicholas Nethercote wrote:
> > I only partly understand this thread, but reading it I'm thinking: this
> > all sounds very complicated for something that only(?) affects FC2... can
> > we avoid doing anything, or do something simple? It makes me
> > uncomfortable every time we have to build in some special handling for a
> > particular version of a library or whatever. Just an observation.
>
> No, it isn't library-specific. It's actually a new(ish) kernel
> interface, which libraries are starting to use. Ultimately it's
> cosmetic though; it's about showing the right function when we're
> showing the backtrace of a thread in a syscall.
>
> This patch works for me with --pointercheck=no. Unfortunately, just
> copying the linux-gate.so into the client address space isn't enough.
Your patch also doesn't help in my case, because my kernel isn't
actually supplying a sysinfo page and I was trying to get valgrind
to make one up so that the special unwind hack would kick in.
I've come up with a simpler solution for my problem now. I've added
a redirect from _dl_sysinfo_int80 to the system call routine in
valgrind's trampoline page, which valgrind will then recognise and
do it's special unwind trick on.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|