Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdKHk-0002i4-90 for qemu-devel@nongnu.org; Fri, 05 Feb 2010 04:15:32 -0500 Received: from [199.232.76.173] (port=48636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdKHj-0002hs-Qo for qemu-devel@nongnu.org; Fri, 05 Feb 2010 04:15:31 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdKHi-0002PC-Hd for qemu-devel@nongnu.org; Fri, 05 Feb 2010 04:15:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25235) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdKHi-0002P8-5F for qemu-devel@nongnu.org; Fri, 05 Feb 2010 04:15:30 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o159FTcl024993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 5 Feb 2010 04:15:29 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 3/4] QError: Don't abort on multiple faults References: <1265314396-6583-1-git-send-email-lcapitulino@redhat.com> <1265314396-6583-4-git-send-email-lcapitulino@redhat.com> Date: Fri, 05 Feb 2010 10:15:28 +0100 In-Reply-To: <1265314396-6583-4-git-send-email-lcapitulino@redhat.com> (Luiz Capitulino's message of "Thu, 4 Feb 2010 18:13:15 -0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org Luiz Capitulino writes: > Ideally, Monitor code should report an error only once and > return the error information up the call chain. > > To assure that this happens as expected and that no error is > lost, we have an assert() in qemu_error_internal(). > > However, we still have not fully converted handlers using > monitor_printf() to report errors. As there can be multiple > monitor_printf() calls on an error, the assertion is easily > triggered when debugging is enabled; and we will get a memory > leak if it's not. > > The solution to this problem is to allow multiple faults by only > reporting the first one, and to release the additional error objects. I want this badly. [...]