Subject: Re: How to debug pthreads as end-user ?
To: None <current-users@netbsd.org>
From: Martin Weber <Ephaeton@gmx.net>
List: current-users
Date: 08/14/2003 23:17:05
On Thu, Aug 14, 2003 at 08:55:34PM +0200, Martin Weber wrote:
> (...)
> PS: Ignore that about phoenix. It just hung :> Er. crashed. Seems its memory
> was swapped out and it really really really didn't like swapping it back in.
> What I thought is a hung is a wonderful crash, and I have a damping fresh
> MozillaFirebird-.core lying around...

Does this help anyone ? what else ? what would help instead ?

(gdb) bt
#0  0x484d19c2 in _setcontext_u_s87 () from /usr/lib/libpthread.so.0
#1  0x484ca7b7 in pthread__switch () from /usr/lib/libpthread.so.0
Cannot access memory at address 0xd82c917c
(gdb) info threads
  18 Thread 0 ()  0x48e1b63c in nsXBLService::LoadBindingDocumentInfo ()
   from /usr/pkg/lib/phoenix/components/libgklayout.so
  17 Thread 21 ()  0x484f068f in poll () from /usr/lib/libc.so.12
  16 Thread 22 ()  0x484ca8b7 in pthread__locked_switch ()
   from /usr/lib/libpthread.so.0
  15 Thread 24 ()  0x484ca8b7 in pthread__locked_switch ()
   from /usr/lib/libpthread.so.0
  14 Thread 29 ()  0x484ca8b7 in pthread__locked_switch ()
   from /usr/lib/libpthread.so.0
  13 LWP 1  0x484f068f in poll () from /usr/lib/libc.so.12
  12 LWP 2  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  11 LWP 4  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  10 LWP 5  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  9 LWP 6  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  8 LWP 7  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  7 LWP 8  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  6 LWP 9  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  5 LWP 10  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  4 LWP 11  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  3 LWP 12  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  2 LWP 13  0x484cc427 in pthread__upcall () from /usr/lib/libpthread.so.0
  1 LWP 3  0x484d19c2 in _setcontext_u_s87 () from /usr/lib/libpthread.so.0
(gdb) 

-Martin