Subject: Re: netbsd-4 LFS problems
To: Konrad Schroder <perseant@hhhh.org>
From: Chris Ross <cross+netbsd@distal.com>
List: current-users
Date: 08/24/2007 12:59:06
On Jul 10, 2007, at 19:07, Konrad Schroder wrote:
> Hello Chris,
>
> Try revision 1.208 of sys/ufs/lfs/lfs_vnops.c, I think that should  
> fix it. I am having a hard time making my test system go into that  
> bit of code, so the fix is by inspection only; please let me know  
> how it works out for you (either way).

   I'm still getting panic's of this machine every week or two.  The  
last backtrace I mailed looks just about like the one I can generate  
from last night's crash.  This is from a userland and kernel build  
about 2 weeks ago from netbsd-4, with the one piece of 1.208 of lfs/ 
lfs_vnops.c applied, as you requested.  The backtrace is attached,  
and the ps.  Please let me know if I've done something wrong to  
explain why the backtrace seems so much less useful than the first  
one I was able to generate.....

   Thanks.

                                     - Chris

(gdb) where
#0  0xc037bd1c in cpu_reboot (howto=0, bootstr=0x0)
     at /data/NetBSD/src-4/sys/arch/i386/i386/machdep.c:896
#1  0xc0306fdd in panic (fmt=0xc04d22e9 "trap")
     at /data/NetBSD/src-4/sys/kern/subr_prf.c:246
#2  0xc0387036 in trap (frame=0xcb2326d4)
     at /data/NetBSD/src-4/sys/arch/i386/i386/trap.c:339
#3  0xc010bf8a in calltrap ()
#4  0xcb2326d4 in ?? ()
#5  0xcb230010 in ?? ()
#6  0xc1d90030 in ?? ()
#7  0xcb230010 in ?? ()
#8  0xc02f0010 in getdisk (str=0xc027228a "\213B8\211\207\f\002",
     len=<value optimized out>, defpart=-1071195183, devp=0xc1d90800,  
isdump=5)
     at /data/NetBSD/src-4/sys/kern/kern_subr.c:1262
#9  0xc0270c16 in lfs_segwrite (mp=0xc1d92000, flags=5)
     at /data/NetBSD/src-4/sys/ufs/lfs/lfs_segment.c:631
#10 0xc02776b0 in lfs_sync (mp=0xc1d92000, waitfor=2, cred=0xcb200f3c,
     l=0xc05882e0) at /data/NetBSD/src-4/sys/ufs/lfs/lfs_vfsops.c:1068
#11 0xc033ee9f in sys_sync (l=0xc05882e0, v=0x0, retval=0x0)
     at /data/NetBSD/src-4/sys/kern/vfs_syscalls.c:677
#12 0xc0337c99 in vfs_shutdown ()
     at /data/NetBSD/src-4/sys/kern/vfs_subr.c:2238
#13 0xc037bda5 in cpu_reboot (howto=256, bootstr=0x0)
     at /data/NetBSD/src-4/sys/arch/i386/i386/machdep.c:882
#14 0xc0306fdd in panic (fmt=0xc04d22e9 "trap")
     at /data/NetBSD/src-4/sys/kern/subr_prf.c:246
#15 0xc0387036 in trap (frame=0xcb232938)
     at /data/NetBSD/src-4/sys/arch/i386/i386/trap.c:339
#16 0xc010bf8a in calltrap ()
#17 0xcb232938 in ?? ()
#18 0xc2320010 in ?? ()
#19 0x00000030 in ?? ()
#20 0x00000010 in ?? ()
#21 0xcb230010 in ?? ()
#22 0x0000003a in ?? ()
#23 0xcb232a0c in ?? ()
#24 0xcb2329d0 in ?? ()
#25 0xc2327000 in ?? ()
#26 0xcb232a24 in ?? ()
#27 0xc2327008 in ?? ()
#28 0x25ae0000 in ?? ()
#29 0x00000006 in ?? ()
#30 0x00000000 in ?? ()
(gdb) quit


% ps -M netbsd.5.core -N netbsd.5.gdb -alx
UID   PID        PPID   CPU PRI NI    VSZ RSS WCHAN    STAT  
TTY        TIME COMMAND
    0     0 -1145124352     0 -18  0      0   0 schedule DWKs ?        
0:00.00 [swapper]
    0     1 -1145124352     0  10  0     80   0 wait     UWs  ?        
0:00.00 init
    0     2 -1145124352     0 -18  0      0   0 smtaskq  DWK  ?        
0:00.00 [sysmon]
    0     3 -1145124352     0  -6  0      0   0 sccomp   DWK  ?        
