From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: [PATCH][XM-TEST] Test for bug #533 Date: Tue, 14 Feb 2006 17:10:56 +0100 Message-ID: <20060214161056.GA19324@snarc.org> References: <87slqmt0n3.fsf@caffeine.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <87slqmt0n3.fsf@caffeine.beaverton.ibm.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: Dan Smith Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org On Tue, Feb 14, 2006 at 07:34:24AM -0800, Dan Smith wrote: > This patch adds a test that attempts to create and destroy a domain > 1025 times. Currently, this causes xm to crash after the 1014th cycle > with the following stack trace: The test is bogus and so if the bug. seem you don't close the console fd by calling closeConsole at each loop. > > shared object file: Too many open files that it is basic ulimit behavior (usually 1024 is default configuration) > +# Copyright (C) International Business Machines Corp., 2005 > +# Author: Dan Smith > + > +from XmTestLib import * > + > +COUNT=1025 > + > +for i in range(0,COUNT): > + print "Creating %i of %i..." % (i, COUNT) > + try: > + dom = XmTestDomain(name="massive-%i" % i) > + dom.start() > + console = XmConsole(dom.getName()) > + except DomainError, e1: > + FAIL("Failed to start domain %i" % i) > + except ConsoleError, e2: > + FAIL("Failed to attach console to domain %i" % i) try to add here: + console.closeConsole() > + dom.destroy() and report back if it doesn't fix the problem. [resent: forgot to CC xen-devel] -- Vincent Hanquez