Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmDFW-00036r-8A for qemu-devel@nongnu.org; Mon, 01 Mar 2010 16:33:58 -0500 Received: from [199.232.76.173] (port=54277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmDFV-00035f-LG for qemu-devel@nongnu.org; Mon, 01 Mar 2010 16:33:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NmDFU-0000rW-GN for qemu-devel@nongnu.org; Mon, 01 Mar 2010 16:33:57 -0500 Received: from hall.aurel32.net ([88.191.82.174]:41193) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NmDFT-0000rD-T3 for qemu-devel@nongnu.org; Mon, 01 Mar 2010 16:33:56 -0500 Date: Mon, 1 Mar 2010 22:33:51 +0100 From: Aurelien Jarno Message-ID: <20100301213351.GN8952@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Sender: Aurelien Jarno Subject: [Qemu-devel] Regression: segfault on ARM host List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini While trying to implement setcond on TCG ARM, I have discovered it does not work anymore. I have bisected this regression to: commit 6113d6d3169393c323ac4c82d756a850145a5e7a Author: Paolo Bonzini Date: Fri Jan 15 09:42:09 2010 +0100 change while to if The while loop will be executed exactly 0 or 1 times, depending on env->exit_request. Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori The assertion is actually triggered. When the next patch removing the assertion is also applied it segfaults instead. The patch does not seem to be wrong. Moreover I have tried to debug the problem, but I failed to as it looks like an Heisenbug. Compiling this file with -O0 also fixes the problem. Does someone have an idea? -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net