All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: BUG at domain.c:144
@ 2005-04-06  6:38 Ian Pratt
  2005-04-06  7:59 ` Christopher S. Aker
  0 siblings, 1 reply; 37+ messages in thread
From: Ian Pratt @ 2005-04-06  6:38 UTC (permalink / raw)
  To: Christopher S. Aker, xen-devel


> > 2.0-testing seems to work fine for me.
> > Are you sure you're loading the right images?
> 
> Yup.  Here's the grub entry I've been using:
> 
> title xen-unstable
>         kernel /xen.gz dom0_mem=131072 com1=115200,8n1
>         module /vmlinuz-2.6.11-xen0 root=/dev/ram0 
> lvm2root=/dev/vg1/root elevator=cfq ramdisk_size=10240 console=ttyS0
>         module /initrd-lvm2.gz
> 
> [root@host27 xen-unstable]# diff xen/xen.gz /boot/xen.gz
> [root@host27 xen-unstable]# diff linux-2.6.11-xen0/vmlinuz 
> /boot/vmlinuz-2.6.11-xen0
> [root@host27 xen-unstable]#
> 
> > Are you building them  yourself or using our precompiled ones?
> 
> Building them myself, gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)

How recently had you had it working?
If in the last few days, please can you check that an earlier src
snapshot worked OK?
(e.g. X-1.tgz or X-2.tgz). 

There was a big merge yesterday, but I'd be surprised if this was
causing a problem.

Ian

^ permalink raw reply	[flat|nested] 37+ messages in thread
* Re: BUG at domain.c:144
@ 2005-04-14  3:53 Keir Fraser
  2005-04-14 20:59 ` Keir Fraser
  0 siblings, 1 reply; 37+ messages in thread
From: Keir Fraser @ 2005-04-14  3:53 UTC (permalink / raw)
  To: xen-devel list

On 14 Apr 2005, at 03:13, Christopher S. Aker wrote:

> No biggie.  Got the correct output this time, I believe.  Results and 
> binaries:
>
> http://www.theshore.net/~caker/xen/BUGdomain3/?M=D

Ah, got it. I need to be a bit more clever with not-ordinary-RAM pages. 
Your e820 map is a tiny bit unusual in that there is a small piece of 
usable RAM just after the ACPI areas. Since I currently assume non-RAM 
only occurs at the very end of the map (no holes) Xen isn't allowing 
domain0 to map the BIOS DMI tables (it thinks it is ordinary RAM so 
performs normal ownership checks, and the pages do not belong to dom0).

