Subject: panic: lfs_rescount
To: None <tech-kern@netbsd.org, perseant@netbsd.org>
From: Daniel Carosone <dan@geek.com.au>
List: tech-kern
Date: 11/21/2006 11:29:11
--tHRIK7I3lpN4OZVq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


I was getting the above panic.  Despite the (eventually) clean fsck I
wanted to eliminate the possibility of damage from previously having
run the cleaner in coalescing mode.

On a brand new lfs root filesystem (dump_lfs|restore of the previous),
I still get the panic.  At the time I had src and pkgsrc builds going,
and a dd/sleep loop overwriting the same 32Mb file every 10s, to try
and provoke the cleaner into running.

It hadn't yet seen the need to clean while the system was under load,
at least up until a minute or so before the crash - but perhaps the
crash happened when it did try and run the first time after I'd
finally dirtied enough segments?

This crash was reproducible before - but now I can be sure it's not
the result of previous coalescing damage.

The domU is sitting at ddb if further poking will be useful.

--
Dan.


panic: lfs_rescount
Stopped in pid 27133.1 (as) at  netbsd:cpu_Debugger+0x4:        popl    %ebp
db> tr
cpu_Debugger(c040db3d,cb5ada48,cb5ada2c,c0266de8,cb5ada28) at netbsd:cpu_De=
bugger+0x4
panic(c0404aad,0,cb5ada6c,1dda9,c0fad218) at netbsd:panic+0x155
lfs_reserve(c0fad000,cd5675ac,0,ffffffb8,cbe494b4) at netbsd:lfs_reserve+0x=
2c1
lfs_create(cb5adab8,2,0,0,ffffffff) at netbsd:lfs_create+0x135
VOP_CREATE(cd5675ac,cb5adbb8,cb5adbcc,cb5adafc,cc2cd54c) at netbsd:VOP_CREA=
TE+0x31
vn_open(cb5adba8,603,1a4,cd5689ac,bbbe4000) at netbsd:vn_open+0x274
sys_open(cc2cd54c,cb5adc48,cb5adc68,0,bbbe40b0) at netbsd:sys_open+0xb6
syscall_plain() at netbsd:syscall_plain+0xb3
--- syscall (number 5) ---
0xbbb2ea6b:
db>=20
db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    =
WAIT
>27133        12885    24768          0 2  0x4002    1               as
 17195        12885    24768          0 2  0x4002    1              cc1
 12885        24768    24768          0 2  0x4002    1 i386--netbsdelf-    =
wait
 24768        12452    24768          0 2  0x4002    1               sh    =
wait
 10097        27108    10097          0 2  0x4002    1               sh
 27108        18406    18406          0 2  0x4002    1           nbmake    =
poll
 18406        11535    18406          0 2  0x4002    1               sh    =
wait
 1723         20154     1723          0 2  0x4002    1               dd
 12452        19370       94          0 2  0x4002    1           nbmake    =
poll
 19370           94       94          0 2     0x2    1               sh    =
wait
 15422         2479    26126          0 2  0x4002    1               as  pi=
perd
 29991         2479    26126          0 2  0x4002    1          cc1plus
 2479           503    26126          0 2  0x4002    1              g++    =
wait
 503          10584    26126          0 2  0x4002    1           ccache    =
wait
 29237        12355    26126          0 2  0x4002    1           ccache
 11475         8230    26126          0 2  0x4002    1               sh
 11535        21408    21408          0 2  0x4002    1           nbmake    =
poll
 21408        28769    21408          0 2  0x4002    1               sh    =
wait
 94           20673       94          0 2  0x4002    1               sh    =
wait
 12355         8230    26126          0 2  0x4002    1               sh    =
wait
 10584         8230    26126          0 2  0x4002    1               sh    =
wait
 8230         24415    26126          0 2  0x4002    1            gmake    =
wait
 24415        20222    26126          0 2  0x4002    1               sh    =
wait
 20222        14051    26126          0 2  0x4002    1            gmake    =
wait
 14051         1983    26126          0 2  0x4002    1               sh    =
wait
 1983          9364    26126          0 2  0x4002    1            gmake    =
wait
 9364         24181    26126          0 2  0x4002    1               sh    =
wait
 24181        26310    26126          0 2  0x4002    1            gmake    =
wait
 26310         6077    26126          0 2  0x4002    1            gmake    =
wait
 6077         13218    26126          0 2  0x4002    1               sh    =
wait
 20673        25513    25513          0 2  0x4002    1           nbmake    =
poll
 25513        13756    25513          0 2  0x4002    1               sh    =
wait
 13756        18799    18799          0 2  0x4002    1           nbmake    =
