Skip to contentSkip to conversation

Xen crash

DISCUSSION Jody Belka 3 participants 13 messages Dec 12, 2004 – Dec 15, 2004

lore
Share & tools
lore

Jody Belka

author
#0 lore raw

Hi,

i just carried out a major upgrade of one of my servers, moving from a mid-july xen-unstable/xenlinux2.4.26 to todays xen-unstable/xenlinux2.6.9. After building xen and a dom0 kernel and transferring them over, i attempted to boot up but i'm getting this crash

CPU0 FATAL TRAP: vector = 6 (invalid operand)

immediately after xen has finished scrubbing RAM. I've attached the console log of the boot. I can put any of the build deliverables up somewhere or email them if they'll help. Hope someone else has a clue where to start, as i'm completely lost with this level of stuff.

Thanks,

J

Signature · 9 lines
Jody Belka
knew (at) pimb (dot) org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
author
#1 lore raw
Quoted 1 line · Jody Belka

I've attached the console log of the boot.

Well, i would have done if i hadn't totally mucked up. Second time lucky :)

J

Signature · 2 lines
Jody Belka
knew (at) pimb (dot) org

(XEN) Initialised 1015MB memory (260080 pages) on a 1015MB machine (XEN) Xen heap size is 10744KB
(XEN) CPU0: Before vendor init, caps: 0383f9ff c1c3f9ff 00000000, vendor = 2 (XEN) CPU caps: 0383f9ff c1c3f9ff 00000000 00000000
(XEN) ACPI: RSDP (v000 VIA694 ) @ 0x000f8050
(XEN) ACPI: RSDT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 (XEN) ACPI: FADT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3040 (XEN) ACPI: DSDT (v001 VIA694 AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000 (XEN) Using scheduler: Borrowed Virtual Time (bvt)
(XEN) Initializing CPU#0
(XEN) Detected 1300.089 MHz processor.
(XEN) Local APIC disabled by BIOS -- reenabling.
(XEN) Found and enabled local APIC!
(XEN) CPU0: Before vendor init, caps: 0383fbff c1c3fbff 00000000, vendor = 2 (XEN) CPU caps: 0383fbff c1c3fbff 00000000 00000000
(XEN) CPU0 booted
(XEN) SMP motherboard not detected.
(XEN) enabled ExtINT on CPU#0
(XEN) ESR value before enabling vector: 00000000
(XEN) ESR value after enabling vector: 00000000
(XEN) Using local APIC timer interrupts.
(XEN) Calibrating APIC timer for CPU0...
(XEN) ..... CPU speed is 1300.0979 MHz.
(XEN) ..... Bus speed is 200.0150 MHz.
(XEN) ..... bus_scale = 0x0000CCD7
(XEN) Time init:
(XEN) .... System Time: 12508363ns

(XEN) .... cpu_freq:    00000000:4D7DCBF0
(XEN) .... scale:       00000001:89D1A5EA
(XEN) .... Wall Clock:  1102854222s 30000us

(XEN) PCI: PCI BIOS revision 2.10 entry at 0xfb5c0, last bus=1
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Probing PCI hardware (bus 00)
(XEN) Disabling VIA memory write queue (PCI ID 3112, rev 00): [55] f9 & 1f -> 19
(XEN) PCI: Using IRQ router VIA [1106/0686] at 00:07.0
(XEN) Applying VIA southbridge workaround.
(XEN) PCI: Disabling Via external APIC routing
(XEN) mtrr: v2.0 (20020519)
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen-ELF header found: 'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE' (XEN) PHYSICAL MEMORY ARRANGEMENT:

(XEN)  Kernel image:  02800000->02b54ef4
(XEN)  Initrd image:  02b55000->03b55000
(XEN)  Dom0 alloc.:   03c00000->07c00000
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: c0100000->c049d1f8
(XEN)  Init. ramdisk: c049e000->c149e000
(XEN)  Phys-Mach map: c149e000->c14ae000
(XEN)  Page tables:   c14ae000->c14b5000
(XEN)  Start info:    c14b5000->c14b6000
(XEN)  Boot stack:    c14b6000->c14b7000
(XEN)  TOTAL:         c0000000->c1800000
(XEN)  ENTRY ADDRESS: c0100000

(XEN) Scrubbing DOM0 RAM: .done.
(XEN) Initrd len 0x1000000, start at 0xc049e000
(XEN) Give DOM0 read access to all PCI devices
(XEN) Scrubbing Free RAM: ...........done.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen). (XEN) (file=extable.c, line=70) Pre-exception: fc526ced -> fc529d50 (XEN) spurious 8259A interrupt: IRQ7.
(XEN) (file=traps.c, line=545) GPF (0060): fc529d95 -> fc529da6
(XEN) (file=extable.c, line=70) Pre-exception: fc526d2f -> fc529dcb (XEN) (file=traps.c, line=545) GPF (0060): fc529d95 -> fc529da6
(XEN) BUG at domain.c:143
(XEN) CPU: 0
(XEN) EIP: 0808:[<fc5061be>]
(XEN) EFLAGS: 00211296

(XEN) eax: 00000000   ebx: fc58d9e0   ecx: 00000000   edx: fc4b8f00
(XEN) esi: 000d0060   edi: c0454220   ebp: c042dfc4   esp: fc503f9c
(XEN) ds: 0810   es: 0810   fs: 0810   gs: 0810   ss: 0810
(XEN) Stack trace from ESP=fc503f9c:
(XEN) fc52bb31 fc52bb80 0000008f 000d0060 [fc529da6] 00000808 fc58d9e0 c0104000 
(XEN)        c0306d70 c0104000 c14b5200 c0454220 c042dfc4 c042d000 000d0060 c010ddd8 
(XEN)        00000061 00201246 c042df98 00000821 00000821 00000821 00000000 00000000 
(XEN)        fc58d9e0 

(XEN) Call Trace from ESP=fc503f9c: [<fc529da6>]

****************************************
CPU0 FATAL TRAP: vector = 6 (invalid operand)
[error_code=0000]
Aieee! CPU0 is toast...
****************************************

Reboot in five seconds...

#2 lore raw
In reply to Jody Belka
Quoted 7 lines

Hi,

i just carried out a major upgrade of one of my servers, moving from a mid-july xen-unstable/xenlinux2.4.26 to todays xen-unstable/xenlinux2.6.9. After building xen and a dom0 kernel and transferring them over, i attempted to boot up but i'm getting this crash

Quoted 6 lines

CPU0 FATAL TRAP: vector = 6 (invalid operand)

immediately after xen has finished scrubbing RAM. I've attached the console log of the boot. I can put any of the build deliverables up somewhere or email them if they'll help. Hope someone else has a clue where to start, as i'm completely lost with this level of stuff.

Dying that early is rather odd if you definitely built the Xen and XenLinux images at the same time. I wonder if it is due to the size of the initrd (unlikely, as a 16MB initrd isn't *that* big and we often test with an initrd). Might be worth trying to boot without an initrd and see if the boot gets further.

If you point me at your Xen and Linux images are, I'll try them out myself.

-- Keir

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

author
#3 lore raw
Quoted 5 lines · Keir Fraser

Dying that early is rather odd if you definitely built the Xen and XenLinux images at the same time. I wonder if it is due to the size of the initrd (unlikely, as a 16MB initrd isn't *that* big and we often test with an initrd). Might be worth trying to boot without an initrd and see if the boot gets further.

Just tried booting without and it crashed at exactly the same point.

Quoted 2 lines

If you point me at your Xen and Linux images are, I'll try them out myself.

I've uploaded everything to http://test.pimb.org/xen/

J

Signature · 9 lines
Jody Belka
knew (at) pimb (dot) org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
#4 lore raw
Quoted 7 lines · Keir Fraser
Quoted 5 lines

Dying that early is rather odd if you definitely built the Xen and XenLinux images at the same time. I wonder if it is due to the size of the initrd (unlikely, as a 16MB initrd isn't *that* big and we often test with an initrd). Might be worth trying to boot without an initrd and see if the boot gets further.

Quoted 6 lines

Just tried booting without and it crashed at exactly the same point.

Quoted 2 lines

If you point me at your Xen and Linux images are, I'll try them out myself.

I've uploaded everything to http://test.pimb.org/xen/

It's something in your XenLinux configuration. Not sure what...

-- Keir

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#5 lore raw
Quoted 7 lines
Quoted 7 lines · Keir Fraser
Quoted 5 lines

Dying that early is rather odd if you definitely built the Xen and XenLinux images at the same time. I wonder if it is due to the size of the initrd (unlikely, as a 16MB initrd isn't *that* big and we often test with an initrd). Might be worth trying to boot without an initrd and see if the boot gets further.

Quoted 8 lines
Quoted 6 lines

Just tried booting without and it crashed at exactly the same point.

Quoted 2 lines

If you point me at your Xen and Linux images are, I'll try them out myself.

I've uploaded everything to http://test.pimb.org/xen/

It's something in your XenLinux configuration. Not sure what...

Okay, I checked in a fix so that 3DNOW extensions will work. The other problem is that you have configured 8250 serial-line support into your kernel, which you almost certainly don't want to do.

So, pull latest changes and remove folloiwng option from your config and you should be set:
Device Drivers
-> Character devices
-> Serial drivers
-> 8250/16550and compatible serial support

-- Keir

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

author
#6 lore raw
Quoted 1 line · Keir Fraser

Okay, I checked in a fix so that 3DNOW extensions will work.

Cool, it's working now. That's great, thanks.

Quoted 2 lines

The other problem is that you have configured 8250 serial-line support into your kernel, which you almost certainly don't want to do.

Oops :) Been a while since i've configured a xen kernel, and never done a 2.6 one before. Taken serial port options out now, ta.

J

Signature · 9 lines
Jody Belka
knew (at) pimb (dot) org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
#7 lore raw
Quoted 11 lines · Keir Fraser
Quoted 1 line

Okay, I checked in a fix so that 3DNOW extensions will work.

Cool, it's working now. That's great, thanks.

Quoted 2 lines

The other problem is that you have configured 8250 serial-line support into your kernel, which you almost certainly don't want to do.

Oops :) Been a while since i've configured a xen kernel, and never done a 2.6 one before. Taken serial port options out now, ta.

Great! Let me know if 2.4 still fails for you with 8250 driver removed...

-- Keir

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

author
#8 lore raw
Quoted 4 lines · Keir Fraser
Quoted 2 lines

Oops :) Been a while since i've configured a xen kernel, and never done a 2.6 one before. Taken serial port options out now, ta.

Great! Let me know if 2.4 still fails for you with 8250 driver removed...

Ok, got round to trying out 2.4 again, and having removed all the serial options i still get a crash. Log attached, and files in the same place as the 2.6 ones were.

J

Signature · 2 lines
Jody Belka
knew (at) pimb (dot) org

__ __ ____ ___
\ \/ /___ _ __ |___ \ / _ \

  \  // _ \ '_ \    __) || | | |
  /  \  __/ | | |  / __/ | |_| |

/_/\_\___|_| |_| |_____(_)___/

http://www.cl.cam.ac.uk/netos/xen
University of Cambridge Computer Laboratory

Xen version 2.0 ([email protected]) (gcc version 3.3.4 (Debian 1:3.3.4-9ubuntu5)) Wed Dec 15 05:09:57 CET 2004 Latest ChangeSet: 2004/12/12 17:03:10 1.1655 41bc79ceEW-73wVlI6NibKOC93EuZg

(XEN) Initialised 1015MB memory (260080 pages) on a 1015MB machine (XEN) Xen heap size is 10744KB
(XEN) CPU0: Before vendor init, caps: 0383f9ff c1c3f9ff 00000000, vendor = 2 (XEN) CPU caps: 0383f9ff c1c3f9ff 00000000 00000000
(XEN) ACPI: RSDP (v000 VIA694 ) @ 0x000f8050
(XEN) ACPI: RSDT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3000 (XEN) ACPI: FADT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x3f7f3040 (XEN) ACPI: DSDT (v001 VIA694 AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000 (XEN) Using scheduler: Borrowed Virtual Time (bvt)
(XEN) Initializing CPU#0
(XEN) Detected 1300.096 MHz processor.
(XEN) Local APIC disabled by BIOS -- reenabling.
(XEN) Found and enabled local APIC!
(XEN) CPU0: Before vendor init, caps: 0383fbff c1c3fbff 00000000, vendor = 2 (XEN) CPU caps: 0383fbff c1c3fbff 00000000 00000000
(XEN) CPU0 booted
(XEN) SMP motherboard not detected.
(XEN) enabled ExtINT on CPU#0
(XEN) ESR value before enabling vector: 00000000
(XEN) ESR value after enabling vector: 00000000
(XEN) Using local APIC timer interrupts.
(XEN) Calibrating APIC timer for CPU0...
(XEN) ..... CPU speed is 1300.0269 MHz.
(XEN) ..... Bus speed is 200.0041 MHz.
(XEN) ..... bus_scale = 0x0000CCD7
(XEN) Time init:
(XEN) .... System Time: 12805240ns

(XEN) .... cpu_freq:    00000000:4D7DE450
(XEN) .... scale:       00000001:89D12A0A
(XEN) .... Wall Clock:  1103085755s 30000us

(XEN) PCI: PCI BIOS revision 2.10 entry at 0xfb5c0, last bus=1
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Probing PCI hardware (bus 00)
(XEN) Disabling VIA memory write queue (PCI ID 3112, rev 00): [55] f9 & 1f -> 19 (XEN) PCI: Using IRQ router VIA [1106/0686] at 00:07.0
(XEN) Applying VIA southbridge workaround.
(XEN) PCI: Disabling Via external APIC routing
(XEN) mtrr: v2.0 (20020519)
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen-ELF header found: 'GUEST_OS=linux,GUEST_VER=2.4,XEN_VER=2.0,VIRT_BASE=0xC0000000' (XEN) PHYSICAL MEMORY ARRANGEMENT:

(XEN)  Kernel image:  02800000->02a24998
(XEN)  Initrd image:  02a25000->03a25000
(XEN)  Dom0 alloc.:   03c00000->06c00000
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: c0100000->c0375118
(XEN)  Init. ramdisk: c0376000->c1376000
(XEN)  Phys-Mach map: c1376000->c1382000
(XEN)  Page tables:   c1382000->c1389000
(XEN)  Start info:    c1389000->c138a000
(XEN)  Boot stack:    c138a000->c138b000
(XEN)  TOTAL:         c0000000->c1800000
(XEN)  ENTRY ADDRESS: c0100000

(XEN) Scrubbing DOM0 RAM: .done.
(XEN) Initrd len 0x1000000, start at 0xc0376000
(XEN) Give DOM0 read access to all PCI devices
(XEN) Scrubbing Free RAM: ...........done.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen). (XEN) (file=extable.c, line=70) Pre-exception: fc529f6d -> fc529ff4 (XEN) (file=traps.c, line=443) Page fault: fc52a009 -> fc506130
(XEN) BUG at domain.c:143
(XEN) CPU: 0
(XEN) EIP: 0808:[<fc5061be>]
(XEN) EFLAGS: 00210296

(XEN) eax: 00000000   ebx: fc58d9e0   ecx: 00000000   edx: fc4b8f00
(XEN) esi: 000e0003   edi: 00000000   ebp: c030ff14   esp: fc503f9c
(XEN) ds: 0810   es: 0810   fs: 0810   gs: 0810   ss: 0810
(XEN) Stack trace from ESP=fc503f9c:
(XEN) fc52bb31 fc52bb80 0000008f 000e0003 [fc506130] 00000808 fc58d9e0 c0001000 
(XEN)        00000000 c030e000 c0001000 00000000 c030ff14 00000000 000e0000 00000000 
(XEN)        00000819 00210246 c0001010 00000821 00000821 00000821 00000821 00000821 
(XEN)        fc58d9e0 

(XEN) Call Trace from ESP=fc503f9c: [<fc506130>]

****************************************
CPU0 FATAL TRAP: vector = 6 (invalid operand)
[error_code=0000]
Aieee! CPU0 is toast...
****************************************

Reboot in five seconds...

#9 lore raw
Quoted 9 lines · Keir Fraser
Quoted 4 lines
Quoted 2 lines

Oops :) Been a while since i've configured a xen kernel, and never done a 2.6 one before. Taken serial port options out now, ta.