I'll sort out a fix tomorrow...

  -- Keir

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: BUG at domain.c:144
@ 2005-04-13 21:21 Ian Pratt
  2005-04-13 23:12 ` Christopher S. Aker
  0 siblings, 1 reply; 37+ messages in thread
From: Ian Pratt @ 2005-04-13 21:21 UTC (permalink / raw)
  To: Christopher S. Aker, Keir Fraser; +Cc: xen-devel

 > > We need to make Xen crash at the point the MMU update fails. Stick 
> > this at the end of do_mmu_update() in arch/x86/mm.c:
> > 
> >   if ( rc != 0 ) {
> >      show_guest_stack();
> >      BUG();
> > }
> > 
> > Then post the new crash output -- you need only recompile 
> Xen; no need 
> > to recompile XenLinux this time.
> 
> Ok, edited xen/arch/x86/memory.c; here's the new results and binaries:
> 
> http://www.theshore.net/~caker/xen/BUGdomain3/

Thanks. Please can you put the vmlinux image or System.map there too:
the stack trace were interested in is the guest's.

Thanks,
Ian

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: BUG at domain.c:144
@ 2005-04-10 14:38 Ian Pratt
  0 siblings, 0 replies; 37+ messages in thread
From: Ian Pratt @ 2005-04-10 14:38 UTC (permalink / raw)
  To: Christopher S. Aker, Keir Fraser; +Cc: xen-devel

 
> > To get a fault at the actual point the mapping is 
> requested, you need 
> > to change a line in linux/include/asm-xen/asm-i386/pgtable-2level.h.
> > The line is:
> > #define set_pte(pteptr, pteval) (*(pteptr) = pteval) and should be 
> > changed to:
> > #define set_pte(pteptr, pteval) \
> >     xen_l1_entry_update((pteptr), (pteval).pte_low)
> > 
> > If you build and retry, we should get a guest backtrace at the code 
> > point that is making the invalid mapping.
> 
> Done, results and binaries:
> 
> http://www.theshore.net/~caker/xen/BUGdomain/BUGdomain-dmesg3.txt
> http://www.theshore.net/~caker/xen/BUGdomain/
> 
> However, it doesn't appear to be different.

I'm pretty sure the vmlinuz xen0 binary you booted didn't have this
change in it -- it still seems to be using wrpt instead of the queued
interface.

The easiest (but slowest) thing to do is to edit the file in the sparse
tree, then do a 'make -j4 world'.

[If you edited the file in-place and did make world you'd have lost the
change. ]

Thanks,
Ian

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: BUG at domain.c:144
@ 2005-04-08  8:00 Ian Pratt
  2005-04-08 10:05 ` Christopher S. Aker
  2005-04-08 10:05 ` Keir Fraser
  0 siblings, 2 replies; 37+ messages in thread
From: Ian Pratt @ 2005-04-08  8:00 UTC (permalink / raw)
  To: Christopher S. Aker, xen-devel

> 1.1784 - BUGs
> 1.1779 - BUGs
> 1.1777 - BUGs
> 1.1774 - boots correctly
> 
> There are only four changesets between 1.1774 and 1.1777, and 
> of course one of them is huge -- the 2.6.11 merge.  Also, the 
> objdump didn't tell me anything useful.  I have the objdump 
> and the stack trace if anyone wants them.  I think I'm at the 
> end of my abilities to narrow it down any further.

Thanks Chris, this is very useful.

It would be helpful if you could use a debug=y build of Xen and add a
show_guest_stack() just before the BUG(). Further, it might be revealing
to hack the following into linux-2.6.11-xen0/kernel/printk.c:vprintk to
see how far the dom0 boot it is getting.

        /* Emit the output into the temporary buffer */
        printed_len = vscnprintf(printk_buf, sizeof(printk_buf), fmt,
args);
+ HYPERVISOR_console_io( CONSOLEIO_write, strlen(printk_buf),
printk_buf))

Is there anything 'unusual' about the machine you're using?

Thanks,
Ian

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: BUG at domain.c:144
@ 2005-04-06  0:03 Ian Pratt
  2005-04-06  0:35 ` Christopher S. Aker
  0 siblings, 1 reply; 37+ messages in thread
From: Ian Pratt @ 2005-04-06  0:03 UTC (permalink / raw)
  To: Christopher S. Aker, xen-devel

2.0-testing seems to work fine for me.
Are you sure you're loading the right images? Are you building them
yourself or using our precompiled ones?

Ian

> I get a similar BUG in both today's -testing and -unstable 
> trees (below is the -testing dump)
> 
> (XEN) Scrubbing Free RAM: 
> ........................................done.
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to 
> switch input to Xen).
> (XEN) BUG at domain.c:144
> (XEN) CPU:    0
> (XEN) EIP:    0808:[<fc50554e>]
> (XEN) EFLAGS: 00210296
> (XEN) eax: 00000000   ebx: fcff4d20   ecx: 00000000   edx: 00000000
> (XEN) esi: 00000000   edi: 000003ef   ebp: 00000000   esp: fc503f04
> (XEN) ds: 0810   es: 0810   fs: 0810   gs: 0810   ss: 0810
> (XEN) Stack trace from ESP=fc503f04:
> (XEN) fc52a9c0 fc52aa16 00000090 00000bac 00000000 00000000 
> 00000000 [fc51d609]
> (XEN)        ffbf1000 fc503f70 00000004 fcff4d94 fcff4d20 
> fcff4d20 00000454 c001dbac
> (XEN)        fcff4d94 00000000 00000004 fcff4d20 00000000 
> 000002eb ffbf1000 00000000
> (XEN)        fef00074 00000000 f7ef9063 0141d061 feffbfbc 
> 0141d066 0141d061 fcff4d20
> (XEN)        fbffc001 fc503fb8 00000000 [fc52511e] 00000000 
> fbffa000 00000007
> fcff4d20
> (XEN)        fcff4d20 f7efa000 00000113 [fc5290fe] fc503fb8 
> 00000001 fbeeb000
> fbeeb000
> (XEN)        f7efa000 00000113 00000000 fbffc000 000e0000 
> c0113fb2 00000819 00210286
> (XEN)        c03fbee4 00000821 00000821 00000821 00000000 
> 00000000 fcff4d20
> (XEN) Call Trace from ESP=fc503f04: [<fc51d609>] [<fc52511e>] 
> [<fc5290fe>]
> 
> ****************************************
> CPU0 FATAL TRAP: vector = 6 (invalid operand) 
> [error_code=0000] Aieee! CPU0 is toast...
> ****************************************
> 
> -Chris
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 

