kernel panic on 6.2-RC2 with GENERIC.

Nikolay Pavlov quetzal at zone3000.net
Mon Jan 22 19:02:23 UTC 2007


On Monday, 22 January 2007 at 14:22:29 +0800, erich wrote:
> Dear Nikolay Pavlov,
> 
> Please update your RAID adapter firmware's version into 1.42.
> I the problem still there please tell me again.
> I am trying to reproduce this bug in my lab,
> but till now I can not reproduce it.

No luck, sir. After upgrade to 1.42 it's still very unstable:

# kgdb kernel.debug /mnt/mnt2/crash/vmcore.5
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
panic: softdep_deallocate_dependencies: dangling deps
Uptime: 5m11s
Dumping 3583 MB (2 chunks)
  chunk 0: 1MB (156 pages) ... ok
  chunk 1: 3583MB (917216 pages) 3567 3551 3535 3519 3503 3487 3471 3455 3439 3423 3407 3391 3375 3359 3343 3327 3311 3295 3279 3263 3247 3231 3215 3199 3183 3167 3151 3135 3119 3103 3087 3071 3055 3039 3023 3007 2991 2975 2959 2943 2927 2911 2895 2879 2863 2847 2831 2815 2799 2783 2767 2751 2735 2719 2703 2687 2671 2655 2639 2623 2607 2591 2575 2559 2543 2527 2511 2495 2479 2463 2447 2431 2415 2399 2383 2367 2351 2335 2319 2303 2287 2271 2255 2239 2223 2207 2191 2175 2159 2143 2127 2111 2095 2079 2063 2047 2031 2015 1999 1983 1967 1951 1935 1919 1903 1887 1871 1855 1839 1823 1807 1791 1775 1759 1743 1727 1711 1695 1679 1663 1647 1631 1615 1599 1583 1567 1551 1535 1519 1503 1487 1471 1455 1439 1423 1407 1391 1375 1359 1343 1327 1311 1295 1279 1263 1247 1231 1215 1199 1183 1167 1151 1135 1119 1103 1087 1071 1055 1039 1023 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15

#0  doadump () at pcpu.h:165
165     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc067005a in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc06702f0 in panic (fmt=0xc08e0219 "softdep_deallocate_dependencies: dangling deps") at /usr/src/sys/kern/kern_shutdown.c:565
#3  0xc079dc2e in softdep_deallocate_dependencies (bp=0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:6255
#4  0xc06b73e3 in getnewbuf (slpflag=0, slptimeo=0, size=16384, maxsize=16384) at buf.h:447
#5  0xc06b88dc in getblk (vp=0xcd2b2330, blkno=2115, size=16384, slpflag=0, slptimeo=0, flags=1) at /usr/src/sys/kern/vfs_bio.c:2497
#6  0xc06bc9b3 in cluster_rbuild (vp=0xcd2b2330, filesize=50608376, lbn=2113, blkno=1819849504, size=16384, run=8, fbp=0x0)
    at /usr/src/sys/kern/vfs_cluster.c:374
#7  0xc06bc607 in cluster_read (vp=0xcd2b2330, filesize=50608376, lblkno=2113, size=16384, cred=0x0, totread=4096, seqcount=127, bpp=0x0)
    at /usr/src/sys/kern/vfs_cluster.c:252
#8  0xc07a234b in ffs_read (ap=0x0) at /usr/src/sys/ufs/ffs/ffs_vnops.c:503
#9  0xc086f924 in VOP_READ_APV (vop=0x0, a=0x0) at vnode_if.c:643
#10 0xc06d4209 in vn_read (fp=0xc9bbe3a8, uio=0xec89bcbc, active_cred=0xccde6a00, flags=0, td=0xcba86480) at vnode_if.h:343
#11 0xc0691e0d in dofileread (td=0xcba86480, fd=5, fp=0xc9bbe3a8, auio=0xec89bcbc, offset=Unhandled dwarf expression opcode 0x93
) at file.h:240
#12 0xc0691ca6 in kern_readv (td=0xcba86480, fd=5, auio=0xec89bcbc) at /usr/src/sys/kern/sys_generic.c:192
#13 0xc0691bd1 in read (td=0xcba86480, uap=0x0) at /usr/src/sys/kern/sys_generic.c:116
#14 0xc085e9f7 in syscall (frame=
      {tf_fs = 59, tf_es = -1078001605, tf_ds = -1078001605, tf_edi = 8192, tf_esi = 672845424, tf_ebp = -1077951544, tf_isp = -326517404, tf_ebx = 672769032, tf_edx = 0, tf_ecx = 1, tf_eax = 3, tf_trapno = 32, tf_err = 2, tf_eip = 672715519, tf_cs = 51, tf_eflags = 530, tf_esp = -1077951572, tf_ss = 59})
    at /usr/src/sys/i386/i386/trap.c:983
#15 0xc084d0cf in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200
#16 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)



> 
> Best Regards
> Erich Chen
> ----- Original Message ----- 
> From: "Nikolay Pavlov" <quetzal at zone3000.net>
> To: <freebsd-stable at freebsd.org>
> Sent: Saturday, January 06, 2007 12:59 AM
> Subject: kernel panic on 6.2-RC2 with GENERIC.
> 
> 
> Hello folks.
> I have kernel panic on GENERIC kernel while executing postmark.
> 
> Before panic there were messages like this:
> g_vfs_done():da1s1d[WRITE(offset=772363010048, length=16384)]error = 5
> g_vfs_done():da1s1d[WRITE(offset=772363026432, length=16384)]error = 5
> g_vfs_done():da1s1d[WRITE(offset=772363042816, length=16384)]error = 5
> g_vfs_done():da1s1d[WRITE(offset=772363059200, length=16384)]error = 5
> 
> and
> 
> initiate_write_filepage: already started
> 
> And finaly here is a panic:
> 
> kgdb kernel.debug /mnt/mnt2/crash/vmcore.2
> [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: 
> Undefined symbol "ps_pglobal_lookup"]
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd".
> 
> Unread portion of the kernel message buffer:
> panic: initiate_write_inodeblock_ufs2: already started
> Uptime: 9m27s
> Dumping 3583 MB (2 chunks)
>  chunk 0: 1MB (156 pages) ... ok
>  chunk 1: 3583MB (917216 pages) 3567 3551 3535 3519 3503 3487 3471 3455 
> 3439 3423 3407 3391 3375 3359 3343 3327 3311 3295 3279 3263 3247 3231 3215 
> 3199 3183 3167 3151 3135 3119 3103 3087 3071 3055 3039 3023 3007 2991 2975 
> 2959 2943 2927 2911 2895 2879 2863 2847 2831 2815 2799 2783 2767 2751 2735 
> 2719 2703 2687 2671 2655 2639 2623 2607 2591 2575 2559 2543 2527 2511 2495 
> 2479 2463 2447 2431 2415 2399 2383 2367 2351 2335 2319 2303 2287 2271 2255 
> 2239 2223 2207 2191 2175 2159 2143 2127 2111 2095 2079 2063 2047 2031 2015 
> 1999 1983 1967 1951 1935 1919 1903 1887 1871 1855 1839 1823 1807 1791 1775 
> 1759 1743 1727 1711 1695 1679 1663 1647 1631 1615 1599 1583 1567 1551 1535 
> 1519 1503 1487 1471 1455 1439 1423 1407 1391 1375 1359 1343 1327 1311 1295 
> 1279 1263 1247 1231 1215 1199 1183 1167 1151 1135 1119 1103 1087 1071 1055 
> 1039 1023 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 
> 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 
> 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 
> 143 127 111 95 79 63 47 31 15
> 
> #0  doadump () at pcpu.h:165
> 165     pcpu.h: No such file or directory.
>        in pcpu.h
> (kgdb) bt
> #0  doadump () at pcpu.h:165
> #1  0xc0672a26 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
> #2  0xc0672cbc in panic (fmt=0xc0909c75 "initiate_write_inodeblock_ufs2: 
> already started") at /usr/src/sys/kern/kern_shutdown.c:565
> #3  0xc07c00ca in initiate_write_inodeblock_ufs2 (inodedep=0xc9c54000, 
> bp=0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:4022
> #4  0xc07bf897 in softdep_disk_io_initiation (bp=0xdc9c63b8) at 
> /usr/src/sys/ufs/ffs/ffs_softdep.c:3757
> #5  0xc07c8411 in ffs_geom_strategy (bo=0xc8c5a830, bp=0xdc9c63b8) at 
> buf.h:433
> #6  0xc06b8048 in bufwrite (bp=0xdc9c63b8) at buf.h:426
> #7  0xc07c82d2 in ffs_bufwrite (bp=0xdc9c63b8) at 
> /usr/src/sys/ufs/ffs/ffs_vfsops.c:1740
> #8  0xc06b9a77 in vfs_bio_awrite (bp=0xdc9c63b8) at buf.h:410
> #9  0xc06ba8bd in flushbufqueues (flushdeps=0) at 
> /usr/src/sys/kern/vfs_bio.c:2125
> #10 0xc06ba3bf in buf_daemon () at /usr/src/sys/kern/vfs_bio.c:1999
> #11 0xc065cc5c in fork_exit (callout=0xc06ba2d0 <buf_daemon>, arg=0x0, 
> frame=0xe8f9fd38) at /usr/src/sys/kern/kern_fork.c:821
> #12 0xc087397c in fork_trampoline () at 
> /usr/src/sys/i386/i386/exception.s:208
> 
> 
> This box is using ARECA RAID with GENERIC UP kernel:
> 
> arcmsr0 at pci3:14:0:      class=0x010400 card=0x116017d3 chip=0x116017d3 
> rev=0x00 hdr=0x00
>    vendor   = 'Areca Technology Corporation'
>    device   = 'ARC-1160 16-Port PCI-X to SATA RAID Controller'
>    class    = mass storage
>    subclass = RAID
> 
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  



More information about the freebsd-stable mailing list