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 32E09EB64DC for ; Mon, 3 Jul 2023 12:11:43 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGIOQ-0004xa-A7; Mon, 03 Jul 2023 08:10:58 -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 1qGIOG-0004ti-4S for qemu-devel@nongnu.org; Mon, 03 Jul 2023 08:10:49 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGIO8-0005qT-NT for qemu-devel@nongnu.org; Mon, 03 Jul 2023 08:10:46 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fbc1218262so53265875e9.3 for ; Mon, 03 Jul 2023 05:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688386235; x=1690978235; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=TjWCszWfe513WyppL7zb8v0IrQpKTYicUil+LiuuY8Y=; b=ViRsOoFRUTNO6xLoiFX5S/O/9DgAsXB67SDztdnICiLhIJqhkYA7x6ekwJ2E7YwgRY d/ePNsfqGJjQ8mUyt95187wNCSnzu5wJZoe2fm/zOsGqxm4N1tEy4cKMkoexW5EnlsKS tniLf0UI2ktzd+A4G8xSX2I77BZ8cxkKD6QjhZW0T563yQ2UoNGb2/kPE0tvC3dWpbTF HGIEbGWFYRaue9fbizMiVJScC1du0ikqJEO8haxrliT27ydL2+0izHVoSa0C2efcBsGg 6doltvUrrwiXWOMsbCBucLucBaPqwLUgRttq+3cZg0JOm0o/e05Q3ZGtsfm8fchXmHwY 9Xbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688386235; x=1690978235; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=TjWCszWfe513WyppL7zb8v0IrQpKTYicUil+LiuuY8Y=; b=gTYNVrjpDy/TXEvgc+EzwLN/8nhLZuz4IWJbPvg7t5H1WehV+/o31F/akE/af94+h7 ijH56jW7KtEunNnQ8JKvnsVcVr3GJsI9dhyRuuq9MznUXhSJV7sWLJfSGIHH5Cf44olq v+66EXjeGQEaeq/eJpcGYK65Lm2QaZ78GoTgTUDmfl9u4oBtRftJvfFAl1dulC40JMeR LqLyKZ2javWagdeWXzCjxUI6Ei1naK2GUCy5PhUs+P6qq3pZqYhB+OehK4bDB3VW8szq x5qw+Keq1FyeF0/NABj/BZ+D9fHvPc4NCqQjrHCW7QOKaVgEvOF5nN+jCJxxGM6XgyTp 7Z3A== X-Gm-Message-State: ABy/qLYEQiOlrEFhJ5hYdGaegv1Pn0U1uZHBsQF3N8k+G8A7ycCbYvoa w8bAwgT8Eig63nRMSMI1voJYFg== X-Google-Smtp-Source: APBJJlFgr8E5OQdvQ1x3BVq1eyBkbBeFEIhnza0ilSScB6OdIdLwjRimA2eIhomIfyOU+3dFcR9o7Q== X-Received: by 2002:a7b:c446:0:b0:3fb:cf8e:c934 with SMTP id l6-20020a7bc446000000b003fbcf8ec934mr6775612wmi.27.1688386234620; Mon, 03 Jul 2023 05:10:34 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id f3-20020adff443000000b00314367cf43asm3032754wrp.106.2023.07.03.05.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 05:10:34 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E3D751FFBB; Mon, 3 Jul 2023 13:10:33 +0100 (BST) References: User-agent: mu4e 1.11.8; emacs 29.0.92 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Andreas Schwab Cc: Helge Deller , Palmer Dabbelt , Alistair Francis , Bin Meng , qemu-riscv@nongnu.org, qemu-devel@nongnu.org Subject: Re: [RISC-V] ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (cpu == current_cpu) Date: Mon, 03 Jul 2023 13:08:02 +0100 In-reply-to: Message-ID: <87h6qli4au.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, 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 Andreas Schwab writes: > On Jul 03 2023, Andreas Schwab wrote: > >> This is a regression in 8.0. It causes the testsuite of mold to fail: >> >> https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV= /mold/standard/riscv64 >> >> + out/test/elf/riscv64/section-start/exe2 >> ** >> ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (c= pu =3D=3D current_cpu) >> ** >> ERROR:../accel/tcg/cpu-exec.c:1028:cpu_exec_setjmp: assertion failed: (c= pu =3D=3D current_cpu) > > This bisects down to commit 86f04735ac ("linux-user: Fix brk() to > release pages"). See the attached test case. > > $ ./qemu-riscv64 ../exe1 > ** > ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assertion failed= : (cpu =3D=3D current_cpu) > Bail out! ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assert= ion failed: (cpu =3D=3D current_cpu) > ** > ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assertion failed= : (cpu =3D=3D current_cpu) > Bail out! ERROR:../qemu/accel/tcg/cpu-exec.c:1027:cpu_exec_setjmp: assert= ion failed: (cpu =3D=3D current_cpu) I wonder if applying c5ffd16ba4c8fd fixes this? I tried to double check with the test case but I can't run it as it's a dynamic binary so needs an ld.so. --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro