Received: from eggs.gnu.org ([208.118.235.92]:39110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOz0H-0003rI-3B for qemu-devel@nongnu.org; Thu, 18 Oct 2012 18:55:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOz0E-000348-8q for qemu-devel@nongnu.org; Thu, 18 Oct 2012 18:55:48 -0400 Received: from indium.canonical.com ([91.189.90.7]:41512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOz0D-00033p-St for qemu-devel@nongnu.org; Thu, 18 Oct 2012 18:55:46 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TOz0C-0002D9-Pv for ; Thu, 18 Oct 2012 22:55:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id B86962E807D for ; Thu, 18 Oct 2012 22:55:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Oct 2012 22:50:25 -0000 From: Peter Maydell Sender: bounces@canonical.com References: <20121011003523.3916.30222.malonedeb@gac.canonical.com> Message-Id: <20121018225025.11694.36038.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1065325] Re: qemu-system-arm hangs on SIGUSR1 on OS X 10.8.2 Reply-To: Bug 1065325 <1065325@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I just built QEMU from source (git master commit b6348f29, same gcc as you,= MacOS 10.8.2), like this: ./configure --target-list=3Darm-softmmu && make -j2 and the resulting QEMU works for me. I tested with a Cortex-M3 image from h= ere: https://bugs.launchpad.net/qemu/+bug/1028260/+attachment/3233691/+files/ste= llaris-test.tar If you untar that you'll find among other things a .bin file which is a sys= tem image for the lm3s6965evb board model, which you can run like this: ./arm-softmmu/qemu-system-arm -M lm3s6965evb -kernel ~/test-images/stellari= s-test/qs_ek-lm3s6965.bin So I think the chances are that it's just that you think that QEMU has hung because the particular guest image you're trying to run isn't working. Our M3 model has some known bugs so it's possible that it's running into one of them. Other people also seem to have had trouble with FreeRTOS, see for instance bug 657006. Please can you try with an image that is known to work under QEMU, so that we can separate out whether this is a problem with our MacOS support or just that QEMU isn't emulating this board closely enough for the image you're trying to run? -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1065325 Title: qemu-system-arm hangs on SIGUSR1 on OS X 10.8.2 Status in QEMU: New Bug description: I built the latest version of QEMU commit b4ae3cfa57b8c1bdbbd7b7d420971e9171203ade Date: Mon Oct 1 12:34:37 2012 +1000 My system is: 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 localhost:qemu oliverks$ gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/conf= igure --disable-checking --enable-werror --prefix=3D/Applications/Xcode.app= /Contents/Developer/usr/llvm-gcc-4.2 --mandir=3D/share/man --enable-languag= es=3Dc,objc,c++,obj-c++ --program-prefix=3Dllvm- --program-transform-name= =3D/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=3D/usr/lib --build=3Di686-apple-d= arwin11 --enable-llvm=3D/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst= -llvmCore/Developer/usr/local --program-prefix=3Di686-apple-darwin11- --hos= t=3Dx86_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) Shortly after start up I freeze. I am running the command line ./arm-softmmu/qemu-system-arm -M lm3s811evb -kernel ../FreeRTOSV7.2.0/FreeRTOS/Demo/CORTEX_LM3S811_GCC/gcc/RTOSDemo.axf The hang appears to occur due to this signal being sent static void qemu_tcg_init_cpu_signals(void) { sigset_t set; struct sigaction sigact; memset(&sigact, 0, sizeof(sigact)); sigact.sa_handler =3D cpu_signal; sigaction(SIG_IPI, &sigact, NULL); // <-- Signal that hangs system sigemptyset(&set); sigaddset(&set, SIG_IPI); pthread_sigmask(SIG_UNBLOCK, &set, NULL); } Oliver To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1065325/+subscriptions