From: Boris Derzhavets Subject: Re: [PATCH] fix stubdom memory corruption Date: Tue, 14 Apr 2009 06:36:52 -0700 (PDT) Message-ID: <543768.85978.qm@web56102.mail.re3.yahoo.com> References: <668051.29609.qm@web56104.mail.re3.yahoo.com> Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0625564891==" Return-path: In-Reply-To: <668051.29609.qm@web56104.mail.re3.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============0625564891== Content-Type: multipart/alternative; boundary="0-1713661968-1239716212=:85978" --0-1713661968-1239716212=:85978 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable root@ServerXen331:/etc/xen# xm list Name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ID=A0=A0 Mem VCPUs=A0=A0= =A0=A0=A0 State=A0=A0 Time(s) Domain-0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0 7019=A0=A0=A0=A0 2=A0=A0=A0=A0 r-= ----=A0=A0=A0 702.0 RHELhvm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 7=A0 1024=A0=A0=A0=A0 1=A0=A0=A0=A0 --= ----=A0=A0=A0=A0=A0 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 p= ipes xs_read(): vncpasswd get error. /vm/3f8762a5-b806-dca4-6442-0dfeb7da0917/vn= cpasswd. 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 p= ipes xs_read(): vncpasswd get error. /vm/3f8762a5-b806-dca4-6442-0dfeb7da0917/vn= cpasswd. medium change watch on `hdc' (index: 0): /dev/loop0 root@ServerXen331:/var/log/xen# cat=A0 qemu-dm-RHELhvm.log Using config file "/etc/xen/RHELhvm-dm". Started domain RHELhvm-dm (id=3D8) Using config file "/etc/xen/RHELhvm-dm". Unexpected error: Please report to xen-devel@lists.xensource.com Traceback (most recent call last): =A0 File "/usr/sbin/xm", line 7, in =A0=A0=A0 main.main(sys.argv) =A0 File "usr/lib/python2.5/site-packages/xen/xm/main.py", line 2980, in ma= in =A0=A0=A0 _, rc =3D _run_cmd(cmd, cmd_name, args) =A0 File "usr/lib/python2.5/site-packages/xen/xm/main.py", line 3004, in _r= un_cmd =A0=A0=A0 return True, cmd(args) =A0 File "", line 1, in =A0 File "usr/lib/python2.5/site-packages/xen/xm/main.py", line 1360, in xm= _importcommand =A0=A0=A0 cmd.main([command] + args) =A0 File "usr/lib/python2.5/site-packages/xen/xm/create.py", line 1370, in = main =A0=A0=A0 do_console(sxp.child_value(config, 'name', -1)) =A0 File "usr/lib/python2.5/site-packages/xen/xm/create.py", line 1397, in = do_console =A0=A0=A0 (p, rv) =3D os.waitpid(cpid, os.WNOHANG) OSError: [Errno 10] No child processes Boris --- On Tue, 4/14/09, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] [PATCH] fix stubdom memory corruption To: "Stefano Stabellini" Cc: "xen-devel" 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 dom= ain Boris --- On Tue, 4/14/09, Stefano Stabellini = wrote: From: Stefano Stabellini Subject: Re: [Xen-devel] [PATCH] fix stubdom memory corruption To: "bderzhavets@yahoo.com" Cc: "xen-devel" 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@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1713661968-1239716212=:85978 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
root@ServerXen331:/etc/xen# xm list
Name&n= bsp;            = ;            &n= bsp;            = ;  ID   Mem VCPUs      State &= nbsp; Time(s)
Domain-0        &n= bsp;            = ;            &n= bsp; 0  7019     2     r-----&= nbsp;   702.0
RHELhvm         &nbs= p;            &= nbsp;            7&n= bsp; 1024     1     ------ &nb= sp;    0.0

************************
Three logs gen= erated
************************

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

Please report to xen-devel@= lists.xensource.com
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
&n= bsp;   _, rc =3D _run_cmd(cmd, cmd_name, args)
  File "us= r/lib/python2.5/site-packages/xen/xm/main.py", line 3004, in _run_cmd
&n= bsp;   return True, cmd(args)
  File "<string>", li= ne 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/c= reate.py", line 1370, in main
    do_console(sxp.child_va= lue(config, 'name', -1))
  File "usr/lib/python2.5/site-packages/xe= n/xm/create.py", line 1397, in do_console
    (p, rv) =3D= os.waitpid(cpid, os.WNOHANG)
OSError: [Errno 10] No child processes
=
Boris

--- On Tue, 4/14/09, Boris Derzhavets <bderzhavet= s@yahoo.com> wrote:
From: Boris = Derzhavets <bderzhavets@yahoo.com>
Subject: Re: [Xen-devel] [PATCH= ] fix stubdom memory corruption
To: "Stefano Stabellini" <stefano.sta= bellini@eu.citrix.com>
Cc: "xen-devel" <xen-devel@lists.xensource.= com>
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-ba= ckend in separate session as usual and tried to start stub domain

Bo= ris

--- On Tue, 4/14/09, Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com&= gt;
Subject: Re: [Xen-devel] [PATCH] fix stubdom memory corruption
To= : "bderzhavets@yahoo.com" <bderzhavets@yahoo.com>
Cc: "xen-devel" = <xen-devel@lists.xensource.com>
Date: Tuesday, April 14, 2009, 8:5= 5 AM

Boris Derzhavets wrote:

> This one and vl.c patc= h have been applied.
> stubdom has been rebuilt and reinstalled.
&= gt;
No improvement.

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

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

_______________________________________________
Xen-dev= el mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.= com/xen-devel

=0A=0A --0-1713661968-1239716212=:85978-- --===============0625564891== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0625564891==--