Date: Fri, 05 Jun 2009 07:16:08 +0200 From: Bruno Damour <llama@ruomad.net> To: adrian@freebsd.org Cc: freebsd-xen@freebsd.org Subject: Re: freebsd on opensolaris dom0 Message-ID: <4A28AA18.3010808@ruomad.net> In-Reply-To: <4A28A674.6020809@ruomad.net> References: <4A2864E1.40208@ruomad.net> <d763ac660906041941t545df92dna922097d2691e04b@mail.gmail.com> <4A28A674.6020809@ruomad.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>> I'd like whatever information you can provide about the domU panic. It >> should dump you into the kernel debugger. Please type "bt" at the >> (ddb) prompt and then provide me with a copy of the domU console >> output. Don't kill the domain either; I may ask for further ddb >> commands. Here is a full log and the output of bt : The fsck bit is because of previous crash :-( amber ~ # xm start -c dworkin WARNING: loader(8) metadata is missing! 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 #0: Fri May 22 15:45:51 UTC 2009 adrian@agnus.home.cacheboy.net:/home/adrian/work/freebsd/xen/obj-head/home/adrian/work/freebsd/xen/svn/head/sys/XEN WARNING: WITNESS option enabled, expect reduced performance. Xen reported: 2404.110 MHz processor. Timecounter "ixen" frequency 1000000000 Hz quality 0 CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (2404.11-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fb Stepping = 11 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM> AMD Features=0x20000000<LM> AMD Features2=0x1<LAHF> TSC: P-state invariant Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries 1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size 1st-level data cache: 32 KB, 8-way set associative, 64 byte line size L2 cache: 4096 kbytes, 16-way associative, 64 bytes/line real memory = 1073741824 (1024 MB) Physical memory chunk(s): 0x0000000000898000 - 0x000000003edb2fff, 1045540864 bytes (255259 pages) avail memory = 1041543168 (993 MB) APIC: Using the MPTable enumerator. SMP: Added CPU 0 (BSP) ULE: setup cpu 0 cpu=0 irq=0 vector=0 cpu=0 irq=0 vector=1 Event-channel device installed. random: <entropy source, Software, Yarrow> kbd0 at kbdmux0 mem: <memory> Pentium Pro MTRR support enabled nfslock: pseudo-device null: <null device, zero device> io: <I/O> Grant table initialized xenbus0: <Xen Devices> on motherboard xc0: <Xen Console> on motherboard npx0: INT 16 interface Device configuration finished. procfs registered Timecounters tick every 3.906 msec lo0: bpf attached xbd0: 512MB <Virtual Block Device> at device/vbd/51712 on xenbus0 GEOM: new disk xbd0 xbd2: 15360MB <Virtual Block Device> at device/vbd/51744 on xenbus0 xn0: <Virtual Network Interface> at device/vif/0 on xenbus0 xn0: bpf attached xn0: Ethernet address: 00:16:3e:1e:25:20 WARNING: WITNESS option enabled, expect reduced performance. flowtable cleaner started GEOM_LABEL: Label for provider xbd0 is ufsid/4a16ce286b8b4567. GEOM: new disk xbd2 GEOM_LABEL: Label for provider xbd2s1a is ufsid/4a16db167f8af2d3. GEOM_LABEL: Label for provider xbd2s1d is ufsid/4a16db25c19c561d. GEOM_LABEL: Label for provider xbd2s1e is ufsid/4a16db2ef57551da. GEOM_LABEL: Label for provider xbd2s1f is ufsid/4a16db38da6982fb. Trying to mount root from ufs:xbd0 WARNING: / was not properly dismounted warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init No suitable dump device was found. Entropy harvesting: interrupts ethernet point_to_point kickstart. swapon: /dev/xbd1: No such file or directory GEOM_LABEL: Label ufsid/4a16ce286b8b4567 removed. /dev/xbd0: 11109 files, 201951 used, 320640 free (264 frags, 40047 blocks, 0.1% fragmentation) GEOM_LABEL: Label for provider xbd0 is ufsid/4a16ce286b8b4567. GEOM_LABEL: Label ufsid/4a16ce286b8b4567 removed. /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Starting Network: lo0. /etc/rc: WARNING: Dump device does not exist. Savecore not run. Sat May 23 11:16:58 UTC 2009 FreeBSD/i386 (Amnesiac) (xc0) login: root Password: May 23 11:42:36 login: ROOT LOGIN (root) ON xc0 Last login: Sat May 23 11:14:14 on xc0 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 8.0-CURRENT (XEN) #0: Fri May 22 15:45:51 UTC 2009 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. You have new mail. # pwd /root # ll total 28 -rw-r--r-- 2 root wheel 724 May 22 15:47 .cshrc -rw-r--r-- 1 root wheel 80 May 22 15:47 .k5login -rw-r--r-- 1 root wheel 229 May 22 15:47 .login -rw-r--r-- 2 root wheel 189 May 22 15:47 .profile -r--r--r-- 1 root wheel 3921 May 23 11:11 stable-supfile -rw-r--r-- 1 root wheel 19727 May 23 11:05 sysinstall.debug # uname -a FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri May 22 15:45:51 UTC 2009 adrian@agnus.home.cacheboy.net:/home/adrian/work/freebsd/xen/obj-head/home/adrian/work/freebsd/xen/svn/head/sys/XEN i386 # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/xbd0 522591 201955 278829 42% / devfs 1 1 0 100% /dev # ls /mnt/freebsd/ # mount -t ufs /dev/xbd2s1a /mnt/freebsd/ GEOM_LABEL: Label ufsid/4a16db167f8af2d3 removed. WARNING: R/W mount of /mnt/freebsd denied. Filesystem is not clean - run fsck GEOM_LABEL: Label for provider xbd2s1a is ufsid/4a16db167f8af2d3. mount: /dev/xbd2s1a : Operation not permitted # fsck -t ufs /dev/xdb2s1a /dev/xdb2s1a (No such file or directory)Can't stat /dev/xdb2s1a Can't stat /dev/xdb2s1a: No such file or directory Can't stat /dev/xdb2s1a: No such file or directory # fsck -t ufs /dev/xbd2s1a GEOM_LABEL: Label ufsid/4a16db167f8af2d3 removed. ** /dev/xbd2s1a ** Last Mounted on /mnt/freebsd ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 6 files, 15 used, 253800 free (40 frags, 31720 blocks, 0.0% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** GEOM_LABEL: Label for provider xbd2s1a is ufsid/4a16db167f8af2d3. # fsck -t ufs /dev/xbd2s1d GEOM_LABEL: Label ufsid/4a16db25c19c561d removed. ** /dev/xbd2s1d ** Last Mounted on /mnt/freebsd/var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2 files, 2 used, 1008405 free (21 frags, 126048 blocks, 0.0% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** GEOM_LABEL: Label for provider xbd2s1d is ufsid/4a16db25c19c561d. # fsck -t ufs /dev/xbd2s1e GEOM_LABEL: Label ufsid/4a16db2ef57551da removed. ** /dev/xbd2s1e ** Last Mounted on /mnt/freebsd/tmp ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2 files, 2 used, 253813 free (21 frags, 31724 blocks, 0.0% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** GEOM_LABEL: Label for provider xbd2s1e is ufsid/4a16db2ef57551da. # fsck -t ufs /dev/xbd2s1f GEOM_LABEL: Label ufsid/4a16db38da6982fb removed. ** /dev/xbd2s1f ** Last Mounted on /mnt/freebsd/usr ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 4 files, 475934 used, 4614034 free (18 frags, 576752 blocks, 0.0% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** GEOM_LABEL: Label for provider xbd2s1f is ufsid/4a16db38da6982fb. # mount -t ufs /dev/xbd2s1a /mnt/freebsd/ GEOM_LABEL: Label ufsid/4a16db167f8af2d3 removed. # mount -t ufs /dev/xbd2s1d /mnt/freebsd/var/ GEOM_LABEL: Label ufsid/4a16db25c19c561d removed. # mount -t ufs /dev/xbd2s1e /mnt/freebsd/tmp GEOM_LABEL: Label ufsid/4a16db2ef57551da removed. # mount -t ufs /dev/xbd2s1f /mnt/freebsd/usr GEOM_LABEL: Label ufsid/4a16db38da6982fb removed. # cat current-supfile *default host=ftp13.FreeBSD.org *default base=/mnt/freebsd/var/db *default prefix=/mnt/freebsd/usr *default release=cvs tag=. *default delete use-rel-suffix src-all # swapon /dev/xbd2s1b # ifconfig xn0 inet 192.168.0.196 && route add default 192.168.0.1 add net default: gateway 192.168.0.1 # cat /etc/resolv.conf domain ruomad.local nameserver 192.168.0.1 # ping www.freebsd.org PING www.freebsd.org (69.147.83.33): 56 data bytes 64 bytes from 69.147.83.33: icmp_seq=0 ttl=51 time=214.843 ms 64 bytes from 69.147.83.33: icmp_seq=1 ttl=52 time=199.219 ms 64 bytes from 69.147.83.33: icmp_seq=2 ttl=52 time=207.031 ms ^C --- www.freebsd.org ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 199.219/207.031/214.843/6.378 ms # csup current-supfile Connected to 64.74.207.33 Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex xennetif_tx (network transmit lock) r = 0 (0xc39440a0) locked @ /home/adrian/work/freebsd/xen/svn/head/sys/dev/xen/netfront/netfront.c:1118 KDB: stack backtrace: X_db_sym_numargs(c0360308,c3527ab8,c0111ac5,c0383ef6,45e,...) at X_db_sym_numargs+0x146 kdb_backtrace(c0383ef6,45e,ffffffff,c0511c34,c3527af0,...) at kdb_backtrace+0x29 witness_display_spinlock(c036278d,c3527b04,4,1,0,...) at witness_display_spinlock+0x75 witness_warn(5,0,c038c634,c3527b60,c,...) at witness_warn+0x1fd trap(c3527b8c) at trap+0x13e alltraps(c39440a0,0,c0383ef6,45e,6450ffff,...) at alltraps+0x1b xlvbd_add(c3944000,c3527cc8,c00c3814,c03d5d00,c3783738,...) at xlvbd_add+0x32d0 intr_event_execute_handlers(c37097ec,c3783700,c0358a72,4e9,c3783770,...) at intr_event_execute_handlers+0x125 intr_event_add_handler(c3708c30,c3527d38,c03587a5,336,c37097ec,...) at intr_event_add_handler+0x41f fork_exit(c00afcd0,c3708c30,c3527d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc3527d70, ebp = 0 --- Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x2 fault code = supervisor read, page not present instruction pointer = 0x21:0xc0300ad9 stack pointer = 0x29:0xc3527bcc frame pointer = 0x29:0xc3527bfc code segment = base 0x0, limit 0xf9800, type 0x1b = DPL 1, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (irq135: xn) [thread pid 12 tid 100024 ] Stopped at xlvbd_add+0x2039: cmpl $0,0(%edi) db> bt Tracing pid 12 tid 100024 td 0xc3757d80 xlvbd_add(c39440a0,0,c0383ef6,45e,6450ffff,...) at xlvbd_add+0x2039 xlvbd_add(c3944000,c3527cc8,c00c3814,c03d5d00,c3783738,...) at xlvbd_add+0x32d0 intr_event_execute_handlers(c37097ec,c3783700,c0358a72,4e9,c3783770,...) at intr_event_execute_handlers+0x125 intr_event_add_handler(c3708c30,c3527d38,c03587a5,336,c37097ec,...) at intr_event_add_handler+0x41f fork_exit(c00afcd0,c3708c30,c3527d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc3527d70, ebp = 0 --- db>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A28AA18.3010808>