From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 41CEC394881E for ; Thu, 17 Nov 2022 14:15:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 41CEC394881E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1668694541; bh=RCd+LIlBZJbuD+x7ocMm6V+vsDIVIiIbqdVSkDZ2Ol0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=XZOjWIRQl/+0ET4u8zN0noMsWdMdQ1869cR75mgd6pfOQmBQsu1tUTNgQl8upS3Ua jGcmDng2+82oYGmt9A0lpXf+t9HjoXQqvt/f/b3WyAp9Y2YoAfWmhWhw2TJ/O937Ep +2g+/WhkhE/oMqQkLKnJONqVnYQgxsDaGM+uGTnY= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 0030266209; Thu, 17 Nov 2022 09:15:39 -0500 (EST) Message-ID: <8900ac3f1ea2e9bf5e5dff21734ea5f8f284e761.camel@xry111.site> Subject: Re: "random" segment faults in expect running GCC regression test on LoongArch From: Xi Ruoyao To: gcc@gcc.gnu.org Cc: Lulu Cheng , Wang Xuerui , Chenghua Xu Date: Thu, 17 Nov 2022 22:15:37 +0800 In-Reply-To: <2e88c9803e5b57aa3f320c9722dcb700b6a47420.camel@xry111.site> References: <2e88c9803e5b57aa3f320c9722dcb700b6a47420.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,LIKELY_SPAM_FROM,PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 2022-11-09 at 15:43 +0800, Xi Ruoyao wrote: > Hi, >=20 > This is a "help wanted" message.=C2=A0 When I run GCC regression test on > loongarch64-linux-gnu, expect occasionally crashes with a segment fault. > The stack backtrace is like: /* snip */ > The crashes happen on both my own LoongArch board and > gcc401.fsffrance.org.=C2=A0 So I don't think it was an "only me" problem. >=20 > The segment fault is not deterministic.=C2=A0 A Expect command like >=20 > cd /path/to/gcc/build/gcc > expect -- /usr/share/dejagnu/runtest.exp --tool gfortran dg.exp=3Dbind-c-= contiguous-1.f90 >=20 > sometimes succeeds, sometimes immediately segfaults, sometimes prints > several lines of strange error message and then exits abnormally. >=20 > Usually I don't like to send "help wanted" messages, but this time I > have no idea how to fix (or even triage) the problem.=C2=A0 I don't even = know > which component (Tcl? Expect? GCC? Glibc? Kernel?) I should blame.=C2=A0 = So > it seems I really need some help now... I'm now 99% sure this is a kernel issue: https://lore.kernel.org/loongarch/20221117042532.4064448-1-chenhuacai@loong= son.cn/ --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University