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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 DC3F0C433DB for ; Fri, 29 Jan 2021 12:54:33 +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 1E24664DF1 for ; Fri, 29 Jan 2021 12:54:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E24664DF1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:35212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5TIF-0003LR-Kb for qemu-devel@archiver.kernel.org; Fri, 29 Jan 2021 07:54:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5THL-0002uZ-Pk for qemu-devel@nongnu.org; Fri, 29 Jan 2021 07:53:35 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:39010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l5THH-00049Z-Tk for qemu-devel@nongnu.org; Fri, 29 Jan 2021 07:53:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611924809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QfykKEqPIKxjqsUQi6JOoYW0Ziabtp1FNZUYY10+t/0=; b=Y92Y8tuYEOMGDdK2TGJ7so0JNDSc3O9ml3+vqmdTBG/wlgK73/XGDp0nQg448Ru6xdOg8/ 3jRuqgPqF7vidrnZhZcUtrDh9qTigZSlVjgnS7nG4lPOkQ9lY+kukZ6dPQ9DpVK+5iH/xi 7vs+3lBusOi4xMwkUlACywo3HODwjuY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-288-UrxLQYqjPYuFvUhWjrHm0Q-1; Fri, 29 Jan 2021 07:53:27 -0500 X-MC-Unique: UrxLQYqjPYuFvUhWjrHm0Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B7E4D63CCB; Fri, 29 Jan 2021 12:53:26 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-115-51.ams2.redhat.com [10.36.115.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 472D662688; Fri, 29 Jan 2021 12:53:26 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id A12FC113865F; Fri, 29 Jan 2021 13:53:24 +0100 (CET) From: Markus Armbruster To: Kevin Wolf Subject: Re: [PATCH] monitor: Fix order in monitor_cleanup() References: <20201013125027.41003-1-kwolf@redhat.com> <878sc8yba7.fsf@linaro.org> <20201015074613.GA4610@merkur.fritz.box> <87lfg2zi72.fsf@dusky.pond.sub.org> Date: Fri, 29 Jan 2021 13:53:24 +0100 In-Reply-To: <87lfg2zi72.fsf@dusky.pond.sub.org> (Markus Armbruster's message of "Mon, 19 Oct 2020 11:19:29 +0200") Message-ID: <87bld7ucor.fsf@dusky.pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=armbru@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Received-SPF: pass client-ip=63.128.21.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.249, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex =?utf-8?Q?Benn=C3=A9e?= , f4bug@amsat.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" I ran into odd behavior the other day, and bisected it to this commit. $ qemu-system-x86_64 -display none -chardev socket,id=qmp,path=test-qmp,server=on,wait=off -mon mode=control,chardev=qmp In another terminal, create a bunch of FIFOs, then use them to have some in-band commands block, with out-of-band commands interleaved just because: $ for ((i=0; i<20; i++)); do mkfifo fifo$i; done $ cat oob-test2 {"execute": "qmp_capabilities", "arguments": {"enable": ["oob"]}} {"exec-oob": "migrate-pause", "id": 0} {"execute": "memsave", "id": 1, "arguments": {"val": 0, "size": 4096, "filename": "fifo1"}} {"exec-oob": "migrate-pause", "id": 2} {"execute": "memsave", "id": 3, "arguments": {"val": 0, "size": 4096, "filename": "fifo3"}} {"exec-oob": "migrate-pause", "id": 4} {"execute": "memsave", "id": 5, "arguments": {"val": 0, "size": 4096, "filename": "fifo5"}} {"exec-oob": "migrate-pause", "id": 6} {"execute": "memsave", "id": 7, "arguments": {"val": 0, "size": 4096, "filename": "fifo7"}} {"exec-oob": "migrate-pause", "id": 8} {"execute": "memsave", "id": 9, "arguments": {"val": 0, "size": 4096, "filename": "fifo9"}} {"exec-oob": "migrate-pause", "id": 10} {"execute": "memsave", "id": 11, "arguments": {"val": 0, "size": 4096, "filename": "fifo11"}} {"exec-oob": "migrate-pause", "id": 12} {"execute": "memsave", "id": 13, "arguments": {"val": 0, "size": 4096, "filename": "fifo13"}} {"exec-oob": "migrate-pause", "id": 14} {"execute": "memsave", "id": 15, "arguments": {"val": 0, "size": 4096, "filename": "fifo15"}} {"exec-oob": "migrate-pause", "id": 16} {"execute": "memsave", "id": 17, "arguments": {"val": 0, "size": 4096, "filename": "fifo17"}} {"exec-oob": "migrate-pause", "id": 18} {"execute": "memsave", "id": 19, "arguments": {"val": 0, "size": 4096, "filename": "fifo19"}} {"exec-oob": "migrate-pause", "id": 20} $ socat -t99999 STDIO UNIX-CONNECT:$HOME/work/images/test-qmp for more, q to quit, c to continue without paging-- at ../qom/object.c:664 #15 0x000055b3de32240f in iothread_destroy (iothread=0x55b3e003f170) at ../iothread.c:369 #16 0x000055b3de564db5 in monitor_cleanup () at ../monitor/monitor.c:670 #17 0x000055b3de5285cc in qemu_cleanup () at ../softmmu/vl.c:4554 #18 0x000055b3de03b28b in main (argc=7, argv=0x7ffc4088d4a8, envp=0x7ffc4088d4e8) at ../softmmu/main.c:51 Any ideas?