the kernel panics while dump(8)ing /usr, even in single user mode.
This is what DDB says:

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0xffffffff
fault code            = supervisor read, page not present
instruction pointer   = 0x8:0xffffffff
stack pointer         = 0x10:0xc86ebcc0
frame pointer         = 0x10:0xc86ebd5c
code segment          = base 0x0, limit 0xfffff, type 0x1b
                      = DPL 0, pres 1, def32 1, gran 1
processor eflags      = interrupt enabled, resume, IOPL=0
current process       = 46 (dump)
kernel: type 12 trap, code = 0
Stopped at -0x1:

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0xffffffff
fault code            = supervisor read, page not present
instruction pointer   = 0x8:0xc02745ec
stack pointer         = 0x10:0xc86ebb28
frame pointer         = 0x10:0xc86ebb2c
code segment          = base 0x0, limit 0xfffff, type 0x1b
                      = DPL 0, pres 1, def32 1, gran 1
processor eflags      = interrupt enabled, resume, IOPL=0
current process       = 46 (dump)
kernel: type 12 trap, code = 0
Stopped at -0x1:

This is my kernel config:

# MYTWR: Farid's Machine running FreeBSD-5.0 CURRENT
# $Id: MYTWR,v 2.5 2001/02/19 09:43:30 root Exp $

machine         i386
cpu             I586_CPU
ident           MYTWR
maxusers        32

#makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug symbols

options         DDB                     #Enable kernel debugger.

options         MAXMEM="(128*1024)"
options         MAXDSIZ="(256*1024*1024)"   # Allow max. 256 MB of Virtual RAM
options         DFLDSIZ="(128*1024*1024)"   # Can be user-changed up to MAXDSIZ

# strings -n 3 /kernel | sed -n 's/^___//p' > MYTWR.from.kernel
options         INCLUDE_CONFIG_FILE     #Include this file in kerneLl

options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enables FFS soft updates support
#options        MFS                     #Memory Filesystem
#options        MD_ROOT                 #MD is a potential root device
options         NFS                     #Network Filesystem
#options        NFS_ROOT                #NFS usable as root device, NFS required
# The following are optional (loaded when needed)
#options        MSDOSFS                 #MSDOS Filesystem
#options        CD9660                  #ISO 9660 Filesystem
#options        DEVFS                   #Device Filesystem
#options        PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         SCSI_DELAY=8000         #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                  #Needed by SvrV4 Emulator (slower)
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 extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc                     # Floppy Device Controller

# ATA and ATAPI devices
device          ata
device          atadisk                 # ATA disk drives
device          atapicd                 # ATAPI CDROM drives
device          atapifd                 # ATAPI floppy drives
device          atapist                 # ATAPI tape drives
options         ATA_STATIC_ID           #Static device numbering
#options        ATA_ENABLE_ATAPI_DMA    #Enable DMA on ATAPI devices

# SCSI Controllers
device          ahc             # AHA2940 and onboard AIC7xxx devices

# SCSI peripherals
device          scbus           # SCSI bus (required)
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc 1        # Keyboard and PS/2 mouse
device          atkbd           # The AT-Keyboard.

device          vga             # Video driver.
#options        VESA            # Support for VESA Video Modes

# splash screen/screen saver
device          splash

# syscons is the default console driver, resembling an SCO console
device          sc      1
options         MAXCONS=10      # Maximum number of virtual consoles
options         SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"

# Floating point support - do not disable.
device          npx             #Mandatory, don't remove!

# Sound-Support with Luigi's code:
device          sbc             # Soundblaster Bridge-Code to pcm
device          pcm             # PnP/PCI Sound Cards
#device         midi            # Midi interfaces
#device         seq             # Sequencer

# Serial (COM) ports
device          sio             #Serial Devices

# Parallel port
device          ppc             # ISA-Bus parallel port interface
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device
#device         vpo             # Requires scbus and da

# ISA Ethernet NICs.
device          ed              # SMC Ultra, settings in /boot/hints