^ permalink raw reply	[flat|nested] 37+ messages in thread
* BUG at domain.c:144
@ 2005-04-05 23:27 Christopher S. Aker
  0 siblings, 0 replies; 37+ messages in thread
From: Christopher S. Aker @ 2005-04-05 23:27 UTC (permalink / raw)
  To: xen-devel

Hello,

I get a similar BUG in both today's -testing and -unstable trees (below is
the -testing dump)

(XEN) Scrubbing Free RAM: ........................................done.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen).
(XEN) BUG at domain.c:144
(XEN) CPU:    0
(XEN) EIP:    0808:[<fc50554e>]
(XEN) EFLAGS: 00210296
(XEN) eax: 00000000   ebx: fcff4d20   ecx: 00000000   edx: 00000000
(XEN) esi: 00000000   edi: 000003ef   ebp: 00000000   esp: fc503f04
(XEN) ds: 0810   es: 0810   fs: 0810   gs: 0810   ss: 0810
(XEN) Stack trace from ESP=fc503f04:
(XEN) fc52a9c0 fc52aa16 00000090 00000bac 00000000 00000000 00000000 [fc51d609]
(XEN)        ffbf1000 fc503f70 00000004 fcff4d94 fcff4d20 fcff4d20 00000454 c001dbac
(XEN)        fcff4d94 00000000 00000004 fcff4d20 00000000 000002eb ffbf1000 00000000
(XEN)        fef00074 00000000 f7ef9063 0141d061 feffbfbc 0141d066 0141d061 fcff4d20
(XEN)        fbffc001 fc503fb8 00000000 [fc52511e] 00000000 fbffa000 00000007
fcff4d20
(XEN)        fcff4d20 f7efa000 00000113 [fc5290fe] fc503fb8 00000001 fbeeb000
fbeeb000
(XEN)        f7efa000 00000113 00000000 fbffc000 000e0000 c0113fb2 00000819 00210286
(XEN)        c03fbee4 00000821 00000821 00000821 00000000 00000000 fcff4d20
(XEN) Call Trace from ESP=fc503f04: [<fc51d609>] [<fc52511e>] [<fc5290fe>]

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

-Chris

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2005-04-14 23:03 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06  6:38 BUG at domain.c:144 Ian Pratt
2005-04-06  7:59 ` Christopher S. Aker
2005-04-06  8:08   ` Keir Fraser
2005-04-07 18:53     ` Christopher S. Aker
2005-04-07 19:34       ` Bin Ren
2005-04-07 20:34         ` Christopher S. Aker
2005-04-07 19:35       ` Keir Fraser
2005-04-07 19:39         ` Christopher S. Aker
2005-04-07 20:06       ` BK question " Adam Heath
2005-04-07 22:48       ` Chris Wright
2005-04-07 23:19       ` Christopher S. Aker
2005-04-08  0:37         ` Bin Ren
2005-04-08  7:42           ` M.A. Williamson
2005-04-08  5:12         ` Christopher S. Aker
2005-04-08  9:49           ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2005-04-14  3:53 Keir Fraser
2005-04-14 20:59 ` Keir Fraser
2005-04-14 23:03   ` Christopher S. Aker
2005-04-13 21:21 Ian Pratt
2005-04-13 23:12 ` Christopher S. Aker
2005-04-10 14:38 Ian Pratt
2005-04-08  8:00 Ian Pratt
2005-04-08 10:05 ` Christopher S. Aker
2005-04-08 10:05 ` Keir Fraser
2005-04-08 10:19   ` Christopher S. Aker
2005-04-08 12:14     ` Keir Fraser
2005-04-08 19:54       ` Christopher S. Aker
2005-04-10 23:20         ` Keir Fraser
2005-04-12  4:02           ` Christopher S. Aker
2005-04-13 18:16             ` Christopher S. Aker
2005-04-13 19:33               ` Keir Fraser
2005-04-13 20:11                 ` Christopher S. Aker
2005-04-14  1:39                   ` Keir Fraser
2005-04-14  2:13                     ` Christopher S. Aker
2005-04-06  0:03 Ian Pratt
2005-04-06  0:35 ` Christopher S. Aker
2005-04-05 23:27 Christopher S. Aker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.