Great! Let me know if 2.4 still fails for you with 8250 driver removed...

Ok, got round to trying out 2.4 again, and having removed all the serial options i still get a crash. Log attached, and files in the same place as the 2.6 ones were.

Now fixed.

-- Keir

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

author
#10 lore raw
Quoted 5 lines · Keir Fraser
Quoted 3 lines

Ok, got round to trying out 2.4 again, and having removed all the serial options i still get a crash. Log attached, and files in the same place as the 2.6 ones were.

Now fixed.

Verified working on this end. Thanks,

J

Signature · 9 lines
Jody Belka
knew (at) pimb (dot) org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
#11 lore raw
In reply to Jody Belka
Quoted 5 lines
Quoted 2 lines

The other problem is that you have configured 8250 serial-line support into your kernel, which you almost certainly don't want to do.

Oops :) Been a while since i've configured a xen kernel, and never done a 2.6 one before. Taken serial port options out now, ta.

Hmm, I wander if we make things more user friendly in this respect by removing COM1 from dom0's io bitmap if Xen has already claimed it? Hopefully the probe would then fail and the boot would continue. Maybe COM2 could even be used directly...

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

author
#12 lore raw
In reply to Jody Belka
Quoted 1 line · Jody Belka

mid-july xen-unstable/xenlinux2.4.26 to todays xen-unstable/xenlinux2.6.9.

Just tried 2.4.28 with today's xen-unstable and got the same error. I guessed it probably would, but thought i'd be thorough just in case.

J

Signature · 9 lines
Jody Belka
knew (at) pimb (dot) org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/