Re: armv7 kernel panic on swap exhaustion

bob prohaska <[email protected]> Mon, 2 Mar 2026 06:28:43 -0800
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On Sun, Mar 01, 2026 at 08:13:24PM -0800, Mark Millard wrote:
> On 3/1/26 18:15, bob prohaska wrote:
> > 
> > A Pi2B v1.1 (armv7) has paniced while running a -j3 buildworld.
> > 
> > I've put details at
> > http://www.zefox.net/~fbsd/rpi2/panic_on_swap_exhaustion/
> > 
> > This particular machine has been patched for the 
> > "panic on shutdown" problem, and that patch seemed
> > to work: shutdown panics were reproducible and the
> > patch made them go away completely. 
> > 
> > The panic reported in this message has never been 
> > seen before; whether it touches on the same issue
> > or is completely unrelated I've no idea. There are
> > no behaviors suggesting a faulty hard disk but some
> > of the console messages  might suggest otherwise.
> 
> For:
> 
> . . .
> (da0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:10,0 (ID CRC or ECC
> error)
> . . .
> (da0:umass-sim0:0:0:0): Error 5, Retries exhausted=32768)]error = 5
> . . .
> 
> my understanding is:
> 
> ) "SCSI sense: MEDIUM ERROR asc:10,0 (ID CRC or ECC error)" indicates
> that the data fails the CRC/ECC data check where it was trying to read:
> Bad data.
> 
> ) "Error 5, Retries exhausted" indicates repeated attempts were made and
> they all failed for the location in question.
> 
> > The disk is far from new and has been well-used.
> 
> My guess is that it is time to replace it.

I certainly don't disagree 8-)

But shouldn't the disk error preceed the indefinite wait
if the disk error triggered the panic? 

As an aside, is there a disk testing program somewhere in
the base system? There isn't room on the existing disk to 
compile ports. 

Thanks for writing!

bob prohaska