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] Problem with dump-core after restoring machine

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Problem with dump-core after restoring machine
From: Dawid <murkys@xxxxxxxxx>
Date: Sat, 05 Nov 2011 12:12:38 +0100
Delivery-date: Sat, 05 Nov 2011 04:13:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=qFKpLmeLOLG/6bh4stgxS6kfRei8dJMpXQJgMp/sNO4=; b=a2NJv8FoJJ6rRQ2woA0jPh9F2D5Yhl1t4Z4vlcj3QQOYNYyy4rS2T8AK1mhkEF7KzZ WT5XtmzNIa+Ba6Iwth1Inj3PXymTSGPw6PIDesC0hs4yHOZjXkoOZHU4dU/vcUBwX3n5 1E21wGA5BpffQGzthAk4i+hcelpeOLdZ21hDU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4EB32B89.602@xxxxxxxxx>
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: <4EB32B89.602@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1
Problem was caused by shared info page in
xc_domain_dumpcore_via_callback() in libxenctrl.so.4.0.0. I'm not sure
whether HVM guest should have shared info page but in this case after
restoring domain, shared_info_page was mapped to nonexistent memory and
this was failing while trying to do dump core.

tools/libxc/xc_core.c:498 (Xen 4.1.2)

    if ( xc_domain_getinfo(xch, domid, 1, &info) != 1 ) {...}
    /* Map the shared info frame */
    live_shinfo = xc_map_foreign_range(xch, domid, PAGE_SIZE,
                                       PROT_READ, info.shared_info_frame);

After creating hvm domain from a scratch (`xm create winxp`)
shared_info_frame was set to something looking like a proper frame
number. But after restoring domain (`xm restore ./winxp.save`)
shared_info_frame was set to 0xFFFFFFFFFFFFFFFF.

And then it was failing at tools/libxc/xc_core.c:785
sts = dump_rtn(xch, args, (char*)live_shinfo, PAGE_SIZE);

Because I'm not quite acquainted with Xen source code and don't have
much time right now, I haven't searched deeper (just commented out this
code and recompiled libxenctrl.so).

Regards,
Dawid

On 04.11.2011 01:02, Dawid wrote:
> Hello, I have problem with dumping core of hvm domain. Problem occurs
> only after previously restoring machine from a save file. There is no
> problem with dumping core after creating domain from a scratch and then
> trying to dump. Also there is no such problem with paravirtualized domains.
>
> Error message I got (tried using both xm and xl):
>
> xc: error: Failed to write buffer (14 = Bad address): Internal error
> libxl: error: libxl.c:479:libxl_domain_core_dump core dumping domain 14
> to ./dump.2: Bad address
> core dump failed (rc=-3)

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

<Prev in Thread] Current Thread [Next in Thread>