WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] pv_ops domU crashes on pv_ops dom0 (directly at boot)

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-users] pv_ops domU crashes on pv_ops dom0 (directly at boot)
From: Markus Schuster <ml@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Dec 2009 22:35:44 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 09 Dec 2009 13:36:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B1D938F.7040409@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200912052352.06078.ml@xxxxxxxxxxxxxxxxxxxx> <200912062308.50146.ml@xxxxxxxxxxxxxxxxxxxx> <4B1D938F.7040409@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.12.2 (Linux/2.6.29-2-amd64; KDE/4.3.2; x86_64; ; )
On Tuesday 08 December 2009 00:45:19 Jeremy Fitzhardinge wrote:
> On 12/06/09 14:08, Markus Schuster wrote:
> [..]
> > What to do to find out the line in code that crashes?
> 
> If you built the kernel, then:
> [..]
> 
> You'll get best results if you enable CONFIG_DEBUG_INFO.

Sorry for the delay, but I used a Debian binary kernel, so I had to grab 
Debian sources and rebuild it in order to have reproduceable results. I've 
enabled CONFIG_DEBUG_INFO from the start - it produced giant binaries :)


So I've done:
# gdb vmlinux
[..]
This GDB was configured as "x86_64-linux-gnu"...
(gdb) x/i 0xffffffff813861af
0xffffffff813861af <cache_add_dev+46>:  mov    (%rdi),%r14d
(gdb) 
(gdb) list *0xffffffff813861af
0xffffffff813861af is in cache_add_dev 
(/root/linux-2.6/linux-2.6-2.6.31/debian/build/source_amd64_none/arch/x86/kernel/cpu/intel_cacheinfo.c:902).
897     static DECLARE_BITMAP(cache_dev_map, NR_CPUS);
898
899     /* Add/Remove cache interface for CPU device */
900     static int __cpuinit cache_add_dev(struct sys_device * sys_dev)
901     {
902             unsigned int cpu = sys_dev->id;
903             unsigned long i, j;
904             struct _index_kobject *this_object;
905             int retval;
906
(gdb)


The crash looks the following with my build:
[    0.044270] BUG: unable to handle kernel NULL pointer dereference at (null)
[    0.044281] IP: [<ffffffff813861af>] cache_add_dev+0x2e/0x2ae
[    0.044297] PGD 0
[    0.044305] Oops: 0000 [#1] SMP
[    0.044313] last sysfs file:
[    0.044320] CPU 1
[    0.044328] Modules linked in:
[    0.044338] Pid: 1, comm: swapper Tainted: G        W  2.6.31-1-amd64 #1
[    0.044345] RIP: e030:[<ffffffff813861af>]  [<ffffffff813861af>] 
cache_add_dev+0x2e/0x2ae
[    0.044359] RSP: e02b:ffff880017d99e50  EFLAGS: 00010246                     
                                                                              
[    0.044366] RAX: 0000000000000003 RBX: 0000000000000000 RCX: 
000000004125c4ce                                                                
              
[    0.044374] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 
0000000000000000                                                                
              
[    0.044382] RBP: ffffffff8152ff60 R08: 0000000000000200 R09: 
ffffffff8152ff60                                                                
              
[    0.060007] R10: 0000000000000000 R11: ffffffff81200d95 R12: 
00000000fffffffe                                                                
              
[    0.060007] R13: ffffffff8152ffa0 R14: ffffffff8158cee0 R15: 
0000000000000000
[    0.060007] FS:  0000000000000000(0000) GS:ffffc90000018000(0000) 
knlGS:0000000000000000
[    0.060007] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
[    0.060007] CR2: 0000000000000000 CR3: 0000000001001000 CR4: 
0000000000000660
[    0.060007] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
[    0.060007] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
[    0.060007] Process swapper (pid: 1, threadinfo ffff880017d98000, task 
ffff880017d7e740)
[    0.060007] Stack:
[    0.060007]  0000000000000002 00000000ffffffea ffffffff8152ffa0 
ffffffff8158cee0
[    0.060007] <0> 000000004125c4ce 0000000000000000 ffffffff8152ff60 
0000000000000000
[    0.060007] <0> ffffffff8152ffa0 ffffffff8158cee0 0000000000000000 
ffffffff81386570
[    0.060007] Call Trace:
[    0.060007]  [<ffffffff81386570>] ? cache_sysfs_init+0x3b/0x86
[    0.060007]  [<ffffffff8155278e>] ? i8237A_init_sysfs+0x0/0x5e
[    0.060007]  [<ffffffff81386535>] ? cache_sysfs_init+0x0/0x86
[    0.060007]  [<ffffffff8100a0a6>] ? do_one_initcall+0x78/0x1a8
[    0.060007]  [<ffffffff8154ba5b>] ? kernel_init+0x178/0x1e5
[    0.060007]  [<ffffffff81012f2a>] ? child_rip+0xa/0x20
[    0.060007]  [<ffffffff810120e7>] ? int_ret_from_sys_call+0x7/0x1b
[    0.060007]  [<ffffffff8101289d>] ? retint_restore_args+0x5/0x6
[    0.060007]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.060007]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.060007]  [<ffffffff81012f20>] ? child_rip+0x0/0x20
[    0.060007] Code: 89 ff 41 56 41 55 41 54 41 bc fe ff ff ff 55 53 48 83 ec 
28 65 48 8b 04 25 28 00 00 00 48 89 44 24 20 31 c0 66 8b 05 e1 44 29 00 <44> 
8b 37 66 85 c0 0f 84 4d 02 00 00 45 89 f5 0f b7 f8 48 c7 c5
[    0.060007] RIP  [<ffffffff813861af>] cache_add_dev+0x2e/0x2ae
[    0.060007]  RSP <ffff880017d99e50>
[    0.060007] CR2: 0000000000000000
[    0.060007] ---[ end trace a7919e7f17c0a726 ]---
[    0.136850] Kernel panic - not syncing: Attempted to kill init!
[    0.136859] Pid: 1, comm: swapper Tainted: G      D W  2.6.31-1-amd64 #1
[    0.136867] Call Trace:
[    0.136876]  [<ffffffff8138dfb5>] ? panic+0x96/0x14a
[    0.136885]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.136895]  [<ffffffff8100e592>] ? check_events+0x12/0x20
[    0.136904]  [<ffffffff8139091e>] ? _write_lock_irq+0x1b/0x43
[    0.136915]  [<ffffffff81068287>] ? exit_ptrace+0xb7/0x14b
[    0.136924]  [<ffffffff8139091e>] ? _write_lock_irq+0x1b/0x43
[    0.136935]  [<ffffffff81060180>] ? do_exit+0x82/0x698
[    0.136944]  [<ffffffff8105cd79>] ? release_console_sem+0x1a4/0x1ed
[    0.136955]  [<ffffffff8101685f>] ? oops_end+0xc3/0xdf
[    0.136965]  [<ffffffff8103bc9f>] ? no_context+0x1fc/0x220
[    0.136973]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.136982]  [<ffffffff8103be63>] ? __bad_area_nosemaphore+0x1a0/0x1dc
[    0.136992]  [<ffffffff8100e57f>] ? xen_restore_fl_direct_end+0x0/0x1
[    0.137003]  [<ffffffff8105d464>] ? vprintk+0x300/0x343
[    0.137012]  [<ffffffff8100db31>] ? xen_force_evtchn_callback+0x1d/0x37
[    0.137021]  [<ffffffff8103c160>] ? do_page_fault+0xae/0x315
[    0.137030]  [<ffffffff81391115>] ? page_fault+0x25/0x30
[    0.137039]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.137047]  [<ffffffff813861af>] ? cache_add_dev+0x2e/0x2ae
[    0.137056]  [<ffffffff81386570>] ? cache_sysfs_init+0x3b/0x86
[    0.137065]  [<ffffffff8155278e>] ? i8237A_init_sysfs+0x0/0x5e
[    0.137074]  [<ffffffff81386535>] ? cache_sysfs_init+0x0/0x86
[    0.137082]  [<ffffffff8100a0a6>] ? do_one_initcall+0x78/0x1a8
[    0.137091]  [<ffffffff8154ba5b>] ? kernel_init+0x178/0x1e5
[    0.137100]  [<ffffffff81012f2a>] ? child_rip+0xa/0x20
[    0.137108]  [<ffffffff810120e7>] ? int_ret_from_sys_call+0x7/0x1b
[    0.137117]  [<ffffffff8101289d>] ? retint_restore_args+0x5/0x6
[    0.137126]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.137134]  [<ffffffff81200d95>] ? dummycon_dummy+0x0/0x2e
[    0.137143]  [<ffffffff81012f20>] ? child_rip+0x0/0x20

Hope this helps. 

Regards,
Markus

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users