From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CCC0C433ED for ; Tue, 6 Apr 2021 10:22:01 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 01653613C4 for ; Tue, 6 Apr 2021 10:21:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01653613C4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTiqN-0004Cg-0y for qemu-devel@archiver.kernel.org; Tue, 06 Apr 2021 06:21:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTipR-0003Fu-7D for qemu-devel@nongnu.org; Tue, 06 Apr 2021 06:21:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:54574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTipO-0002DN-K9 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 06:21:00 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1lTipM-0001sh-5b for ; Tue, 06 Apr 2021 10:20:56 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 2585C2E8167 for ; Tue, 6 Apr 2021 10:20:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 06 Apr 2021 10:14:15 -0000 From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <1922391@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Confirmed; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: ppc X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: he-uninett philmd X-Launchpad-Bug-Reporter: =?utf-8?q?H=C3=A5vard_Eidnes_=28he-uninett=29?= X-Launchpad-Bug-Modifier: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9_=28philmd?= =?utf-8?q?=29?= References: <161739653585.29688.16825149829487531908.malonedeb@gac.canonical.com> Message-Id: <161770405563.29904.7426346704085987857.malone@gac.canonical.com> Subject: [Bug 1922391] Re: qemu-system-ppc assertion "!mr->container" failed X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="57f1f603f707b9cfa764cae8dd0f3999026b4763"; Instance="production" X-Launchpad-Hash: 6eb90cb61f9c48f970a49b1db2776266e725a44d Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1922391 <1922391@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Proposed fix: https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg00570.html -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1922391 Title: qemu-system-ppc assertion "!mr->container" failed Status in QEMU: Confirmed Bug description: Hi, I'm trying to run the NetBSD/macppc 8.2 installer (which is 32-bit ppc) i= n qemu-system-ppc version 5.2.0, and I'm hitting this assertion failure quite a bit into the "unpacking sets" part of the installation procedure, unpacking from the install iso image. Qemu is run on a NetBSD/amd64 9.1 host system. The asert message from qemu is assertion "!mr->container" failed: file "../softmmu/memory.c", line 1739, function "memory_region_finalize" The stack backtrace from the core file (when built with debug symbols) is Core was generated by `qemu-system-ppc'. Program terminated with signal SIGABRT, Aborted. #0 0x00007a8f2596791a in _lwp_kill () from /usr/lib/libc.so.12 [Current thread is 1 (process 1)] (gdb) where #0 0x00007a8f2596791a in _lwp_kill () from /usr/lib/libc.so.12 #1 0x00007a8f259671ca in abort () from /usr/lib/libc.so.12 #2 0x00007a8f258a8507 in __assert13 () from /usr/lib/libc.so.12 #3 0x000000003e79d8a0 in memory_region_finalize (obj=3D) at ../softmmu/memory.c:1739 #4 0x000000003e87aacc in object_deinit (type=3D0x7a8f2c280780, = obj=3D) at ../qom/object.c:671 #5 object_finalize (data=3D0x7a8f2b62baa0) at ../qom/object.c:685 #6 object_unref (objptr=3D0x7a8f2b62baa0) at ../qom/object.c:1183 #7 0x000000003e87aa96 in object_property_del_all (obj=3D0x7a8f2b629000) at ../qom/object.c:623 #8 object_finalize (data=3D0x7a8f2b629000) at ../qom/object.c:684 #9 object_unref (objptr=3D0x7a8f2b629000) at ../qom/object.c:1183 #10 0x000000003e79ab6b in memory_region_unref (mr=3D) at ../softmmu/memory.c:1787 #11 0x000000003e7d8eb4 in address_space_unmap ( as=3Das@entry=3D0x3f4731a0 , buffer=3D, = len=3D, is_write=3D, access_len=3D) at ../softmmu/physmem.c:3222 #12 0x000000003e66389a in dma_memory_unmap (access_len=3D, = dir=3D, len=3D, buffer=3D, = as=3D) at /usr/pkgsrc/emulators/qemu/work/qemu-5.2.0/include/sysemu/dma.h:145 #13 pmac_ide_atapi_transfer_cb (opaque=3D0x7a8f2ab4aef0, ret=3D) at ../hw/ide/macio.c:122 #14 0x000000003e5b22a0 in dma_complete (ret=3D0, dbs=3D0x7a8f2bb4d380) at ../softmmu/dma-helpers.c:120 #15 dma_blk_cb (opaque=3D0x7a8f2bb4d380, ret=3D0) at ../softmmu/dma-helpe= rs.c:138 #16 0x000000003e864ef7 in blk_aio_complete (acb=3D0x7a8f2af2be90) at ../block/block-backend.c:1412 #17 0x000000003e9a9be1 in coroutine_trampoline (i0=3D, = i1=3D) at ../util/coroutine-ucontext.c:173 #18 0x00007a8f25864150 in ?? () from /usr/lib/libc.so.12 Backtrace stopped: Cannot access memory at address 0x7a8e137ec000 (gdb) = = I start qemu with this small script: --- #!/bin/sh MEM=3D3g qemu-system-ppc \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-M mac99,via=3Dpmu \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-m $MEM \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-nographic \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-drive id=3Dhda,format=3D= raw,file=3Ddisk.img \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-L pc-bios \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-netdev user,id=3Dnet0,ho= stfwd=3Dtcp::2223-:22,ipv6=3Doff \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-net nic,model=3Drtl8139,= netdev=3Dnet0 \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-boot d \ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-cdrom NetBSD-8.2-macppc.= iso --- and boot the install kernel with "boot cd:ofwboot.xcf". If someone wants to replicate this I can provide more detailed instructions to repeat the procedure I used to start the install. Any hints about what more to look for? Regards, - H=C3=A5vard To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1922391/+subscriptions