*BSD News Article 92425


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!news.apfel.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 2.2.1-RELEASE: panic at floppy access
Date: 31 Mar 1997 14:56:32 GMT
Organization: Private BSD site, Dresden
Lines: 36
Message-ID: <5hojb0$ai9@uriah.heep.sax.de>
References: <5hbo0e$kto$1@pf1.phil.uni-sb.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38144

D. Rock <rock@wurzelausix.CS.Uni-SB.DE> wrote:

> The error is fairly easy reproductable by first accessing the
> drive without a disk inserted, insert disk, do again:
> % mdir
> .... I/O error
> [slide in disk]
> % mdir
> panic: general protection fault

This is more likely to be a machine problem than a floppy driver one.

> I have saved the kernel crash dump and found the offending
> command in kern_malloc.c:
> 192:            freep->next = savedlist;
> 193:            if (kbp->kb_last == NULL)
> 194:                    kbp->kb_last = (caddr_t)freep;
> 195:    }
> 196:    va = kbp->kb_next;
> kbp->kb_next = 0xffffffff;

Somehow, your kernel malloc buckets have been corrupted.  Note that
the floppy disk driver itself does only call malloc() at all when
formatting.

This is hard to diagnose remotely.  You should also note that the
`General protection fault' rather indicates a problem with these d*mn
segment registers, than a faulting virtual address.  Accessing address
0xffffffff should normally give a type 12 trap (page fault).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)