DragonFly bugs List (threaded) for 2009-01
DragonFly BSD
DragonFly bugs List (threaded) for 2009-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue1137] Process stuck with an empty STATE


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Wed, 21 Jan 2009 15:17:01 +0900

On Tue, Jan 20, 2009 at 07:07:22PM -0800, Matthew Dillon wrote:
> 
> :941f5de0 (around Oct. 10), but I can't find a relavant fix on
> :DragonFly_RELEASE_2_0 branch.  I have another box running -DEVELOPMENT,
> :but its uptime is probably not long enough to reproduce it.
> :
> :$ top -n -U qhwt 4
> :load averages:  0.00,  0.00,  0.00  up 100+00:41:22    11:01:26
> :78 processes:  78 running
> :
> :Mem: 116M Active, 210M Inact, 138M Wired, 16M Cache, 59M Buf, 1220K Free
> :Swap: 2048M Total, 15M Used, 2033M Free
> :
> :
> :  PID USERNAME  PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
> :63039 qhwt      179   0  2084K  1136K RUN      0:00 1161.00% 56.69% top
> :18535 qhwt      159   0     0K     4K          0:00  0.00%  3.91% git
> :18527 qhwt      159   0     0K     4K          0:00  0.00%  3.91% git
> :18517 qhwt      157   0     0K     4K          0:00  0.00%  1.95% git
> :
> :I played with kgdb a bit and found that these 3 processes are on zombproc
> :but with p_stat==SACTIVE and p_lock==1.  I have no idea how it happened.
> 
>     This should hopefully be fixed with this commit I made in December:
> 
> commit 2e425d87dc98885c44799de0327ab0013a7c34d6
> Author: Matthew Dillon <dillon@apollo.backplane.com>
> Date:   Thu Dec 18 20:20:15 2008 -0800
> 
>     Close a possible bug where the p_lock for a new process inherits a
>     non-zero value from its parent on fork(), preventing the process
>     from being able to exit later on.

Ok, I'll try this on top of R2.0, or the pre-release of R2.2,
depending on when the new branch becomes available.

Thanks.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]