search for: p_lock

Displaying 4 results from an estimated 4 matches for "p_lock".

Did you mean: g_lock
2007 May 02
2
Deadlock when child process is forking?
...es. It is calling fork(), which causes it to end up at line 330 in fork.c: > 328 if (p->p_dtrace_helpers != NULL) { > 329 ASSERT(dtrace_helpers_fork != NULL); > 330 (*dtrace_helpers_fork)(p, cp); > 331 } > 332 > 333 mutex_enter(&p->p_lock); > 334 p->p_flag &= ~SFORKING; > 335 sprunlock(p); As you can see, the parent is sprlock''d. The call to dtrace_helpers_fork() ends up at line 13526 in dtrace.c: > 13526 mutex_enter(&dtrace_lock); > 13527 ASSERT(from->p_dtrace_helpers != NULL);...
2003 Jun 30
0
sysctl_out_proc() race in stable w/ patch
...=========================================================== RCS file: /cvs/src/sys/kern/kern_exit.c,v retrieving revision 1.12 diff -u -r1.12 kern_exit.c --- kern/kern_exit.c 30 Jun 2003 19:50:31 -0000 1.12 +++ kern/kern_exit.c 30 Jun 2003 21:44:32 -0000 @@ -451,7 +451,19 @@ ... - KASSERT(p->p_lock == 0, ("p_lock not 0! %p", p)); + + /* + * Other kernel threads may be in the middle of + * accessing the proc. For example, kern/kern_proc.c + * could be blocked writing proc data to a sysctl. + * At the moment, if this occurs, we are not woken + * up and rely on a one...
2003 Apr 08
0
Panic dereferencing p->p_leader during exit1()
...usec = 0}, it_value = {tv_sec = 0, tv_usec = 0}}, p_runtime = 2935395, p_uu = 0, p_su = 549755813891, p_iu = 0, p_uticks = 884763262976, p_sticks = 1095216660492, p_iticks = 549755813888, p_traceflag = 0, p_tracep = 0xa8, p_siglist = { __bits = {0, 0, 0, 0}}, p_textvp = 0xe18f5e40, p_lock = 0 '\000', p_oncpu = 0 '\000', p_lastcpu = 0 '\000', p_rqindex = 13 '\r', p_locks = -377, p_simple_locks = 0, p_stops = 0, p_stype = 0, p_step = 0 '\000', p_pfsflags = 0 '\000', p_pad3 = "\000", p_retval = {0, 1187677156}, p_s...
2006 Jun 03
8
dtrace causing sigtrap?
Just to let people know what my big picture is, I''m trying to write a script that will let me run a program, and name a progeny of that program that I want to debug. My script should find the first occurrence of that progeny, and run it until it finishes initializing the runtime linker, but stop it before it runs any shared library startup routines. (Failing that, I''d be okay