# Pseudo devices - the number indicates how many units to allocated.
device          random          # Random Entropy Pool.
device          loop            # Network loopback
device          ether           # Ethernet support
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
#device         md              # Memory "disks"
device          bpf             # Berkeley packet filter

# NOTE: vn is depracated, used md instead.
#device         vn              # VNode driver (turns a file into a device)

# ----

options         USER_LDT                #allow user-level control of i386 ldt
options         ROOTDEVNAME=\"ufs:da0s1a\"
options         EXT2FS                  #Linux ext2 filesystem
options         ENABLE_VFS_IOOPT        #vfs.ioopt=0(noopt),1(normal),2(aggr.)

options         _KPOSIX_VERSION=199309L

# This is only needed for PPPoE (more NETGRAPH_* options in NOTES)
#options        NETGRAPH                #netgraph(4) system
#options        NETGRAPH_PPP
#options        NETGRAPH_PPPOE

# The following options are _dangerous_ (but work on my hardware)
#options                AUTO_EOI_1
#options                AUTO_EOI_2              # <- This is especially DANGEROUS!
#options                AHC_ALLOW_MEMIO         # aic7xxx memory mapped i/o

And this is dmesg output:

farid@bsdevil:~> /sbin/dmesg
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #0: Mon Feb 19 11:21:32 CET 2001
    [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYTWR
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 199432836 Hz
CPU: Pentium/P54C (199.43-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
real memory  = 134217728 (131072K bytes)
config> di psm0
config> di sn0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di cs0
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> en ed0
config> po ed0 0x300
config> ir ed0 11
config> iom ed0 0xc8000
config> f ed0 0
config> q
avail memory = 126947328 (123972K bytes)
Preloaded elf kernel "kernel" at 0xc039e000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc039e09c.
Intel Pentium detected, installing workaround for F00F bug
WARNING: size of kinfo_proc (648) should be 644!!!
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 ATA controller> port 0xe800-0xe80f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
pci0: <display, VGA> at 9.0 (no driver attached)
ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0xe000-0xe0ff mem 0xfa000000-0xfa000fff 
irq 12 at device 10.0 on pci0
aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs
isa0: unexpected small tag 14
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
ed0 at port 0x300-0x31f iomem 0xc8000-0xcbfff irq 11 drq 0 on isa0
ed0: address 00:00:c0:9b:e1:a8, type SMC8216/SMC8216C (16 bit) 
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <10 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0401> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0303> can't assign resources
sbc0: <Creative SB AWE64> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on 
pcm1: <SB16 DSP 4.16> on sbc0
ata0-master: DMA limited to UDMA33, non-ATA66 compliant cable
ad0: 19464MB <SAMSUNG SV2044D> [39546/16/63] at ata0-master WDMA2
acd0: CDROM <FX810T4> at ata0-slave using PIO3
Waiting 8 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s1a
cd0 at ahc0 bus 0 target 4 lun 0
cd0: <PLEXTOR CD-R   PX-W1210S 1.00> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DORS-32160W WA6A> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 2063MB (4226725 512 byte sectors: 255H 63S/T 263C)

I'm trying to dump an IDE drive (main drive) on an msdos filesystem
written on a SCSI disk (ahc driver). This is the command (in single
user mode!) that caused the dump:

# cd /msdos/dump/dump.8
# dump -0u -B 10000000 -f usr-fs.l0.dump /usr

/usr was not even mounted at this time.

I just upgraded from CURRENT 2001-01-25 to 2001-02-18:0100 CET.
Everything else _seems_ to work sofar (no libc problems etc...).
The panic is new (I've never had a panic in this situation with
the old kernel). The error above is reproducible.

Another problem is when shutting down: at least one buffer is never
flushed => enforcing fsck at next reboot. Something's wrong.

What's going on here?



Farid Hajji -- Unix Systems and Network Admin | Phone: +49-2131-67-555
Broicherdorfstr. 83, D-41564 Kaarst, Germany  | [EMAIL PROTECTED]
- - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - -
Murphy's Law fails only when you try to demonstrate it, and thus succeeds.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to