Subject: Re: Does gdb works in -current (i386)?
To: Juan RP <juan@netbsd.graffitipr.org>
From: Paul Dokas <dokas@cs.umn.edu>
List: current-users
Date: 07/08/2004 12:22:25
This is a multi-part message in MIME format.

--Multipart=_Thu__8_Jul_2004_12_22_25_-0500_lwzRSelEFuPJwQV/
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Thu, 8 Jul 2004 15:26:59 +0200 Juan RP <juan@netbsd.graffitipr.org> wrote:
> On Thu, 08 Jul 2004 08:46:44 -0400
> "Nathan J. Williams" <nathanw@wasabisystems.com> wrote:
> 
> > Is it, in fact, a threaded program? Libpthread.so doesn't appear in
> > your listing, but it looks like you left some libraries out.
> 
> Yes, it uses some pthread_* functions. I tried linking the executable with
> -lpthread, but the problem has appeared again.
> 
> My userland is from 2 days ago, and kernel from today.
> 
> Please let me know if you need more information.


I've seen this when attempting to debug mozilla on -current(*).  I found
that giving the command 'thread 1' would put gdb into a state where I could
debug thread 1.  The obvious problem is that I don't know which thread caused
the program to die.


Paul



(*) the mozilla problem that I'm still having is that mozilla-gtk as built
    on a -current laptop gets a segv on certain web pages.  There's a PR
    for this, but I can't get to www.netbsd.org to look it up.  I've attached
    back traces for all running threads to this email if anyone wants to
    help.  I can reproduce this problem 100% of the time.
-- 
Paul Dokas                                            dokas@cs.umn.edu
======================================================================
Don Juan Matus:  "an enigma wrapped in mystery wrapped in a tortilla."

--Multipart=_Thu__8_Jul_2004_12_22_25_-0500_lwzRSelEFuPJwQV/
Content-Type: application/octet-stream;
 name="thread"
Content-Disposition: attachment;
 filename="thread"
Content-Transfer-Encoding: base64

KGdkYikgdGhyZWFkIDEKW1N3aXRjaGluZyB0byB0aHJlYWQgMSAoTFdQIDMpXSMwICAweDQ4Njlm
MmJiIGluIHJlYWQgKCkKICAgZnJvbSAvdXNyL2xpYi9saWJjLnNvLjEyCgooZ2RiKSBidAojMCAg
MHg0ODY5ZjJiYiBpbiByZWFkICgpIGZyb20gL3Vzci9saWIvbGli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