From owner-freebsd-alpha Sun Mar 11 8:30:56 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id BA6E337B71A for ; Sun, 11 Mar 2001 08:30:40 -0800 (PST) (envelope-from naddy@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 14c8jw-0005z5-00; Sun, 11 Mar 2001 17:30:40 +0100 Received: (from naddy@localhost) by kemoauc.mips.inka.de (8.11.3/8.11.1) id f2BFh8c05322 for freebsd-alpha@freebsd.org; Sun, 11 Mar 2001 16:43:08 +0100 (CET) (envelope-from naddy) Date: Sun, 11 Mar 2001 16:43:08 +0100 From: Christian Weisgerber To: freebsd-alpha@freebsd.org Subject: Unaligned access in vfs_object_create() Message-ID: <20010311164308.A3774@kemoauc.mips.inka.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Top of the tree, ca. March 10. My custom kernel suffers an unaligned access fault in vfs_object_create() at the end of kernel startup--presumably when attempting to mount the root or devfs filesystem. The GENERIC kernel does not have this problem. Attached: - boot log - kernel configuration -- Christian "naddy" Weisgerber naddy@mips.inka.de --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="session.log" ff.fe.fd.fc.fb.fa.f9.f8.f7.f6.f5.f3.f2.f1.f0. ef.b0.b1.b2.b3.ee.ed.ec.f4.eb.ea.e9.e8.e7. Digital AlphaPC 164 500 MHz Console V5.5-1, Jul 14 1999 12:37:45 CPU 0 booting (boot dka0.0.0.7.0 -flags a) block 0 of dka0.0.0.7.0 is a valid boot block reading 15 blocks from dka0.0.0.7.0 bootstrap code read in base = 180000, image_start = 0, image_bytes = 1e00 initializing HWRPB at 2000 initializing page table at 172000 initializing machine state setting affinity to the primary CPU jumping to bootstrap code Loading /boot/loader *** no timer interrupts on CPU 0 *** Console: SRM firmware console VMS PAL rev: 0x1000900010115 OSF PAL rev: 0x1000800020117 Switch to OSF PAL code succeeded. FreeBSD/alpha SRM disk boot, Revision 1.1 (naddy@kemoauc.mips.inka.de, Sun Mar 4 22:40:00 CET 2001) Memory: 262144 k Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x254df8+0x35d12 syms=[0x8+0x38dc0+0x8+0x29b8e] /boot/kernel/miibus.ko text=0x14b18 data=0x1a10+0x98 syms=[0x8+0x2550+0x8+0x197a] /boot/kernel/if_xl.ko text=0xc4e0 data=0xbf0+0x20 syms=[0x8+0x12a8+0x8+0xad8] /boot/kernel/snd_pcm.ko text=0x12298 data=0x28f0+0x1020 syms=[0x8+0x2c40+0x8+0x1d30] /boot/kernel/snd_sbc.ko text=0x3638 data=0x728+0x8 syms=[0x8+0xba0+0x8+0x6ec] /boot/kernel/snd_sb16.ko text=0x3988 data=0x780+0x8 syms=[0x8+0xe10+0x8+0x7f1] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Entering kernel at 0xfffffc0000329560... sio1: gdb debugging port 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: Sun Mar 11 04:51:20 CET 2001 naddy@kemoauc.mips.inka.de:/home/obj/usr/src/sys/KEMOAUC EB164 Digital AlphaPC 164 500 MHz, 500MHz 8192 byte page size, 1 processor. CPU: EV56 (21164A) major=7 minor=2 extensions=0x1 OSF PAL rev: 0x1000800020117 real memory = 265904128 (259672K bytes) avail memory = 252952576 (247024K bytes) Preloaded elf kernel "kernel" at 0xfffffc0000694000. Preloaded elf module "miibus.ko" at 0xfffffc00006940c0. Preloaded elf module "if_xl.ko" at 0xfffffc0000694188. Preloaded elf module "snd_pcm.ko" at 0xfffffc0000694250. Preloaded elf module "snd_sbc.ko" at 0xfffffc0000694318. Preloaded elf module "snd_sb16.ko" at 0xfffffc00006943e0. cia0: <2117x Core Logic chipset> cia0: ALCOR/ALCOR2, pass 3 cia0: extended capabilities: 21 pcib0: <2117x PCI host bus adapter> on cia0 pci0: on pcib0 xl0: <3Com 3c905-TX Fast Etherlink XL> port 0x10200-0x1023f irq 2 at device 5.0 on pci0 xl0: interrupting at CIA irq 2 xl0: Ethernet address: 00:60:97:4b:1a:b9 miibus0: on xl0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sym0: <810a> port 0x10100-0x101ff mem 0x82835100-0x828351ff irq 0 at device 6.0 on pci0 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking sym0: interrupting at CIA irq 0 sym1: <875> port 0x10000-0x100ff mem 0x82834000-0x82834fff,0x82835000-0x828350ff irq 1 at device 7.0 on pci0 sym1: Tekram NVRAM, ID 7, Fast-20, SE, parity checking sym1: interrupting at CIA irq 1 isab0: at device 8.0 on pci0 isa0: on isab0 pci0: at 9.0 (no driver attached) pci0: at 11.0 (no driver attached) sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x0> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 atkbd0: interrupting at ISA irq 1 psm0: irq 12 on atkbdc0 psm0: interrupting at ISA irq 12 psm0: model Generic PS/2 mouse, device ID 0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: interrupting at ISA irq 6 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 mcclock0: at port 0x70-0x71 on isa0 ppc0: at port 0x3bc-0x3bf irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode lpt0: on ppbus0 lpt0: Polled port ppc0: interrupting at ISA irq 7 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console sio0: interrupting at ISA irq 4 sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio1: interrupting at ISA irq 3 sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 sbc0: interrupting at ISA irq 5 pcm0: on sbc0 Timecounter "i8254" frequency 1193182 Hz Timecounter "alpha" frequency 499995782 Hz Waiting 10 seconds for SCSI devices to settle sa0 at sym0 bus 0 target 5 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 8) Mounting root from ufs:/dev/da0a da1 at sym1 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da1: 4146MB (8491920 512 byte sectors: 255H 63S/T 528C) da0 at sym1 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) fatal kernel trap: trap entry = 0x4 (unaligned access fault) a0 = 0xe53c3c3e9f6ec9e1 a1 = 0x29 a2 = 0x1b pc = 0xfffffc00003fadd8 ra = 0xfffffc00003f6024 curproc = 0xfffffe0008a41be0 pid = 1, comm = init Stopped at vfs_object_create+0x38: jsr ra,(pv),vfs_object_create+0x3c db> trace vfs_object_create() at vfs_object_create+0x38 getnewvnode() at getnewvnode+0x564 devfs_allocv() at devfs_allocv+0xe0 devfs_root() at devfs_root+0x38 devfs_mount() at devfs_mount+0xf0 vfs_mount() at vfs_mount+0x910 mount() at mount+0xd8 syscall() at syscall+0x3f4 XentSys1() at XentSys1+0x10 db> --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=KEMOAUC # # KEMOAUC -- FreeBSD 5.0-CURRENT (alpha) # # $FreeBSD: src/sys/alpha/conf/GENERIC,v 1.107 2001/02/04 15:35:08 peter Exp $ # $Id: KEMOAUC,v 1.8 2001/03/05 21:16:53 naddy Exp $ machine alpha cpu EV5 ident KEMOAUC maxusers 32 makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options INCLUDE_CONFIG_FILE # Include this file in kernel # Platforms supported options DEC_EB164 # EB164, PC164, PC164LX, PC164SX options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options DEVFS #Device Filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=10000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options KTRACE #ktrace(1) syscall trace support options DDB #Enable the kernel debugger options DDB_UNATTENDED #Don't drop into DDB for a panic options P1003_1B #Posix P1003_1B real-time extentions options _KPOSIX_PRIORITY_SCHEDULING # Standard busses device isa device pci # Floppy drives device fdc # SCSI Controllers device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') # 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 # At keyboard controller device atkbd # at keyboard device psm # psm mouse device vga # VGA screen # splash screen/screen saver device splash # syscons is the default console driver, resembling an SCO console device sc 1 options SC_ALT_MOUSE_IMAGE # simplified mouse cursor in text mode options SC_DISABLE_REBOOT # disable reboot key sequence # real time clock device mcclock # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer # Pseudo devices - the number indicates how many units to allocated. device random # Entropy device device loop # Network loopback device ether # Ethernet support device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif 4 # IPv6 and IPv4 tunneling device faith 1 # IPv6-to-IPv4 relaying/(translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! device bpf #Berkeley packet filter --r5Pyd7+fXNt84Ff3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message