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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B0E61C0015E for ; Fri, 28 Jul 2023 13:50:04 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPNmo-0008TN-Gk; Fri, 28 Jul 2023 09:45:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPNml-0008O8-24 for qemu-devel@nongnu.org; Fri, 28 Jul 2023 09:45:40 -0400 Received: from smtp-out2.suse.de ([2001:67c:2178:6::1d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPNmh-0003N8-QZ for qemu-devel@nongnu.org; Fri, 28 Jul 2023 09:45:37 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AAA141F6E6; Fri, 28 Jul 2023 13:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690551928; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VuvXpGMJeG0MijE3qApRbciz+5MlisciWG5PVk3tQkM=; b=bE6qlUMNQC1D1Ee6hpVx+4iyKcTVbWUhfBNhbmg7MV8tes1S0jrfPRw0r0KBEPlpQurc0q QKBXry0tyc6gZpceDr0AcDW12FJjULzOVMkRPWCAzzxRqgz3/m84hCw1mezjJhDLj52dLq Ynz9EPbL3FS8PaoxcVLvbvSxxy5Q3qY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690551928; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VuvXpGMJeG0MijE3qApRbciz+5MlisciWG5PVk3tQkM=; b=UsfIRvjyhxm+7kwWwcKC0RBoM641ISPc6jgO9bpR8rTxinnULgQJXvAprZ5YdL+/b9eVfm hx3Os20qHkoxVBDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 72B2A13276; Fri, 28 Jul 2023 13:45:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MvWgGXjGw2RKEgAAMHmgww (envelope-from ); Fri, 28 Jul 2023 13:45:28 +0000 Message-ID: <77b0a57e-68f6-8515-b3fa-3ec9988894bc@suse.de> Date: Fri, 28 Jul 2023 15:45:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: assert fails in s390x TCG Content-Language: en-US To: Richard Henderson , Cornelia Huck Cc: qemu-devel , =?UTF-8?Q?Alex_Benn=c3=a9e?= References: <0e06f694-7aeb-66d1-48d8-317a93f8f741@suse.de> <2a417aaa-9ef9-6e24-cc54-e76e2d25b968@linaro.org> From: Claudio Fontana In-Reply-To: <2a417aaa-9ef9-6e24-cc54-e76e2d25b968@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2001:67c:2178:6::1d; envelope-from=cfontana@suse.de; helo=smtp-out2.suse.de X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.094, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 7/28/23 15:33, Richard Henderson wrote: > On 7/28/23 06:29, Claudio Fontana wrote: >> On 7/27/23 19:41, Richard Henderson wrote: >>> On 7/21/23 02:08, Claudio Fontana wrote: >>>> Thread 3 "qemu-system-s39" received signal SIGABRT, Aborted. >>>> [Switching to Thread 0x7ffff53516c0 (LWP 215975)] >>>> (gdb) bt >>>> #0 0x00007ffff730dabc in __pthread_kill_implementation () at /lib64/libc.so.6 >>>> #1 0x00007ffff72bc266 in raise () at /lib64/libc.so.6 >>>> #2 0x00007ffff72a4897 in abort () at /lib64/libc.so.6 >>>> #3 0x00007ffff76f0eee in () at /lib64/libglib-2.0.so.0 >>>> #4 0x00007ffff775649a in g_assertion_message_expr () at /lib64/libglib-2.0.so.0 >>>> #5 0x0000555555b96134 in page_unlock__debug (pd=0x7ffee8680440) at ../accel/tcg/tb-maint.c:348 >>>> #6 0x0000555555b962a9 in page_unlock (pd=0x7ffee8680440) at ../accel/tcg/tb-maint.c:397 >>>> #7 0x0000555555b96580 in tb_unlock_pages (tb=0x7fffefffeb00) at ../accel/tcg/tb-maint.c:483 >>>> #8 0x0000555555b94698 in cpu_exec_longjmp_cleanup (cpu=0x555556566a30) at ../accel/tcg/cpu-exec.c:556 >>> >>> >>> https://patchew.org/QEMU/20230726201330.357175-1-richard.henderson@linaro.org/ >>> >>> >>> r~ >> >> Hi Richard, >> >> I applied your patch, however I still encounter an assert: >> >> ERROR:../accel/tcg/tb-maint.c:367:assert_no_pages_locked: assertion failed: (g_hash_table_size(ht_pages_locked_debug) == 0) >> Bail out! ERROR:../accel/tcg/tb-maint.c:367:assert_no_pages_locked: assertion failed: (g_hash_table_size(ht_pages_locked_debug) == 0) > > What's the test case? > > > r~ It is a test environment for building packages, so the guest at the time of the error is running ./configure for the package swig-v4.1.1.tar.gz checking build system type... s390x-ibm-linux-gnu^M checking host system type... s390x-ibm-linux-gnu^M checking for a BSD-compatible install... /usr/bin/install -c^M checking whether build environment is sane... [New Thread 0x7ffea3fff6c0 (LWP 116436)] [New Thread 0x7ffec14e26c0 (LWP 116437)] [New Thread 0x7ffecf73e6c0 (LWP 116438)] [New Thread 0x7ffecde2c6c0 (LWP 116439)] [New Thread 0x7ffec2beb6c0 (LWP 116440)] yes^M checking for a thread-safe mkdir -p... /usr/bin/mkdir -p^M checking for gawk... gawk^M checking whether make sets $(MAKE)... yes^M checking whether make supports nested variables... yes^M checking for s390x-ibm-linux-gnu-gcc... gcc^M checking whether the C compiler works... ** So I presume we are in: AC_PROG_CC