Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Mar 2001 16:43:08 +0100
From:      Christian Weisgerber <naddy@mips.inka.de>
To:        freebsd-alpha@freebsd.org
Subject:   Unaligned access in vfs_object_create()
Message-ID:  <20010311164308.A3774@kemoauc.mips.inka.de>

next in thread | raw e-mail | index | archive | help

--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<BWX>
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<DWEN,BWEN>
pcib0: <2117x PCI host bus adapter> on cia0
pci0: <PCI bus> 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: <MII bus> on xl0
nsphy0: <DP83840 10/100 media interface> 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: <PCI-ISA bridge> at device 8.0 on pci0
isa0: <ISA bus> on isab0
pci0: <display, VGA> at 9.0 (no driver attached)
pci0: <mass storage, ATA> at 11.0 (no driver attached)
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x0>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: interrupting at ISA irq 1
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: interrupting at ISA irq 12
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <NEC 72065B or clone> 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: <MC146818A real time clock> at port 0x70-0x71 on isa0
ppc0: <Parallel port> at port 0x3bc-0x3bf irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
lpt0: <Printer> 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: <Creative ViBRA16C> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
sbc0: interrupting at ISA irq 5
pcm0: <SB16 DSP 4.13> 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: <Quantum DLT4000 D991> 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: <MICROP 4343WS X502> 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: <IBM DNES-309170W SA30> 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  <ra=0xfffffc00003f6024,pv=0xfffffc00003fada0>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010311164308.A3774>