Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-04-01 Thread Julian Elischer
On 3/31/11 2:31 PM, John Baldwin wrote: On Thursday, March 31, 2011 4:54:53 pm Julian Elischer wrote: http://svn.freebsd.org/viewvc/base/head/sys/kern/kern_fork.c?annotate=83366 FreeBSD has always used this process to find a free PID. SVN and CVS history does not lie. yep it's possible I'

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-04-01 Thread Svatopluk Kraus
> Here is a larger patch: > > Index: kern/kern_ktrace.c > === > --- kern/kern_ktrace.c  (revision 220190) > +++ kern/kern_ktrace.c  (working copy) > @@ -882,7 +882,8 @@ >                nfound = 0; >                LIST_FOREACH(p, &pg-

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread John Baldwin
On Thursday, March 31, 2011 4:54:53 pm Julian Elischer wrote: > On 3/31/11 11:37 AM, John Baldwin wrote: > > On Thursday, March 31, 2011 2:20:11 pm Attilio Rao wrote: > >> 2011/3/31 John Baldwin: > >>> On Thursday, March 31, 2011 12:34:31 pm Attilio Rao wrote: > 2011/3/31 John Baldwin: > >

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Julian Elischer
On 3/31/11 11:37 AM, John Baldwin wrote: On Thursday, March 31, 2011 2:20:11 pm Attilio Rao wrote: 2011/3/31 John Baldwin: On Thursday, March 31, 2011 12:34:31 pm Attilio Rao wrote: 2011/3/31 John Baldwin: On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: Hi, I've got a page

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Attilio Rao
2011/3/31 John Baldwin : > On Thursday, March 31, 2011 2:20:11 pm Attilio Rao wrote: >> 2011/3/31 John Baldwin : >> > On Thursday, March 31, 2011 12:34:31 pm Attilio Rao wrote: >> >> 2011/3/31 John Baldwin : >> >> > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: >> >> >> Hi, >> >> >>

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread John Baldwin
On Thursday, March 31, 2011 2:20:11 pm Attilio Rao wrote: > 2011/3/31 John Baldwin : > > On Thursday, March 31, 2011 12:34:31 pm Attilio Rao wrote: > >> 2011/3/31 John Baldwin : > >> > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: > >> >> Hi, > >> >> > >> >> I've got a page fault

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread John Baldwin
On Thursday, March 31, 2011 12:21:45 pm Svatopluk Kraus wrote: > On Thu, Mar 31, 2011 at 3:58 PM, John Baldwin wrote: > > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: > >> Hi, > >> > >> I've got a page fault (because of NULL td_lock) in > >> thread_lock_flags() called from sched

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Attilio Rao
2011/3/31 John Baldwin : > On Thursday, March 31, 2011 12:34:31 pm Attilio Rao wrote: >> 2011/3/31 John Baldwin : >> > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: >> >> Hi, >> >> >> >>   I've got a page fault (because of NULL td_lock) in >> >> thread_lock_flags() called from sched

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread John Baldwin
On Thursday, March 31, 2011 12:34:31 pm Attilio Rao wrote: > 2011/3/31 John Baldwin : > > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: > >> Hi, > >> > >> I've got a page fault (because of NULL td_lock) in > >> thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c >

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Attilio Rao
2011/3/31 John Baldwin : > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: >> Hi, >> >>   I've got a page fault (because of NULL td_lock) in >> thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c >> file. During process fork, new thread is linked to new process which

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Svatopluk Kraus
On Thu, Mar 31, 2011 at 3:58 PM, John Baldwin wrote: > On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: >> Hi, >> >>   I've got a page fault (because of NULL td_lock) in >> thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c >> file. During process fork, new thread is

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Svatopluk Kraus
On Thu, Mar 31, 2011 at 4:10 PM, Andriy Gapon wrote: > on 31/03/2011 14:32 Svatopluk Kraus said the following: >> Hi, >> >>   I've got a page fault (because of NULL td_lock) in >> thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c >> file. During process fork, new thread is linke

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Andriy Gapon
on 31/03/2011 14:32 Svatopluk Kraus said the following: > Hi, > > I've got a page fault (because of NULL td_lock) in > thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c > file. During process fork, new thread is linked to new process which > is linked to allproc list and both

Re: schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread John Baldwin
On Thursday, March 31, 2011 7:32:26 am Svatopluk Kraus wrote: > Hi, > > I've got a page fault (because of NULL td_lock) in > thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c > file. During process fork, new thread is linked to new process which > is linked to allproc list and

schedcpu() in /sys/kern/sched_4bsd.c calls thread_lock() on thread with un-initialized td_lock

2011-03-31 Thread Svatopluk Kraus
Hi, I've got a page fault (because of NULL td_lock) in thread_lock_flags() called from schedcpu() in /sys/kern/sched_4bsd.c file. During process fork, new thread is linked to new process which is linked to allproc list and both allproc_lock and new process lock are unlocked before sched_fork() i