From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 21 23:21:07 2009 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12B45106566C for ; Sat, 21 Mar 2009 23:21:07 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 80AC28FC1F for ; Sat, 21 Mar 2009 23:21:05 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id n2LNKUcI072088; Sun, 22 Mar 2009 00:20:53 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id n2LNKUjQ072087; Sun, 22 Mar 2009 00:20:30 +0100 (CET) (envelope-from marius) Date: Sun, 22 Mar 2009 00:20:30 +0100 From: Marius Strobl To: Andreas Tobler Message-ID: <20090321232030.GA70685@alchemy.franken.de> References: <49C55EBC.1070602@fgznet.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49C55EBC.1070602@fgznet.ch> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current , freebsd-sparc64@freebsd.org Subject: Re: kdb enter when upgrading from 7.1 to current. X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 23:21:07 -0000 On Sat, Mar 21, 2009 at 10:40:12PM +0100, Andreas Tobler wrote: > Hi, > > I get this stacktrace when I try to boot from a Kernel as of today (svn: > 190217). > > My setup is a 7.1 install where I'd like to upgrade to current. > The kernel is built cross, amd64 -> sparc64: > make -j4 buildkernel TARGET_ARCH=sparc64 KERNCONF=GENERIC > > The target machine itself is a u60, details below. > > Does anyone have a pointer to help me, would be great! > > TIA, > Andreas > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > jumping to kernel entry at 0xc0080000. > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #2 r190217M: Sat Mar 21 22:27:46 CET 2009 > > andreast@deuterium_fbsd.andreas.nets:/export/devel/obj/sparc64/export/devel/ > fbsd_svn/src/sys/GENERIC > WARNING: WITNESS option enabled, expect reduced performance. > real memory = 1610612736 (1536 MB) > avail memory = 1554710528 (1482 MB) > cpu0: Sun Microsystems UltraSparc-II Processor (449.99 MHz CPU) > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > ispfw: registered firmware > kbd0 at kbdmux0 > nexus0: > pcib0: mem > 0x1fe00004000-0x1fe00005fff,0x1fe01000000-0x1fe0 > 10000ff,0x1fe00000000-0x1fe0000cfff irq 2033,2030,2031,2021,2024,2034 on > nexus0 > pcib0: Psycho, impl 0, version 4, IGN 0x1f, bus B, 33MHz > initializing counter-timer > Timecounter "pcib0" frequency 1000000 Hz quality 100 > pcib0: DVMA map: 0xfc000000 to 0xffffffff, streaming buffer > pcib0: [FILTER] > pcib0: [FILTER] > pcib0: [GIANT-LOCKED] > pcib0: [ITHREAD] > pcib0: [GIANT-LOCKED] > pcib0: [ITHREAD] > pcib0: [FILTER] > pci0: on pcib0 > ebus0: mem > 0x70000000-0x70ffffff,0x71000000-0x717fffff at dev > ice 1.0 on pci0 > auxio0: addr > 0x1400726000-0x1400726003,0x1400728000-0x140072 > 8003,0x140072a000-0x140072a003,0x140072c000-0x140072c003,0x140072f000-0x140072f0 > 03 on ebus0 > ebus0: addr 0x1400724000-0x1400724003 (no driver attached) > ebus0: addr 0x1400504000-0x1400504002 (no driver attached) > ebus0: addr 0x1400500000-0x1400500007 (no driver attached) > scc0: addr > 0x1400400000-0x140040007f irq 43 > on ebus0 > scc0: [FILTER] > uart0: on scc0 > uart0: [FILTER] > uart0: CTS oflow > uart0: console (9600,n,8,1) > uart1: on scc0 > uart1: [FILTER] > uart1: CTS oflow > uart2: <16550 or compatible> addr 0x14003083f8-0x14003083ff irq 41 on ebus0 > uart2: [FILTER] > uart2: keyboard (1200,n,8,1) > uart2: keyboard not present > uart3: <16550 or compatible> addr 0x14003062f8-0x14003062ff irq 42 on ebus0 > uart3: [FILTER] > ebus0: addr > 0x14003043bc-0x14003043cb,0x1400300398-0x1400300399,0x1400700 > 000-0x140070000f irq 34 (no driver attached) > ebus0: addr > 0x14003023f0-0x14003023f7,0x1400706000-0x140070600f,0x1400 > 720000-0x1400720003 irq 39 (no driver attached) > eeprom0: addr 0x1400000000-0x1400001fff on ebus0 > eeprom0: model mk48t59 > ebus0: addr 0x1000000000-0x10000fffff (no driver attached) > ebus0: addr > 0x1400200000-0x14002000ff,0x1400702000-0x140070200f,0x > 1400704000-0x140070400f,0x1400722000-0x1400722003 irq 35,36 (no driver > attached) > hme0: mem 0x100000-0x107fff at device 1.1 on pci0 > miibus0: on hme0 > qsphy0: PHY 1 on miibus0 > qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > hme0: Ethernet address: 08:00:20:a3:71:69 > hme0: [ITHREAD] > sym0: <875> port 0x1000-0x10ff mem 0x108000-0x1080ff,0x10a000-0x10afff > at device > 3.0 on pci0 > sym0: No NVRAM, ID 7, Fast-20, SE, parity checking > sym0: [ITHREAD] > sym1: <875> port 0x1400-0x14ff mem 0x10c000-0x10c0ff,0x10e000-0x10efff > at device > 3.1 on pci0 > sym1: No NVRAM, ID 7, Fast-20, SE, parity checking > sym1: [ITHREAD] > pcib1: mem > 0x1fe00002000-0x1fe00003fff,0x1fe01800000-0x1fe0 > 18000ff,0x1fe00000000-0x1fe0000cfff irq 2032,2030,2031,2021,2024,2034 on > nexus0 > pcib1: Psycho, impl 0, version 4, IGN 0x1f, bus A, 66MHz > pcib1: [FILTER] > pci1: on pcib1 > pci1: at device 1.0 (no driver attached) > creator0: mem > 0x1fc00000000-0x1fc000003ff,0x1fc00400000-0x1fc005ffff > f,0x1fc00600000-0x1fc007fffff,0x1fc01000000-0x1fc013fffff,0x1fc01400000-0x1fc017 > fffff,0x1fc01800000-0x1fc01bfffff,0x1fc01c00000-0x1fc01ffffff,0x1fc02000000-0x1f > c02ffffff,0x1fc03000000-0x1fc03ffffff,0x1fc04000000-0x1fc043fffff,0x1fc04400000- > 0x1fc047fffff,0x1fc04800000-0x1fc04bfffff,0x1fc04c00000-0x1fc04ffffff,0x1fc05000 > 000-0x1fc05ffffff,0x1fc06000000-0x1fc07ffffff,0x1fc09000000-0x1fc097fffff,0x1fc0 > 9800000-0x1fc09ffffff,0x1fc0a000000-0x1fc0affffff,0x1fc0b000000-0x1fc0b7fffff,0x > 1fc0b800000-0x1fc0bffffff,0x1fc0c000000-0x1fc0c3fffff,0x1fc0c800000-0x1fc0cfffff > f,0x1fc0d000000-0x1fc0d7fffff,0x1fc0d800000-0x1fc0dffffff irq 1925 on nexus0 > creator0: resolution 1152x900 > syscons0: on nexus0 > syscons0: Unknown <16 virtual consoles, flags=0x100> > Timecounter "tick" frequency 449992390 Hz quality 1000 > Timecounters tick every 1.000 msec > Waiting 5 seconds for SCSI devices to settle > (probe6:sym0:0:6:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe6:sym0:0:6:0): CAM Status: SCSI Status Error > (probe6:sym0:0:6:0): SCSI Status: Check Condition > (probe6:sym0:0:6:0): NOT READY asc:3a,0 > (probe6:sym0:0:6:0): Medium not present > (probe6:sym0:0:6:0): Unretryable error > da1 at sym0 bus 0 target 1 lun 0 > da1: Fixed Direct Access SCSI-2 device > da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) > da1: Command Queueing Enabled > da1: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) > da0 at sym0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) > da0: Command Queueing Enabled > da0: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) > cd0 at sym0 bus 0 target 6 lun 0 > cd0: Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 16) > cd0: Attempt to query device size failed: NOT READY, Medium not present > WARNING: WITNESS option enabled, expect reduced performance. > GEOM: da0: adding VTOC8 information. > GEOM: da1: adding VTOC8 information. > Trying to mount root from ufs:/dev/da0a > Loading configuration files. > kernel dumps on /dev/da0b > Entropy harvesting: interrupts ethernet point_to_pointpanic: trap: > memory addres > s not aligned > cpuid = 0 > KDB: enter: panic > [thread pid 41 tid 100042 ] > Stopped at kdb_enter+0x80: ta %xcc, 1 > db> > db> bt > Tracing pid 41 tid 100042 td 0xfffff800213dc370 > panic() at panic+0x20c > trap() at trap+0x570 > -- memory address not aligned sfar=0xf2fe2877 sfsr=0x40029 %o7=0xc06654b8 -- > stack_capture() at stack_capture+0x114 > stack_save_td() at stack_save_td+0x60 > sysctl_kern_proc_kstack() at sysctl_kern_proc_kstack+0x36c > sysctl_root() at sysctl_root+0x1ec > userland_sysctl() at userland_sysctl+0x174 > __sysctl() at __sysctl+0x70 > syscall() at syscall+0x2f0 > -- syscall (202, FreeBSD ELF64, __sysctl) %o7=0x101628 -- > userland() at 0x40445788 > user trace: trap %o7=0x101628 > pc 0x40445788, sp 0x7fdffffd031 > pc 0x101ef8, sp 0x7fdffffd971 > pc 0x102ac4, sp 0x7fdffffdaf1 > pc 0x100ef0, sp 0x7fdffffe451 > pc 0x40208094, sp 0x7fdffffe511 > done Hrm, this looks like the problem solved with r184376. Do you cross-compile with a GCC older than 4.2 maybe? Marius