From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 24 15:30:18 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 90ECD16A400 for ; Fri, 24 Mar 2006 15:30:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A10243D45 for ; Fri, 24 Mar 2006 15:30:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2OFUHM7095192 for ; Fri, 24 Mar 2006 15:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2OFUHrJ095191; Fri, 24 Mar 2006 15:30:17 GMT (envelope-from gnats) Date: Fri, 24 Mar 2006 15:30:17 GMT Message-Id: <200603241530.k2OFUHrJ095191@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Alexey Sopov" Cc: Subject: Re: kern/94890 : [smbfs] Fatal trap 18: integer divide fault while in kernel mode X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexey Sopov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2006 15:30:18 -0000 The following reply was made to PR kern/94890; it has been noted by GNATS. From: "Alexey Sopov" To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/94890 : [smbfs] Fatal trap 18: integer divide fault while in kernel mode Date: Fri, 24 Mar 2006 18:21:27 +0300 ------=_Part_4272_6023070.1143213687518 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Actually I found this is not a samba/smbfs specific problem: database# mkdir /video1/KBH database# sync database# mkdir /video1/KBH/Test after this the system panics. Here is some more information: database# fdisk /dev/ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=3D319120 heads=3D16 sectors/track=3D63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D319120 heads=3D16 sectors/track=3D63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 0, size 321672960 (157066 Meg), flag 80 (active) beg: cyl 0/ head 0/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: database# disklabel /dev/ad4s1 # /dev/ad4s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 262144 0 4.2BSD 2048 16384 16392 b: 1048576 262144 swap c: 321672960 0 unused 0 0 # "raw" part, don'= t edit d: 262144 1310720 4.2BSD 2048 16384 16392 e: 262144 1572864 4.2BSD 2048 16384 16392 f: 16777216 1835008 4.2BSD 2048 16384 28528 g: 303060736 18612224 4.2BSD 8192 65536 52360 database# tunefs -p /video1 tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 8192 tunefs: average file size: (-f) 734003200 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time Setting average file size to default solved the problem!!! database# tunefs -p /video1 tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 8192 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) ------=_Part_4272_6023070.1143213687518 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Actually I found this is not a samba/smbfs specific problem:

databas= e# mkdir /video1/KBH
database# sync
database# mkdir /video1/KBH/Test<= br>
after this the system panics.

Here is some more information:

database# fdisk /dev/ad4
******* Working on device /dev/ad4 ****= ***
parameters extracted from in-core disklabel are:
cylinders=3D3191= 20 heads=3D16 sectors/track=3D63 (1008 blks/cyl)

Figures below won't= work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3D319120 = heads=3D16 sectors/track=3D63 (1008 blks/cyl)

Media sector size is 5= 12
Warning: BIOS sector numbering starts with sector 1
Information fr= om DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD= )
    start 0, size 321672960 (157066 Meg), flag 80 (acti= ve)
        beg: cyl 0/ head 0/ secto= r 1;
        end: cyl 1023/ head 15/ = sector 63
The data for partition 2 is:
<UNUSED>
The data for partitio= n 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>=

database# disklabel /dev/ad4s1
# /dev/ad4s1:
8 partitions:
#        size   offset&nbs= p;   fstype   [fsize bsize bps/cpg]
  a: &= nbsp; 262144        0    = 4.2BSD     2048 16384 16392
  b:  1048576&= nbsp;  262144      swap
  c: 32167296= 0        0    unused = ;       0     0 &nbs= p;       # "raw" part, don't edit
  d:   262144  1310720    4.2BSD&nbs= p;    2048 16384 16392
  e:   262144 = 1572864    4.2BSD     2048 16384 16392<= br>  f: 16777216  1835008    4.2BSD  &nb= sp;  2048 16384 28528
  g: 303060736 18612224   = ; 4.2BSD     8192 65536 52360

database# tunefs -p /video1
tunefs: ACLs: (-a)   =             &nb= sp;            =              di= sabled
tunefs: MAC multilabel: (-l)      &= nbsp;           &nbs= p;            disabl= ed
tunefs: soft updates: (-n)       &= nbsp;           &nbs= p;             = enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  8192tunefs: average file size: (-f)       &= nbsp;           &nbs= p;        734003200
tunefs: average n= umber of files in a directory: (-s)       64<= br>tunefs: minimum percentage of free space: (-m)    &n= bsp;        8%
tunefs: optimization preference: (-o)     &nbs= p;            &= nbsp;   time

Setting average file size to default solved t= he problem!!!
database# tunefs -p /video1
tunefs: ACLs: (-a) &nb= sp;            =             &nb= sp;            =   disabled
tunefs: MAC multilabel: (-l)       &= nbsp;           &nbs= p;           disabled
= tunefs: soft updates: (-n)        &= nbsp;           &nbs= p;            enable= d
tunefs: maximum blocks per file in a cylinder group: (-e)  8192tunefs: average file size: (-f)       =             &nb= sp;        16384
tunefs: average number of files in a directory: (-s)   &= nbsp;   64
tunefs: minimum percentage of free space: (-m) = ;            8%
t= unefs: optimization preference: (-o)      &nb= sp;            =    time
tunefs: volume label: (-L)

------=_Part_4272_6023070.1143213687518--