poll
 18799        20625    18799          0 2  0x4002    1               sh    =
wait
 20625         1000     1000          0 2  0x4002    1           nbmake    =
poll
 1000         13420     1000          0 2  0x4002    1               sh    =
wait
 13218         1301    26126          0 2  0x4002    1             make    =
wait
 1301          1688    26126          0 2  0x4002    1               sh    =
wait
 28769         7666     7666          0 2  0x4002    1           nbmake    =
poll
 7666         13420     7666          0 2  0x4002    1               sh    =
wait
 1688          6121    26126          0 2  0x4002    1             make    =
wait
 6121         17531    26126          0 2  0x4002    1               sh    =
wait
 17531         9210    26126          0 2  0x4002    1             make    =
wait
 9210         26126    26126          0 2  0x4002    1               sh    =
wait
 28951          567      567         12 2  0x4108    1           pickup  se=
lect
 13420         3365     3365          0 2  0x4002    1           nbmake    =
poll
 3365         27802     3365          0 2  0x4002    1               sh    =
wait
 27802        17459    17459          0 2  0x4002    1           nbmake    =
poll
 9712           539     9712        106 2  0x4002    1             tcsh   t=
tyin
 5870           632     5870        106 2  0x4002    1             less nan=
osle
 20154         2789    20154          0 2  0x4002    1             tcsh   p=
ause
 17459        23452    17459          0 2  0x4002    1               sh    =
wait
 23452        20242    20242          0 2  0x4002    1           nbmake    =
poll
 20242        28148    20242          0 2  0x4002    1               sh    =
wait
 28148        21444     5005          0 2  0x4002    1           nbmake    =
poll
 21444         5005     5005          0 2  0x4002    1               sh    =
wait
 26126          493    26126          0 2  0x4002    1               sh    =
wait
 29459         8034     5005          0 2  0x4002    1              tee  pi=
perd
 5005          8034     5005          0 2  0x4002    1               sh    =
wait
 8034          5919     8034          0 2  0x4002    1             tcsh   p=
ause
 5919           539     5919        106 2  0x4002    1             tcsh   p=
ause
 2789           539     2789        106 2  0x4002    1             tcsh   p=
ause
 632            539      632        106 2  0x4002    1             tcsh   p=
ause
 493            630      493          0 2  0x4002    1             tcsh   p=
ause
 630            539      630        106 2  0x4002    1             tcsh   p=
ause
 539            596      539        106 2   0x101    1     screen-4.0.3  se=
lect
 596            562      596        106 2  0x4102    1     screen-4.0.3   p=
ause
 562            586      562        106 2  0x4002    1             tcsh   p=
ause
 586            604      604        106 2   0x100    1             sshd  se=
lect
 604            414      604          0 2  0x4101    1             sshd   n=
etio
 602              1      602          0 2  0x4002    1            getty   t=
tyin
 591              1      591          0 2       0    1             cron nan=
osle
 592              1      592          0 2       0    1            inetd  kq=
read
 578            567      567         12 2  0x4108    1             qmgr  se=
lect
 567              1      567          0 2  0x4108    1           master  se=
lect
 414              1      414          0 2       0    1             sshd  se=
lect
 217              1      217          0 2       0    1          syslogd  kq=
read
 172              1      172          0 2       0    1         dhclient  se=
lect
 81               1       81          0 2       0    1     lfs_cleanerd seg=
ment
 29               0        0          0 2 0x20200    1          physiod phy=
siod
 9                0        0          0 2 0x20200    1         aiodoned aio=
done
 8                0        0          0 2 0x20200    1          ioflush  sy=
ncer
 7                0        0          0 2 0x20200    1       pagedaemon pgd=
aemo
 6                0        0          0 2 0x20200    1       lfs_writer lfs=
writ
 5                0        0          0 2 0x20200    1           xenbus    =
rdst
 4                0        0          0 2 0x20200    1         xenwatch   e=
vtsq
 3                0        0          0 2 0x20200    1        cryptoret cry=
pto_
 1                0        1          0 2  0x4001    1             init    =
wait
 0               -1        0          0 2 0x20200    1          swapper sch=
edul
 15372        11475    26126          0 5  0x6003    0           ccache    =
   *
db>=20


--tHRIK7I3lpN4OZVq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFFYkhXEAVxvV4N66cRAklaAJ46uW/Ck+yMQvL6KFOSbFiLG/3tWQCdGc3H
VGqdW6qJx26FfEUrKG/MNqI=
=bbgR
-----END PGP SIGNATURE-----

--tHRIK7I3lpN4OZVq--