From nobody@FreeBSD.org  Fri Apr 11 03:32:30 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5694A106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Apr 2008 03:32:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4CCD68FC25
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Apr 2008 03:32:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3B3W81m052254
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Apr 2008 03:32:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m3B3W8EV052253;
	Fri, 11 Apr 2008 03:32:08 GMT
	(envelope-from nobody)
Message-Id: <200804110332.m3B3W8EV052253@www.freebsd.org>
Date: Fri, 11 Apr 2008 03:32:08 GMT
From: Igor Kulemzin <ivk@kristal.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: on-boot mount /tmp kernel dump
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122644
>Category:       i386
>Synopsis:       [panic] on-boot mount /tmp kernel dump
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 11 03:40:01 UTC 2008
>Closed-Date:    Wed Jul 14 05:32:37 UTC 2010
>Last-Modified:  Wed Jul 14 05:32:37 UTC 2010
>Originator:     Igor Kulemzin
>Release:        6.3-STABLE
>Organization:
>Environment:
FreeBSD fw.amurimpulse.ru 6.3-STABLE FreeBSD 6.3-STABLE #0: Sun Jan 20 21:14:46 YAKT 2008     igor_k@fw.amurimpulse.ru:/usr/obj/usr/src/sys/SRV  i386
>Description:
On my FreeBSD server I've mount /dev/ad0s1d partition into /tmp mount point. Permissions set to 1777. Sometimes after clean reboot kernel dumps when trying to mount /tmp. After /sbin/fsck -y /dev/ad0s1d I've reboot and nothing changed. kernel dumps again. Only /sbin/newfs /dev/ad0s1d return my server to work.
>How-To-Repeat:
I don't know. May be mount some partition into /tmp with permissions 1777 set after. I've use:
- MySQL server, that create /tmp/mysql.sock socket.
- postfix-policyd-weight-0.1.14.17, that create /tmp/.policyd-weight directory
- samba server, that create /tmp/.winbindd directory
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Fri Apr 11 19:49:55 UTC 2008 
State-Changed-Why:  

Please provide us with the actual panic message and a backtrace. 
As your problem seems to be fs related, please give us dumpfs 
output. Problem does not look like i386 specific, category changed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122644 

From: "=?utf-8?b?0JrRg9C70LXQvNC30LjQvQ==?= =?utf-8?b?INCYLtCSLg==?=" <ivk@kristal.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/122644: [panic] on-boot mount /tmp kernel dump
Date: Sat, 12 Apr 2008 09:41:21 +1000

 Hi,
 
   /sbin/dumpfs /dev/ad0s1d output:
 
   magic   19540119 (UFS2) time    Sat Apr 12 09:10:15 2008
 superblock location     65536   id      [ 47ff951a 46b3826f ]
 ncg     4       size    262144  blocks  253815
 bsize   16384   shift   14      mask    0xffffc000
 fsize   2048    shift   11      mask    0xfffff800
 frag    8       shift   3       fsbtodb 2
 minfree 8%      optim   time    symlinklen 120
 maxbsize 16384  maxbpg  2048    maxcontig 8     contigsumsize 8
 nbfree  31721   ndir    11      nifree  65695   nffree  19
 bpg     8193    fpg     65544   ipg     16448
 nindir  2048    inopb   64      maxfilesize     140806241583103
 sbsize  2048    cgsize  12288   csaddr  2112    cssize  2048
 sblkno  40      cblkno  48      iblkno  56      dblkno  2112
 cgrotor 0       fmod    0       ronly   0       clean   0
 avgfpdir 64     avgfilesize 16384
 flags   none
 fsmnt   /tmp
 volname         swuid   0
 
 cs[].cs_(nbfree,ndir,nifree,nffree):
         (7926,1,16363,5) (7933,6,16440,2) (7933,3,16445,5) (7929,1,16447,7)
 blocks in last group 8189
 
 
 cg 0:
 magic   90255   tell    18000   time    Sat Apr 12 09:10:04 2008
 cgx     0       ndblk   65544   niblk   16448   initiblk 256
 nbfree  7926    ndir    1       nifree  16363   nffree  5
 rotor   2128    irotor  84      frotor  2128
 frsum   0       0       0       0       1       0       0
 sum of frsum: 5
 clusters 1-7:   0       0       0       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  267-8192
 inodes used:    0-84
 blks free:      2131-65543
 
 cg 1:
 magic   90255   tell    801c000 time    Sat Apr 12 02:44:47 2008
 cgx     1       ndblk   65544   niblk   16448   initiblk 128
 nbfree  7933    ndir    6       nifree  16440   nffree  2
 rotor   0       irotor  7       frotor  8
 frsum   0       1       0       0       0       0       0
 sum of frsum: 2
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 264-8192
 inodes used:    0-6, 8
 blks free:      0-7, 14-39, 2112-65543
 
 cg 2:
 magic   90255   tell    10020000        time    Sat Apr 12 08:47:39 2008
 cgx     2       ndblk   65544   niblk   16448   initiblk 128
 nbfree  7933    ndir    3       nifree  16445   nffree  5
 rotor   16      irotor  3       frotor  16
 frsum   0       0       0       0       1       0       0
 sum of frsum: 5
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 264-8192
 inodes used:    0-2
 blks free:      0-7, 11-39, 2112-65543
 
 cg 3:
 magic   90255   tell    18024000        time    Sat Apr 12 02:44:31 2008
 cgx     3       ndblk   65512   niblk   16448   initiblk 128
 nbfree  7929    ndir    1       nifree  16447   nffree  7
 rotor   0       irotor  0       frotor  0
 frsum   0       0       0       0       0       0       1
 sum of frsum: 7
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 264-8188
 inodes used:    0
 blks free:      0-7, 9-39, 2112-65511

