Received: from eggs.gnu.org ([208.118.235.92]:59639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TM4ik-0007Bq-M9 for qemu-devel@nongnu.org; Wed, 10 Oct 2012 18:25:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TM4ij-00050T-Dx for qemu-devel@nongnu.org; Wed, 10 Oct 2012 18:25:42 -0400 Received: from indium.canonical.com ([91.189.90.7]:51695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TM4ij-00050N-7Z for qemu-devel@nongnu.org; Wed, 10 Oct 2012 18:25:41 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TM4ii-0001pX-7k for ; Wed, 10 Oct 2012 22:25:40 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 28AED2E807C for ; Wed, 10 Oct 2012 22:25:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 10 Oct 2012 22:18:30 -0000 From: Oliver Sender: bounces@canonical.com References: <20121010202220.32313.91692.malonedeb@soybean.canonical.com> Message-Id: <20121010221830.3598.31947.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1065232] Re: qemu-system-arm Crashes on startup on OS X 10.8.2 Reply-To: Bug 1065232 <1065232@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Peter, I built in from the zipped tar ball for qemu-1.2.0 I did not get it from the repository, although I am happy to do this for you. I used ./configure This what configure said Silently falling back into gthread backend under darwin .... C compiler gcc Host C compiler gcc Objective-C compiler clang CFLAGS -O2 -D_FORTIFY_SOURCE=3D2 -g = QEMU_CFLAGS -m64 -DOS_OBJECT_USE_OBJC=3D0 -arch x86_64 -D_GNU_SOURCE = -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundan= t-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-alia= sing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-b= ody -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wold-style= -definition -I/opt/local/include/libpng15 = LDFLAGS -m64 -framework CoreFoundation -framework IOKit -arch x86= _64 = My gcc appears to be localhost:qemu-1.2.0 oliverks$ gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/config= ure --disable-checking --enable-werror --prefix=3D/Applications/Xcode.app/C= ontents/Developer/usr/llvm-gcc-4.2 --mandir=3D/share/man --enable-languages= =3Dc,objc,c++,obj-c++ --program-prefix=3Dllvm- --program-transform-name=3D/= ^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=3D/usr/lib --build=3Di686-apple-darwi= n11 --enable-llvm=3D/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llv= mCore/Developer/usr/local --program-prefix=3Di686-apple-darwin11- --host=3D= x86_64-apple-darwin11 --target=3Di686-apple-darwin11 --with-gxx-include-dir= =3D/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1065232 Title: qemu-system-arm Crashes on startup on OS X 10.8.2 Status in QEMU: New Bug description: On startup qemu-system-arm crashes on this line 9373 of target-arm if (unlikely(!QTAILQ_EMPTY(&env->breakpoints))) { QTAILQ_FOREACH(bp, &env->breakpoints, entry) { if (bp->pc =3D=3D dc->pc) { // <-- CRASH !!!! gen_exception_insn(dc, 0, EXCP_DEBUG); /* Advance PC so that clearing the breakpoint will invalidate this TB. */ dc->pc +=3D 2; goto done_generating; break; } } What appears to be happening is env is = (gdb) print env->breakpoints $4 =3D { tqh_first =3D 0x1f001f001f001f, = tqh_last =3D 0x1f001f001f001f } which leads to bp being set to (gdb) print bp $1 =3D (CPUBreakpoint *) 0x1f001f001f001f This looks like a bad address and causes the following statement Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 I am wondering if the env structure is not getting setup correctly? I am running the 1.2.0 version of qemu on Darwin localhost 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52= PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1065232/+subscriptions