From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhFIv-0008Qj-At for qemu-devel@nongnu.org; Tue, 10 Mar 2009 23:40:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhFIs-0008No-RL for qemu-devel@nongnu.org; Tue, 10 Mar 2009 23:40:25 -0400 Received: from [199.232.76.173] (port=34252 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhFIs-0008Nc-Mr for qemu-devel@nongnu.org; Tue, 10 Mar 2009 23:40:22 -0400 Received: from mail-qy0-f124.google.com ([209.85.221.124]:40508) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhFIs-0006X5-CN for qemu-devel@nongnu.org; Tue, 10 Mar 2009 23:40:22 -0400 Received: by qyk30 with SMTP id 30so2364253qyk.4 for ; Tue, 10 Mar 2009 20:40:20 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 11 Mar 2009 00:40:20 -0300 Message-ID: <5d6222a80903102040reef9775s8aaf9975e7594133@mail.gmail.com> From: Glauber Costa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] TCG/GCC breakage Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" I'm seeing a strange behaviour here using qemu-system-x86_64 (kvm not even compiled in) on an i386 host I'm suspecting gcc is doing something nasty in here, but I'll open it up here to see if any of you have any suggestion. I get segfaults very early in execution, and after some investigation, I figured out that ebp register is corrupted. I can't determine where the corruption starts. I then did rm x86-64-softmmu/op_helper.o; make CC=gcc34, so only this file get compiled by an older gcc, and it worked again. So it seems to me gcc may be generating gibberish somewhere in helpers, but since this code is a bit fragile, it might well be some mistake on our part. Ideas on how to attack it ? -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."