Subject: Re: KASSERT failure when debugging threaded programs
To: Antti Kantee <pooka@cs.hut.fi>
From: Nick Hudson <nick.hudson@dsl.pipex.com>
List: current-users
Date: 11/07/2007 12:08:56
On Wednesday 07 November 2007 11:35:05 Antti Kantee wrote:
> On Fri Nov 02 2007 at 01:12:39 +0000, Andrew Doran wrote:
> > The panic you're seeing is due to kern/36183, right. The underlying
> > problem is that ptrace needs work to debug threaded programs. We can
> > either make gdb use /proc and improve procfs, or figure out how to make
> > ptrace work well with threads. I don't know of a thread-aware ptrace
> > implementation but maybe FreeBSD or Darwin have one.
>
> This is annoying me bad enough (actually outright p*ssing me off!), so
> I'll volunteer to write the procfs bits if someone just tells on a general
> level what's needed.

There's generic procfs support for gdb in gnu/dist/gdb6/gdb/procfs.c. I have 
no idea what we need to add to our procfs to allow this to work.

> That special someone could also handle the gdb side. 

I think this is the easy bit.

Nick