From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9vpY-0000JV-Ky for qemu-devel@nongnu.org; Tue, 20 Mar 2012 05:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9vpP-0006FW-U5 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 05:58:16 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:42320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9vpP-0006Et-JN for qemu-devel@nongnu.org; Tue, 20 Mar 2012 05:58:07 -0400 Received: by dadp14 with SMTP id p14so12586347dad.4 for ; Tue, 20 Mar 2012 02:58:05 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4F6854A7.2000906@redhat.com> Date: Tue, 20 Mar 2012 10:57:59 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20120215015959.27405.46578.malonedeb@soybean.canonical.com> <20120320090750.10772.70780.malone@soybean.canonical.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Bug 932487] Re: win32: git rev 59f971d crashes when accessing disk (coroutine issue) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 932487 <932487@bugs.launchpad.net> Cc: qemu-devel@nongnu.org Il 20/03/2012 10:35, Roy Tam ha scritto: > 2012/3/20 Stefan Weil <932487@bugs.launchpad.net>: >> Please try a newer compiler. gcc-4.6.2 compiles thread local storage correctly, gcc-4.3.3 obviously doesn't. >> If you can confirm that newer compilers fix this bug, I'd like to close this ticket. > > I'm using gcc-4.6.2 now. Please test this suggestion: >>> Please try these modified configure option which adds the compiler flag needed for multithreading: >>> --extra-cflags="-O0 -pipe -mthreads". For me, -mthreads solved the problem. >> >> Yes "-mthreads" switch does workaround the issue. >> But using "-mthreads" making resulting binaries depend on >> mingwm10.dll, which is not good. > > Is "-D_MT" enough instead of -mthreads? Paolo