0:00.00 [scsibus0]
    0     4 -1145124352     0  -6  0      0   0 sccomp   DWK  ?        
0:00.00 [scsibus1]
    0     5 -1145124352     0  -6  0      0   0 atath    DWK  ?        
0:00.00 [atabus0]
    0     6 -1145124352     0  10  0      0   0 pmsreset DWK  ?        
0:00.00 [pms0]
    0     7 -1145124352     0  14  0      0   0 crypto_w DWK  ?        
0:00.00 [cryptoret]
    0     8 -1145124352     0  -6  0      0   0 sccomp   DWK  ?        
0:00.00 [atapibus0]
    0     9 -1145124352     0 -18  0      0   0 pgdaemon DWK  ?        
0:00.00 [pagedaemon]
    0    10 -1145124352  1045  18  0      0   0 syncer   DWK  ?       
17:25.00 [ioflush]
    0    11 -1145124352     0 -18  0      0   0 aiodoned DWK  ?        
0:00.00 [aiodoned]
    0    46 -1145124352     0  -6  0      0   0 physiod  DWK  ?        
0:00.00 [physiod]
    0    96 -1145124352  7663  10  0   4192   0 wait     UWs  ?      
127:43.01 (squid)
1000   101 -1145124352     0   2  0 234820   0 poll     UWa  ?        
0:00.00 (squid)
    0   179 -1145124352     0 -18  0      0   0 lfswrite DWK  ?        
0:00.00 [lfs_writer]
    0   184 -1145124352     0  -2  0   4328   0 segment  UWs  ?        
0:00.00 (lfs_cleanerd)
    0   206 -1145124352  8254   2  0     64   0 kqread   UWs  ?      
137:34.01 (inetd)
1000   216 -1145124352 10406   2  0   2064   0 piperd   UWs  ?      
173:26.01 (unlinkd)
    0   231 -1145124352     0   2  0    208   0 kqread   UWs  ?        
0:00.00 (master)
    0   465 -1145124352     0  10  0    732   0 nanoslee UWs  ?        
0:00.00 (ipmon)
    0   495 -1145124352     0   2  0    180   0 -        UWs  ?        
0:00.00 (syslogd)
    0   543 -1145124352     0  -2  0   4404   0 segment  UWs  ?        
0:00.00 nfsd: server (lfs_cleanerd)
    0   564 -1145124352     0  10  0    200   0 mfsidl   UWs  ?        
0:00.00 (mount_mfs)
    0   571 -1145124352     0  18  0  28868   0 sigwait  UWsa ?        
0:00.00 (named)
    0   655 -1145124352     0   2  0    288   0 select   UW   ?        
0:00.00 (conserver)
    0   725 -1145124352     0  -2  0   5000   0 segment  UWs  ?        
0:00.00 (lfs_cleanerd)
   12   731 -1145124352     0   2  0    276   0 kqread   UW   ?        
0:00.00 (qmgr)
1000   767 -1145124352     0   2  0   2140   0 select   UWs  ?        
0:00.00 (pinger)
    0   944 -1145124352     0   2  0   1264   0 select   UWs  ?        
0:00.00 (dhcpd)
    0   956 -1145124352     0  18  0   1128   0 pause    UWs  ?        
0:00.00 (ntpd)
    0  1053 -1145124352  1476   2  0    276   0 select   UWs  ?       
24:36.00 (sshd)
    0  1110 -1145124352  6445   2  0    288   0 select   UWs  ?      
107:25.01 (conserver)
    0  1277 -1145124352     0  10  0    228   0 nanoslee UWs  ?        
0:00.00 (cron)
   12  4499 -1145124352     0   2  0    220   0 kqread   UW   ?        
0:00.00 (tlsmgr)
   12 17050 -1145124352     0   2  0    236   0 kqread   UW   ?        
0:00.00 (pickup)
    0 20887 -1145124352     0  10  0   2392   0 nanoslee UWs  ?        
0:00.00 (gw6c)
    0 24276 -1145124352     0   2  0    632   0 select   UWs  ?        
0:00.00 (dhclient)
    0 26413 -1145124352     0   2  0     96   0 poll     UWs  ?        
0:00.00 (rtadvd)
    0  1246 -1145124352     0   3  0     52   0 ttyin    UWs+ ttyE0    
0:00.00 (getty)
    0   290 -1145124352  7364   3  0     52   0 ttyin    UWs+ ttyE1  
122:44.01 (getty)
    0  1138 -1145124352  7364   3  0     52   0 ttyin    UWs+ ttyE2  
122:44.01 (getty)
    0   291 -1145124352  8282   3  0     52   0 ttyin    UWs+ ttyE3  
138:02.01 (getty)
%