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-devel

Re: [Xen-devel] [PATCH] fix stubdom memory corruption

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] fix stubdom memory corruption
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Tue, 14 Apr 2009 06:36:52 -0700 (PDT)
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 14 Apr 2009 06:37:22 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239716212; bh=isOBWCc/xQFldXppBEyrkGHbFbl0Df0ZInRx0W6ZtQQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Poq6t9d///rGAiQkv1cSx7IE04QrP9X7Vq9tVTTUCKlhabmU5JOZyCGm2zgTMtoOHPb2Vey4AuxwdPYUJJ9ELrNK/io9iJLH57Iq3qLHG8YmFyae8SqEdUSa3/ReMskc9s5jSVrpNuE0FUY4O9WJo6llRbxakkJUfmg72YfWmGU=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=hmsDtXNGvNCNA5quaH3WBrDvzGhCNprM9i7RI+hGK+hcBp4UN26i5silRQps1D5jLcVzDDfUtDxj0v2xuK0dyX6OLho+7IxqbuXjMHKrNrcA8HxfstzcrN7xdK883VqrtCxNUztloO+xWnfhguW5NVhDxBqKgSPPqLwlMkOVEME=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <668051.29609.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bderzhavets@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
root@ServerXen331:/etc/xen# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                   0  7019     2     r-----    702.0
RHELhvm                                   7  1024     1     ------      0.0

************************
Three logs generated
************************

root@ServerXen331:/var/log/xen# cat qemu-dm-RHELhvm-dm.log
domid: 9
Warning: vlan 0 is not connected to host network
Watching /local/domain/0/device-model/9/logdirty/next-active
Watching /local/domain/0/device-model/9/command
char device redirected to /dev/pts/3
/usr/src/xen-unstable.hg/tools/ioemu-dir/hw/xen_blktap.c:628: Init blktap pipes
xs_read(): vncpasswd get error. /vm/3f8762a5-b806-dca4-6442-0dfeb7da0917/vncpasswd.
medium change watch on `hdc' (index: 0): /dev/loop0
root@ServerXen331:/var/log/xen# cat qemu-dm-RHELhvm-dm.log.1
domid: 8
Warning: vlan 0 is not connected to host network
Watching /local/domain/0/device-model/8/logdirty/next-active
Watching /local/domain/0/device-model/8/command
char device redirected to /dev/pts/3
/usr/src/xen-unstable.hg/tools/ioemu-dir/hw/xen_blktap.c:628: Init blktap pipes
xs_read(): vncpasswd get error. /vm/3f8762a5-b806-dca4-6442-0dfeb7da0917/vncpasswd.
medium change watch on `hdc' (index: 0): /dev/loop0
root@ServerXen331:/var/log/xen# cat  qemu-dm-RHELhvm.log
Using config file "/etc/xen/RHELhvm-dm".
Started domain RHELhvm-dm (id=8)
Using config file "/etc/xen/RHELhvm-dm".
Unexpected error: <type 'exceptions.OSError'>

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 7, in <module>
    main.main(sys.argv)
  File "usr/lib/python2.5/site-packages/xen/xm/main.py", line 2980, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
  File "usr/lib/python2.5/site-packages/xen/xm/main.py", line 3004, in _run_cmd
    return True, cmd(args)
  File "<string>", line 1, in <lambda>
  File "usr/lib/python2.5/site-packages/xen/xm/main.py", line 1360, in xm_importcommand
    cmd.main([command] + args)
  File "usr/lib/python2.5/site-packages/xen/xm/create.py", line 1370, in main
    do_console(sxp.child_value(config, 'name', -1))
  File "usr/lib/python2.5/site-packages/xen/xm/create.py", line 1397, in do_console
    (p, rv) = os.waitpid(cpid, os.WNOHANG)
OSError: [Errno 10] No child processes

Boris

--- On Tue, 4/14/09, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] fix stubdom memory corruption
To: "Stefano Stabellini" <stefano.stabellini@xxxxxxxxxxxxx>
Cc: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Date: Tuesday, April 14, 2009, 9:01 AM

After patching i did:-

# cd /usr/src/xen-unstable.hg/stubdom
# make
# make install

I haven't rebuilt tools.
Started fs-backend in separate session as usual and tried to start stub domain

Boris

--- On Tue, 4/14/09, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] fix stubdom memory corruption
To: "bderzhavets@xxxxxxxxx" <bderzhavets@xxxxxxxxx>
Cc: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Date: Tuesday, April 14, 2009, 8:55 AM

Boris Derzhavets wrote:

> This one and vl.c patch have been applied.
> stubdom has been rebuilt and reinstalled.
>
No improvement.

Are you sure you correctly build the new code and running fs-backend?
I am only asking this because it is really easy to have this kind of
problems with stubdoms.

If your build and test environments are correct, are there any errors in
the logfiles?

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

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