Re: How best to debug locking/scheduler problems

2009-06-18 Thread John Baldwin
On Wednesday 17 June 2009 6:11:42 pm Mel Flynn wrote: > On Wednesday 17 June 2009 13:17:37 John Baldwin wrote: > > These are the key frames. It looks like uipc_peeraddr() tries to lock two > > unp locks w/o any protection from the global unp linkage lock. I've > > changed it to use the same locki

Re: How best to debug locking/scheduler problems

2009-06-18 Thread John Baldwin
On Wednesday 17 June 2009 6:11:42 pm Mel Flynn wrote: > On Wednesday 17 June 2009 13:17:37 John Baldwin wrote: > > On Wednesday 17 June 2009 3:52:54 pm Mel Flynn wrote: > > > On Wednesday 17 June 2009 04:15:26 John Baldwin wrote: > > > > On Tuesday 16 June 2009 7:01:45 pm Mel Flynn wrote: > > > > >

Re: How best to debug locking/scheduler problems

2009-06-17 Thread Robert Watson
On Wed, 17 Jun 2009, John Baldwin wrote: These are the key frames. It looks like uipc_peeraddr() tries to lock two unp locks w/o any protection from the global unp linkage lock. I've changed it to use the same locking as uipc_accept() where it first grabs a read lock on the linkage lock and

Re: How best to debug locking/scheduler problems

2009-06-17 Thread Mel Flynn
On Wednesday 17 June 2009 13:17:37 John Baldwin wrote: > On Wednesday 17 June 2009 3:52:54 pm Mel Flynn wrote: > > On Wednesday 17 June 2009 04:15:26 John Baldwin wrote: > > > On Tuesday 16 June 2009 7:01:45 pm Mel Flynn wrote: > > > > On Tuesday 16 June 2009 11:02:42 John Baldwin wrote: > > > > >

Re: How best to debug locking/scheduler problems

2009-06-17 Thread John Baldwin
On Wednesday 17 June 2009 3:52:54 pm Mel Flynn wrote: > On Wednesday 17 June 2009 04:15:26 John Baldwin wrote: > > On Tuesday 16 June 2009 7:01:45 pm Mel Flynn wrote: > > > On Tuesday 16 June 2009 11:02:42 John Baldwin wrote: > > > > On Tuesday 16 June 2009 1:52:23 pm Mel Flynn wrote: > > > > > Hi

Re: How best to debug locking/scheduler problems

2009-06-17 Thread Mel Flynn
On Wednesday 17 June 2009 04:15:26 John Baldwin wrote: > On Tuesday 16 June 2009 7:01:45 pm Mel Flynn wrote: > > On Tuesday 16 June 2009 11:02:42 John Baldwin wrote: > > > On Tuesday 16 June 2009 1:52:23 pm Mel Flynn wrote: > > > > Hi John, > > > > > > > > On Tuesday 16 June 2009 04:19:57 John Bald

Re: How best to debug locking/scheduler problems

2009-06-17 Thread John Baldwin
On Tuesday 16 June 2009 7:01:45 pm Mel Flynn wrote: > On Tuesday 16 June 2009 11:02:42 John Baldwin wrote: > > On Tuesday 16 June 2009 1:52:23 pm Mel Flynn wrote: > > > Hi John, > > > > > > On Tuesday 16 June 2009 04:19:57 John Baldwin wrote: > > > > On Monday 15 June 2009 5:53:05 pm Mel Flynn wrot

Re: How best to debug locking/scheduler problems

2009-06-16 Thread Mel Flynn
On Tuesday 16 June 2009 11:02:42 John Baldwin wrote: > On Tuesday 16 June 2009 1:52:23 pm Mel Flynn wrote: > > Hi John, > > > > On Tuesday 16 June 2009 04:19:57 John Baldwin wrote: > > > On Monday 15 June 2009 5:53:05 pm Mel Flynn wrote: > > > > PIDTID COMM TDNAME KSTACK

Re: How best to debug locking/scheduler problems

2009-06-16 Thread John Baldwin
On Tuesday 16 June 2009 1:52:23 pm Mel Flynn wrote: > Hi John, > > On Tuesday 16 June 2009 04:19:57 John Baldwin wrote: > > On Monday 15 June 2009 5:53:05 pm Mel Flynn wrote: > > > > PIDTID COMM TDNAME KSTACK > > > 4283 100215 kdeinit4 -mi_swit

Re: How best to debug locking/scheduler problems

2009-06-16 Thread Mel Flynn
Hi John, On Tuesday 16 June 2009 04:19:57 John Baldwin wrote: > On Monday 15 June 2009 5:53:05 pm Mel Flynn wrote: > > PIDTID COMM TDNAME KSTACK > > 4283 100215 kdeinit4 -mi_switch turnstile_wait > > _mtx_lock_sleep uipc_peeraddr kern_getpeerna

Re: How best to debug locking/scheduler problems

2009-06-16 Thread John Baldwin
On Monday 15 June 2009 5:53:05 pm Mel Flynn wrote: > Hi, > > I'm trying to get to the bottom of a bug with getpeername() and certain kde4 > applications which is probably as low-level as the libthr and the scheduler. > > From browsing various related files in sys/kern it seems KTR is a good bet

Re: How best to debug locking/scheduler problems

2009-06-16 Thread Marius NĂ¼nnerich
On Mon, Jun 15, 2009 at 23:53, Mel Flynn wrote: > Hi, > > I'm trying to get to the bottom of a bug with getpeername() and certain kde4 > applications which is probably as low-level as the libthr and the scheduler. > > From browsing various related files in sys/kern it seems KTR is a good bet to > g

How best to debug locking/scheduler problems

2009-06-15 Thread Mel Flynn
Hi, I'm trying to get to the bottom of a bug with getpeername() and certain kde4 applications which is probably as low-level as the libthr and the scheduler. From browsing various related files in sys/kern it seems KTR is a good bet to get the information needed, yet it isn't really well suppor