Subject: SPARC: get panic "cluster_rbuild: too much memory"
To: None <current-users@NetBSD.ORG>
From: Juergen Hannken-Illjes <hannken@serv1.eis.cs.tu-bs.de>
List: current-users
Date: 01/02/1997 13:49:12
Hi all,

I get panic "cluster_rbuild: too much memory" on my -current Sparc.

>From kgdb:

 #2  0xf8028df4 in panic (fmt=0x0) at ../../../../kern/subr_prf.c:142
 #3  0xf803ea50 in cluster_rbuild (vp=0xf8669d80, filesize=0xf871394000000006, 
     bp=0xf8c0d6d0, lbn=1059, blkno=1630944, size=8192, run=7, flags=1048580)
     at ../../../../kern/vfs_cluster.c:352
 #4  0xf803e6d0 in cluster_read (vp=0xf8669d80, filesize=14243628, lblkno=1052, 
     size=8192, cred=0xffffffff, bpp=0x0) at ../../../../kern/vfs_cluster.c:225
 #5  0xf80af164 in ffs_read (v=0x0) at ../../../../ufs/ufs/ufs_readwrite.c:124
 #6  0xf80477a4 in vn_read (fp=0xf8733a40, uio=0xf9cd3e98, cred=0xf865de80)
     at ../../../../sys/vnode_if.h:266
 #7  0xf802a424 in sys_read (p=0xf871d000, v=0xf9cd3f28, retval=0xf9cd3f20)
     at ../../../../kern/sys_generic.c:112
 #8  0xf810b770 in syscall (code=3, tf=0xf9cd3fb0, pc=112808)
     at ../../../../arch/sparc/sparc/trap.c:1143

File kern/vfs_cluster.c:352 is:

  /*
   * No room in the buffer to add another page,
   * terminate the cluster early.
   */
  if (tbp->b_bufsize + size > MAXBSIZE) {	// 61440 + 8192 > 65536
#ifdef DIAGNOSTIC
    if (tbp->b_bufsize != MAXBSIZE)		// 61440 != 65536
      panic("cluster_rbuild: too much memory");
#endif
    brelse(tbp);
    break;
  }

Any ideas?

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (W Germany)