Received: from eggs.gnu.org ([2001:4830:134:3::10]:33783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm4Y2-0002mS-QJ for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm4MD-0008Fj-Dy for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:36:05 -0400 Received: from indium.canonical.com ([91.189.90.7]:42917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm4MD-0008Fc-8S for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:36:01 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bm4MA-0005Ry-HV for ; Mon, 19 Sep 2016 19:35:59 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 770C52E81A8 for ; Mon, 19 Sep 2016 19:35:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Sep 2016 19:26:14 -0000 From: "T. Huth" <1624896@bugs.launchpad.net> Reply-To: Bug 1624896 <1624896@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160918160752.2242.30024.malonedeb@soybean.canonical.com> Message-Id: <20160919192614.12160.67960.launchpad@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1624896] Re: [PPC] SegFault due to Stack Overflow in E500 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Tags added: ppc -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1624896 Title: [PPC] SegFault due to Stack Overflow in E500 Status in QEMU: New Bug description: = I am getting a Segmentation Fault while simulating a PowerPC e500. I've t= ried to debug the problem and I've found that it occurs when you have a 0 v= alue decrementer. The function trace is the following: 1) __cpu_ppc_store_decr (ppc.c) is called with value =3D 0 and raise_excp= =3Dbooke_decr_cb; 2) Since value < 3, booke_decr_cb is called; 3) booke_decr_cb then calls booke_update_irq() and cpu_ppc_store_decr(); 4) cpu_ppc_store_decr calls __cpu_ppc_store_decr You're stuck on this infinite cycle until your stack overflows eventually. Command Line: qemu-system-ppc -cpu e500v2 -d guest_errors,unimp -m 2048 -M ppce500 -nog= raphic -bios ../cc/share/qem u/u-boot.e500 -kernel XKYAPP.exe Platform where the bug occured: Bash ubuntu on Windows; Revision where the bug was found: e3571ae30cd26d19efd4554c25e32ef64d6a36b3 (16 Set 2016) Thanks! To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1624896/+subscriptions