Subject: kern/4471: panic: ifree/blkfree freeing free inode/block
To: None <gnats-bugs@gnats.netbsd.org>
From: Phil Nelson <phil@steelhead.cs.wwu.edu>
List: netbsd-bugs
Date: 11/11/1997 20:58:13
>Number:         4471
>Category:       kern
>Synopsis:       panic: ifree/blkfree freeing free inode/block
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 11 21:05:01 1997
>Last-Modified:
>Originator:     Phil Nelson
>Organization:
NetBSD
>Release:        NetBSD 1.3_ALPHA, pc532
>Environment:
	
System: NetBSD steelhead 1.3_ALPHA NetBSD 1.3_ALPHA (STEELHEAD) #9: Mon Nov 3 01:59:32 PST 1997 phil@steelhead:/usr/src/sys/arch/pc532/compile/STEELHEAD pc532


>Description:
Panics:  Seen both on i386 (1.2G days before 1.3_ALPHA) and pc532.

Script started on Tue Nov 11 18:22:29 1997

---->/var/crash
steelhead[1]$ ls
bounds          netbsd.27       netbsd.27.core  netbsd.28.core  typescript

---->/var/crash
steelhead[2]$ gdb -k netbsd.27 netbsd.27.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (ns32k-netbsd), Copyright 1993 Free Software Foundation, Inc...
(no debugging symbols found)...
panic: ifree: freeing free inode
#0  0xf8017ef0 in panic ()
(kgdb) where
#0  0xf8017ef0 in panic ()
#1  0xf807cf27 in ffs_vfree (-100393268)
#2  0xf80811ce in ufs_inactive (-100393228)
#3  0xf802b82f in vrele (-128681216, -128681216, 3277220, -128600064)
#4  0xf802ebfb in sys_chmod (-128600064, -100393052, -100393060)
#5  0xf809e544 in syscall ()
#6  0xf800265c in rei (0)
(kgdb) quit

---->/var/crash
steelhead[3]$ gdb -k /netbsd netbsd.28.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (ns32k-netbsd), Copyright 1993 Free Software Foundation, Inc...
(no debugging symbols found)...
panic: blkfree: freeing free block
#0  0xf8017f2c in panic ()
(kgdb) where
#0  0xf8017f2c in panic ()
#1  0xf807ca94 in ffs_blkfree (-128549632, 387, 8192)
#2  0xf807e3c7 in ffs_truncate (-100397488)
#3  0xf808125a in ufs_inactive (-100397448)
#4  0xf802b887 in vrele (-128766336)
#5  0xf802b834 in vput (-128766336, -128766336, -100397308, -128736512)
#6  0xf802e87e in sys___lstat13 (-128736512, -100397148, -100397156)
#7  0xf809e60c in syscall ()
#8  0xf800265c in rei (Cannot access memory at address 0x805aeeb.
)
(kgdb) quit

---->/var/crash
steelhead[4]$ exit
exit

Script done on Tue Nov 11 18:23:44 1997
>How-To-Repeat:
On the pc532 (steelhead) just do a "make build" and it will crash in less
than 24 hours.  It does appear to happen more often when compiling from
root than as a non-root user.

>Fix:
No known fix or work around.  
>Audit-Trail:
>Unformatted: