Date: Wed, 3 Apr 2002 23:29:28 +0200 (CEST) From: amon@sockar.homeip.net To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/36708: panic: ufs_dirbad: bad dir during pkg_info Message-ID: <200204032129.g33LTSF51596@sockar.homeip.net>
next in thread | raw e-mail | index | archive | help
>Number: 36708 >Category: kern >Synopsis: panic: ufs_dirbad: bad dir during pkg_info >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 03 13:40:04 PST 2002 >Closed-Date: >Last-Modified: >Originator: boulouis@efrei.fr >Release: FreeBSD 4.5-STABLE i386 >Organization: efrei >Environment: System: FreeBSD ra 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Jan 30 02:24:43 CET 2002 root@ra:/usr/obj/usr/src/sys/RA i386 >Description: While doing a pkg_info, the kernel panicked after having displayed 10 packages or so. Except the pkg_info process, the system was idle at this time (as it is most of the time) I juste upgraded to the last 4.5-STABLE but have kept the kernel & vmcore file, so don't hesitate to ask for more information. Config infos : ra:~$ mount /dev/ad0s1a on / (ufs, local) /dev/ad0s1f on /usr (ufs, NFS exported, local) /dev/ad0s1e on /var (ufs, local) procfs on /proc (procfs, local) no softupdates on these slices but UFS_DIRHASH is enabled in the kernel Tagged queuing is enabled on /dev/ad0. (ibm dtla 40Go) gdb diags : (kgdb) bt #0 0xc01639aa in dumpsys () #1 0xc01637bc in boot () #2 0xc0163ba8 in poweroff_wait () #3 0xc02592ba in ufs_dirbad () #4 0xc0258ac3 in ufs_lookup () #5 0xc025dcc5 in ufs_vnoperate () #6 0xc018e2a2 in vfs_cache_lookup () #7 0xc025dcc5 in ufs_vnoperate () #8 0xc0191229 in lookup () #9 0xc0190d14 in namei () #10 0xc01969b5 in lstat () #11 0xc02c8cd1 in syscall2 () #12 0xc02bd1a5 in Xint0x80_syscall () #13 0x8049f11 in ?? () #14 0x8049e78 in ?? () #15 0x8049cf8 in ?? () #16 0x80498ef in ?? () logs : Mar 27 18:28:42 ra sendmail[27122]: g2RHSfp27121: to=<hamster@sockar.homeip.net>, delay=00:00:01, xdelay=00:00:00, mailer=local, pri=33995, relay=local, dsn=2.0.0, sta t=Sent Mar 27 18:44:49 ra syslogd: restart Mar 27 18:44:49 ra /kernel: /var: bad dir ino 21796 at offset 0: mangled entry Mar 27 18:44:49 ra /kernel: panic: ufs_dirbad: bad dir Mar 27 18:44:49 ra /kernel: Mar 27 18:44:49 ra /kernel: syncing disks... 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Mar 27 18:44:49 ra /kernel: giving up on 1 buffers Mar 27 18:44:49 ra /kernel: Uptime: 5d4h18m35s Mar 27 18:44:49 ra /kernel: Mar 27 18:44:49 ra /kernel: dumping to dev #ad/0x20001, offset 2560 Mar 27 18:44:49 ra /kernel: dump ata0: resetting devices .. ad0: invalidating queued requests Mar 27 18:44:49 ra /kernel: done Mar 27 18:44:49 ra /kernel: 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 30 6 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 269 268 267 266 265 2 64 263 262 261 260 259 258 257 256 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 13 9 138 137 136 135 134 133 132 131 130 129 Mar 27 18:44:49 ra /kernel: 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 8 9 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 succeeded Mar 27 18:44:49 ra /kernel: Automatic reboot in 15 seconds - press a key on the console to abort Mar 27 18:44:49 ra /kernel: Rebooting... Mar 27 18:44:49 ra /kernel: Copyright (c) 1992-2002 The FreeBSD Project. <then fsck & savecore> The inode that seemed to cause the panic is the file /var/db/pkg/p5-DBI-1.20 but this file seems ok now Here is the kernel config : machine i386 cpu I686_CPU ident RA maxusers 0 #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options INET #InterNETworking options INET6 options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MFS #Memory Filesystem options SOFTUPDATES options UFS_DIRHASH options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extentions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies device isa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering #options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 device vga0 at isa? device agp # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor options VESA options VGA_WIDTH90 options SC_PIXEL_MODE # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? disable flags 0x20 # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 device sio2 at isa? disable port IO_COM3 irq 5 device sio3 at isa? disable port IO_COM4 irq 9 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device ppi # Parallel port interface device # PCI Ethernet NICs. #device de # DEC/Intel DC21x4x (``Tulip'') device fxp # Intel EtherExpress PRO/100B (82557, 82558) #device tx # SMC 9432TX (83c170 ``EPIC'') #device vx # 3Com 3c590, 3c595 (``Vortex'') #device wx # Intel Gigabit Ethernet Card (``Wiseman'') # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes #device rl # RealTek 8129/8139 device vr # VIA Rhine, Rhine II device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # ISA Ethernet NICs. #device ed0 at isa? port 0x280 irq 10 iomem 0xd8000 #device ex #device ep # WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really # exists only as a PCMCIA device, so there is no ISA attatement needed # and resources will always be dynamically assigned by the pccard code. #device wi # Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will # work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP # mode (the factory default). If you set the switches on your ISA # card for a manually chosen I/O address and IRQ, you must specify # those paremeters here. #device an # The probe order of these is presently determined by i386/isa/isa_compat.c. #device ie0 at isa? port 0x300 irq 10 iomem 0xd0000 #device fe0 at isa? port 0x300 #device le0 at isa? port 0x300 irq 5 iomem 0xd0000 #device lnc0 at isa? port 0x280 irq 10 drq 0 #device cs0 at isa? port 0x300 #device sn0 at isa? port 0x300 irq 10 # requires PCCARD (PCMCIA) support to be activated #device xe0 at isa? # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support #pseudo-device sl 1 # Kernel SLIP #pseudo-device ppp 1 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) pseudo-device md # Memory "disks" pseudo-device gif # IPv6 and IPv4 tunneling #pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) pseudo-device vn pseudo-device snp 3 pseudo-device ccd 4 # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter pseudo-device snp 3 #Snoop device - to look at pty/vty/etc.. # Firewall (ipfw) #options IPFIREWALL #firewall #options IPFIREWALL_VERBOSE #print information about # dropped packets # Firewall (IP Filter) #options IPDIVERT #divert sockets options IPFILTER #ipfilter support options IPFILTER_LOG #ipfilter logging options IPSTEALTH #support for stealth forwarding # bridging #options DUMMYNET #options BRIDGE # sound device pcm # # SMB bus # # System Management Bus support is provided by the 'smbus' device. # Access to the SMBus device is via the 'smb' device (/dev/smb*), # which is a child of the 'smbus' device. # # Supported devices: # smb standard io through /dev/smb* # # Supported SMB interfaces: # iicsmb I2C to SMB bridge with any iicbus interface # bktr brooktree848 I2C hardware interface # intpm Intel PIIX4 Power Management Unit # alpm Acer Aladdin-IV/V/Pro2 Power Management Unit # ichsmb Intel ICH SMBus controller chips (82801AA, 82801AB, 82801BA) # device smbus # Bus support, required for smb below. device intpm device alpm device ichsmb device smb # SMB/CIFS requester options NETSMB options NETSMBCRYPTO options LIBMCHAIN options LIBICONV # SMB/CIFS filesystem options SMBFS options IPSEC options IPSEC_ESP options RANDOM_IP_ID options NBUF=0 options NMBCLUSTERS=4096 >How-To-Repeat: This happened only once so i don't know how to repeat >Fix: dunno >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204032129.g33LTSF51596>