tech-kern archive

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

Re: crash in pipe_create()



On Fri, Feb 06, 2009 at 10:41:11AM +0900, enami tsugutomo wrote:

> > It happened again. This time I got a crashdump:
> > 
> > #10 0xc0567b6f in panic (
> >     fmt=0xc08699dc "kernel %sassertion \"%s\" failed: file \"%s\", line %d")
> >     at ../../../../kern/subr_prf.c:274
> > #11 0xc070df6b in __kernassert (t=0xc082933a "diagnostic ",
> >     f=0xc082931d "../../../../kern/subr_pool.c", l=454,
> >     e=0xc0829810 "ph == NULL || ((pp->pr_roflags & PR_PHINPAGE) != 0) || 
> > ((char
> > *)ph->ph_page <= (char *)v && (char *)v < (char *)ph->ph_page + 
> > pp->pr_alloc->
> > pa
> > _pagesz)") at ../../../../../../lib/libkern/__assert.c:50
> 
> If your kernel is configured with DEBUG both time this panic occurred,
> then following change may help.  (not tested though).  If there is
> allocation of size 4092 bytes via kmem_alloc and it is free'ed,
> something wrong might happen later.

In case it is not obvious, this bug also explains the KVA exhaustion problem
that caused uvm_km_alloc() to try and reclaim VA.

Andrew


Home | Main Index | Thread Index | Old Index