From: "=?utf-8?b?0JrRg9C70LXQvNC30LjQvQ==?= =?utf-8?b?INCYLtCSLg==?=" <ivk@kristal.ru>
To: bug-followup@freebsd.org,
 ivk@kristal.ru
Cc:  
Subject: Re: i386/122644: [panic] on-boot mount /tmp kernel dump
Date: Sun, 9 Nov 2008 10:42:28 +0900

 --nextPart29281761.QsMvYlb1lx
 Content-Type: text/plain;
   charset="utf-8"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 Hi,
 
   I've got that problem on another server after rebooting it. Server has=20
 44-days uptime before.
 
   FreeBSD mx2.kristal.ru 6.3-STABLE FreeBSD 6.3-STABLE #0: Wed Apr 16 08:19=
 :49=20
 YAKST 2008     ivk@mx2.kristal.ru:/usr/obj/usr/src/sys/SRV3  i386
 
   kernel panic message:
 
   Mounting local filesystems:panic: ufs_dirbad: /tmp: baddir ino 2 at offse=
 t=20
 16384: mangled entry
 
   /etc/fstab:
 /dev/da0s1b  none          swap         sw                               0 0
 /dev/da0s1a  /             ufs          rw,noatime                       1 1
 /dev/da0s1d  /tmp          ufs          rw,noatime,nosuid                1 2
 /dev/da0s1e  /var          ufs          rw,noatime,nosuid                1 2
 /dev/da0s1f  /usr          ufs          rw,noatime                       1 2
 /dev/ad0s1d  /home         ufs          rw,acls,userquota,nosuid         1 2
 /dev/da1s1d  /mnt/scsi1    ufs          rw,noatime,noexec                1 2
 /dev/ad1s1d  /home/bacula/archives ufs  rw,noexec                        0 2
 proc         /proc         procfs       rw                               0 0
 
   df:
 =46ilesystem  1K-blocks      Used     Avail Capacity  Mounted on
 /dev/da0s1a    507630     54226    412794    12%    /
 devfs               1         1         0   100%    /dev
 /dev/da0s1d   1012974       490    931448     0%    /tmp
 /dev/da0s1e   4060310    811356   2924130    22%    /var
 /dev/da0s1f   9736394   3284324   5673160    37%    /usr
 /dev/ad0s1d 236511738 119109812 115036810    51%    /home
 /dev/da1s1d  17352074   4035888  11928022    25%    /mnt/scsi1
 /dev/ad1s1d 378412846 284024206  64115614    82%    /home/bacula/archives
 procfs              4         4         0   100%    /proc
 devfs               1         1         0   100%    /var/named/dev
 
 /sbin/dumpfs /dev/ad0s1d output:
 magic   19540119 (UFS2) time    Sun Nov  9 10:40:57 2008
 superblock location     65536   id      [ 4916b71a 9226c46a ]
 ncg     6       size    524288  blocks  506487
 bsize   16384   shift   14      mask    0xffffc000
 fsize   2048    shift   11      mask    0xfffff800
 frag    8       shift   3       fsbtodb 2
 minfree 8%      optim   time    symlinklen 120
 maxbsize 16384  maxbpg  2048    maxcontig 8     contigsumsize 8
 nbfree  63274   ndir    7       nifree  141238  nffree  50
 bpg     11761   fpg     94088   ipg     23552
 nindir  2048    inopb   64      maxfilesize     140806241583103
 sbsize  2048    cgsize  16384   csaddr  3000    cssize  2048
 sblkno  40      cblkno  48      iblkno  56      dblkno  3000
 cgrotor 0       fmod    0       ronly   0       clean   0
 avgfpdir 64     avgfilesize 16384
 flags   none
 fsmnt   /tmp
 volname         swuid   0
 
 cs[].cs_(nbfree,ndir,nifree,nffree):
         (11353,2,23483,23) (11390,1,23551,7) (11390,1,23551,7)=20
 (11390,2,23550,6)
         (11390,1,23551,7) (6361,0,23552,0)
 blocks in last group 6731
 
 
 cg 0:
 magic   90255   tell    18000   time    Sun Nov  9 10:40:52 2008
 cgx     0       ndblk   94088   niblk   23552   initiblk 192
 nbfree  11353   ndir    2       nifree  23483   nffree  23
 rotor   3096    irotor  4       frotor  3000
 frsum   0       1       1       0       1       1       1
 sum of frsum: 23
 clusters 1-7:   1       1       0       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  388-389, 391, 411-11760
 inodes used:    0-68
 blks free:      3001-3003, 3010-3015, 3017-3023, 3091-3095, 3102-3119,=20
 3128-3135,
         3288-94087
 
 cg 1:
 magic   90255   tell    b7dc000 time    Sun Nov  9 10:32:54 2008
 cgx     1       ndblk   94088   niblk   23552   initiblk 128
 nbfree  11390   ndir    1       nifree  23551   nffree  7
 rotor   16      irotor  1       frotor  8
 frsum   0       0       0       0       0       0       1
 sum of frsum: 7
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 375-11760
 inodes used:    0
 blks free:      0-7, 9-39, 3000-94087
 
 cg 2:
 magic   90255   tell    16fa0000        time    Sun Nov  9 10:32:41 2008
 cgx     2       ndblk   94088   niblk   23552   initiblk 128
 nbfree  11390   ndir    1       nifree  23551   nffree  7
 rotor   16      irotor  1       frotor  8
 frsum   0       0       0       0       0       0       1
 sum of frsum: 7
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 375-11760
 inodes used:    0
 blks free:      0-7, 9-39, 3000-94087
 
 cg 3:
 magic   90255   tell    22764000        time    Sun Nov  9 10:30:07 2008
 cgx     3       ndblk   94088   niblk   23552   initiblk 128
 nbfree  11390   ndir    2       nifree  23550   nffree  6
 rotor   32      irotor  2       frotor  8
 frsum   0       0       0       0       0       1       0
 sum of frsum: 6
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 375-11760
 inodes used:    0-1
 blks free:      0-7, 10-39, 3000-94087
 
 cg 4:
 magic   90255   tell    2df28000        time    Sun Nov  9 10:33:12 2008
 cgx     4       ndblk   94088   niblk   23552   initiblk 128
 nbfree  11390   ndir    1       nifree  23551   nffree  7
 rotor   24      irotor  1       frotor  8
 frsum   0       0       0       0       0       0       1
 sum of frsum: 7
 clusters 1-7:   1       0       1       0       0       0       0
 clusters size 8 and over: 1
 clusters free:  0, 2-4, 375-11760
 inodes used:    0
 blks free:      0-7, 9-39, 3000-94087
 
 cg 5:
 magic   90255   tell    396ec000        time    Sun Nov  9 19:10:34 2008
 cgx     5       ndblk   53848   niblk   23552   initiblk 128
 nbfree  6361    ndir    0       nifree  23552   nffree  0
 rotor   0       irotor  0       frotor  0
 frsum   0       0       0       0       0       0       0
 sum of frsum: 0
 clusters 1-7:   0       0       0       0       1       0       0
 clusters size 8 and over: 1
 clusters free:  0-4, 375-6730
 inodes used:
 blks free:      0-39, 3000-53847
 
 
 =2D-
 "=D0=9A=D1=83=D0=BB=D0=B5=D0=BC=D0=B7=D0=B8=D0=BD =D0=98.=D0=92." <ivk@kris=
 tal.ru>
 =2D-=20
 =46reeBSD 7.1-PRERELEASE i386
 10:34  up 7 days, 23:36, 0 users, load averages: 0,43 0,33 0,25
 
 --nextPart29281761.QsMvYlb1lx
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (FreeBSD)
 
 iEYEABECAAYFAkkWQAUACgkQtbH1YPYdaOfptgCeJtN1MFgyLj06HeifhVCZibC9
 ATMAoNW9DcgnJJ2REypOFpD4p6CYczEl
 =yIQ2
 -----END PGP SIGNATURE-----
 
 --nextPart29281761.QsMvYlb1lx--
State-Changed-From-To: feedback->open 
State-Changed-By: remko 
State-Changed-When: Tue Jul 13 20:19:02 UTC 2010 
State-Changed-Why:  
Some feedback received, want to do an additional change. 



Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Jul 13 20:19:02 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122644 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Tue Jul 13 20:19:35 UTC 2010 
State-Changed-Why:  
The question was not to only add a dumpfs but add additional 
details. Do you think it's still possible to get this information? 

In addition, is it actually still a problem that we can reproduce? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=122644 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 05:32:36 UTC 2010 
State-Changed-Why:  
This can no longer be reproduced by the submitter and since no one else 
replied to the ticket that could potentially help resolve this. I will 
close this ticket. Thanks for helping! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122644 
>Unformatted:
