Re2: panic: cpu_switch: not SRUN

David P. Reese, Jr. daver at gomerbud.com
Tue Sep 16 00:45:22 PDT 2003


On Mon, Sep 15, 2003 at 07:34:18PM -0700, Matthew Dillon wrote:
> :I've been getting these panics under moderate load,
> :
> :panic: cpu_switch: not SRUN
> :-- 
> :   David P. Reese, Jr.                                     daver at xxxxxxxxxxxx
> 
>     Here.  Before you waste time trying to get a core dump, please try this
>     patch.  I believe what is happening is that a user program is calling
>     exit1() and an interrupt is preempting it just after exit1() sets
>     p_stat to SZOMB.  This is perfectly legal to do and the DIAGNOSTIC code
>     is improperly panicing.  
> 
>     That's my guess, anyway.  If the patch solves the problem then we will
>     know that is what it was.
> 						-Matt

I'm a good way through buildworld with the patch.  Looks like this solves
the problem.  Thanks!

-- 
   David P. Reese, Jr.                                     daver at xxxxxxxxxxxx
                                               http://www.gomerbud.com/daver/





More information about the Bugs mailing list