From owner-freebsd-bugs Sat Aug 17 5:20:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C58237B401 for ; Sat, 17 Aug 2002 05:20:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4BC343E4A for ; Sat, 17 Aug 2002 05:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7HCK3JU041167 for ; Sat, 17 Aug 2002 05:20:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7HCK3Ld041166; Sat, 17 Aug 2002 05:20:03 -0700 (PDT) Date: Sat, 17 Aug 2002 05:20:03 -0700 (PDT) Message-Id: <200208171220.g7HCK3Ld041166@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Tha KreAture" Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic. Reply-To: "Tha KreAture" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/41723; it has been noted by GNATS. From: "Tha KreAture" To: , Cc: Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic. Date: Sat, 17 Aug 2002 14:15:46 +0200 OK. I did a recompile of my kernel and added dumping... Here's the output of the backtrace: --------------------------- (kgdb) bt #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 #1 0xc0165adc in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316 #2 0xc0165f10 in poweroff_wait (junk=0xc029980c, howto=-1071017206) at /usr/src/sys/kern/kern_shutdown.c:595 #3 0xc0261e27 in trap_fatal (frame=0xd0936c4c, eva=0) at /usr/src/sys/i386/i386/trap.c:974 #4 0xc0261803 in trap (frame={tf_fs = 16, tf_es = -795672560, tf_ds = -1051328496, tf_edi = -795644108, tf_esi = 0, tf_ebp = -795644740, tf_isp = -795644808, tf_ebx = -1051308032, tf_edx = -1, tf_ecx = -1310720000, tf_eax = -1310720000, tf_trapno = 18, tf_err = 0, tf_eip = -1071541209, tf_cs = 8, tf_eflags = 66182, tf_esp = -1050202880, tf_ss = -1051308032}) at /usr/src/sys/i386/i386/trap.c:636 #5 0xc0219427 in ffs_dirpref (pip=0xc1672d00) at /usr/src/sys/ufs/ffs/ffs_alloc.c:710 #6 0xc021911d in ffs_valloc (pvp=0xd094f540, mode=16877, cred=0xc167de80, vpp=0xd0936d10) at /usr/src/sys/ufs/ffs/ffs_alloc.c:590 #7 0xc022b50d in ufs_mkdir (ap=0xd0936e78) at /usr/src/sys/ufs/ufs/ufs_vnops.c:1321 #8 0xc022c6a1 in ufs_vnoperate (ap=0xd0936e78) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2422 #9 0xc01995ce in mkdir (p=0xcf2590c0, uap=0xd0936f80) at vnode_if.h:674 #10 0xc026208d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, -------------------- #5 is interesting... The funky stuff is happening at line 710 in sourcefile ffs_alloc.c wich, if I have read correctly, is trying to find/select a inode for a directory or file or something... So, this line is causing me all theese problems: "maxcontigdirs = min(cgsize / dirsize, 255);" It appears the crash happens when a directory is made or a file is being placed... Hoping someone experienced with the code could check this? I am certain I traced this right :-) Kyrre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message