From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 36FCF385C6EE for ; Thu, 25 Jan 2024 15:29:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36FCF385C6EE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36FCF385C6EE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::529 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706196593; cv=none; b=cUvrxk/w0Bq+hojjJKP2sTWUlBQqBhQAwDLMnS3uKhnkl0HCiWf+PFeBXECsc9yzL90h0XiTFL20Ih2NhFkN9LEI8hxg5iww8t6gZbh85v+WYv9JwcIMZXcyyJkVkMWAmoFtWRz3Jr9YrHka5iuTrYTSTlXyIQUeFlZeKFwJiYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706196593; c=relaxed/simple; bh=VMkBspkkgnZScCT2cwHmktQWQafzPkRNC9q0qHwJUo8=; h=DKIM-Signature:Mime-Version:Subject:From:Date:Message-Id:To; b=UNiZQwhrAKY3zKM9MWQqdF/EKeAbBVwjHDc1w5kwBSlyODllo37ZjjN9YwB1b08v0x+w+xuRh8aUpR9KWgqrtitAKYmp0fPiUygbldE2vIA4YFjHEAoN3qoKWt/6Ru0w0Mj1/RB58CfEDh8z+NLvBXgdZGrcDSGLBsMhf0YQjOI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-55d095e6ab5so142399a12.0 for ; Thu, 25 Jan 2024 07:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706196589; x=1706801389; darn=sourceware.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=44VTHz01mC1JKWJIgIoJKa+fk6mQmGsiG0QFX4Pvhas=; b=yFcGloe6pkY0IRBWPA9AapMe7CTAh8XvtSfsInF+Ni7u8haV1ftwiM0e/yhWYgvZzE JDX7OsFEDsTmqH9JFdvocvL9pZ1VmSIp/9FzwGP1S+F/vB9Q0AF+aVhcbXAvAOwp6/Kl UlyXw1ZrvC6u5pcdHebsHrWSqVc6o4Z9NEx3uKTEHjXN/gUgQmsS/qAzWnJJxrMhLlih q/cVrO5k8tyMFf/ZaG5nM978rBA27T7r7V3jEHlVMOLwliHb6wBTkmiA56yL+xlr/iRB 41i9liheuWN5/+JqfzJTD1QO49lzf//Ybm5gWIwrqNB8qJ5k89IBRNxXX6s3s7CA0/XT VNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706196589; x=1706801389; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=44VTHz01mC1JKWJIgIoJKa+fk6mQmGsiG0QFX4Pvhas=; b=BdOq6i7+68tOqosuiY4fJVPqqPvwcVUUk4iZXMWINvVWsN6SidPYsN7HTf8R/SKftB vxooxl56n7plwihOZGZc6YKVfpOex5rsccix67CkjGIZiyHSzY3259tl/LPMfiZWihRd g/gGMfhvs58zBkNCccBJjF0j0nInE+vOcPdFBmZKBO8TjKnGp1rOxHqZodUrZxqjxTVQ Ri0MQvbfK8VSh2396F2WOsNHN4uTu4444QEgkPR2h9MZQk9aHY/PGcNjBDEMDPeOTR4M dzL+spKKvKCmqpJzHxEnCPr7qCq/aevw9bzkqnZUOtHP2OJ+kgRupHf90AGr0Fvge9Jq KPYw== X-Gm-Message-State: AOJu0Yza1iqrk0vOjV50w44/J7SHWk9ejq54bJtI8y0WbwCx7DAl6mzz 4bmA8RoXO+0QB1kcLkTDTqyUyP5oN+ST3WM7H2GWlMPReHTqeiCs8nuOzOy6oQ== X-Google-Smtp-Source: AGHT+IHVyKvDdzF40o5t13wys0maXUMK9mzNa8DLuvx3+J9Lp2+PPNcPlgsJ0656tdmSTClJ0oeEUg== X-Received: by 2002:a17:906:b011:b0:a2c:4b28:90d5 with SMTP id v17-20020a170906b01100b00a2c4b2890d5mr1553874ejy.2.1706196588793; Thu, 25 Jan 2024 07:29:48 -0800 (PST) Received: from smtpclient.apple ([37.252.94.180]) by smtp.gmail.com with ESMTPSA id gu23-20020a170906f29700b00a349463a4e9sm13890ejb.187.2024.01.25.07.29.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2024 07:29:48 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: [Linaro-TCWG-CI] gdb-14-branchpoint-1354-g8669a8b6740: FAIL: 2 regressions on arm From: Maxim Kuvyrkov In-Reply-To: <3e384984-8ea6-455d-9a57-4e4b5d7d5e3c@redhat.com> Date: Thu, 25 Jan 2024 19:29:36 +0400 Cc: gdb-testers@sourceware.org, Linaro Toolchain Working Group , Thiago Jung Bauermann Content-Transfer-Encoding: quoted-printable Message-Id: <81DAE6AF-0338-490D-A159-599D5CF927AC@linaro.org> References: <1835774318.11177.1706141292374@jenkins.jenkins> <3e384984-8ea6-455d-9a57-4e4b5d7d5e3c@redhat.com> To: Guinevere Larsen X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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 Jan 25, 2024, at 19:04, Guinevere Larsen = wrote: >=20 > On 25/01/2024 10:10, Maxim Kuvyrkov wrote: >>> On Jan 25, 2024, at 04:08, ci_notify@linaro.org wrote: >>>=20 >>> Dear contributor, our automatic CI has detected problems related to = your patch(es). Please find some details below. If you have any = questions, please follow up on linaro-toolchain@lists.linaro.org mailing = list, Libera's #linaro-tcwg channel, or ping your favourite Linaro = toolchain developer on the usual project channel. >>>=20 >>> We appreciate that it might be difficult to find the necessary logs = or reproduce the issue locally. If you can't get what you need from our = CI within minutes, let us know and we will be happy to help. >>>=20 >>> We track this report status in = https://linaro.atlassian.net/browse/GNU-1120 , please let us know if you = are looking at the problem and/or when you have a fix. >>>=20 >>> In gdb_check master-arm after: >>>=20 >>> | commit gdb-14-branchpoint-1354-g8669a8b6740 >>> | Author: Guinevere Larsen >>> | Date: Thu Aug 24 11:00:35 2023 +0200 >>> | >>> | gdb/testsuite: add test for backtracing for threaded = inferiors from a corefile >>> | >>> | This patch is based on an out-of-tree patch that fedora has = been >>> | carrying for a while. It tests if GDB is able to properly = unwind a >>> | threaded program in the following situations: >>> | * regular threads >>> | * in a signal handler >>> | ... 14 lines of the commit log omitted. >>>=20 >>> FAIL: 2 regressions >>>=20 >>> regressions.sum: >>> =3D=3D=3D gdb tests =3D=3D=3D >>>=20 >>> Running gdb:gdb.threads/threadcrash.exp ... >>> FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count =3D=3D = 7 >>> FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count =3D=3D = [llength $test_list] >> Hi Guinevere, >>=20 >> The failures seem to be due to "LWP" output (instead of "Thread") in = test_gcore. >>=20 >> I.e., test_corefile succeeds with >>=20 >> =3D=3D=3D >> (gdb) PASS: gdb.threads/threadcrash.exp: test_corefile: = loading_corefile >> info threads >> Id Target Id Frame >> * 1 Thread 0xf7dbe7e0 (LWP 476389) 0x00830cea in crash_function () = at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:381 >> 2 Thread 0xf7c6f3a0 (LWP 476390) do_spin_task (location=3DNORMAL) = at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:139 >> 3 Thread 0xf746e3a0 (LWP 476391) do_spin_task = (location=3DSIGNAL_HANDLER) at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:139 >> 4 Thread 0xf6c6d3a0 (LWP 476392) do_spin_task = (location=3DSIGNAL_ALT_STACK) at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:139 >> 5 Thread 0xf52fe3a0 (LWP 476395) __libc_do_syscall () at = ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46 >> 6 Thread 0xf646c3a0 (LWP 476393) __libc_do_syscall () at = ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46 >> 7 Thread 0xf5aff3a0 (LWP 476394) __libc_do_syscall () at = ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46 >> (gdb) PASS: gdb.threads/threadcrash.exp: test_corefile: $thread_count = =3D=3D 7 >> =3D=3D=3D >>=20 >> and then test_gcore fails with >>=20 >> =3D=3D=3D >> (gdb) PASS: gdb.threads/threadcrash.exp: test_gcore: loading_corefile >> info threads >> Id Target Id Frame >> * 1 LWP 476440 0x00400cea in crash_function () at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:381 >> 2 LWP 476442 do_spin_task (location=3DNORMAL) at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:139 >> 3 LWP 476443 do_spin_task (location=3DSIGNAL_HANDLER) at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:139 >> 4 LWP 476444 do_spin_task (location=3DSIGNAL_ALT_STACK) = at = /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gd= b/testsuite/gdb.threads/threadcrash.c:139 >> 5 LWP 476445 0xf7eadb04 in ?? () >> 6 LWP 476446 0xf7eadb04 in ?? () >> 7 LWP 476447 0xf7eadb04 in ?? () >> (gdb) FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count =3D=3D= 7 >> =3D=3D=3D >>=20 >> Could you please look into fixing the testcase? [I assume "LWP" = output is expected, but I'm not an expert in GDB.] > So I looked into this and there are 2 problems here. First is that the = test isn't able to count the 7 thread, and second is that GDB is failing = to unwind 3 of the threads. >=20 > Only the first one may be a test issue, and I'm trying to look into = that. The second one is a gdb problem either when generating the gcore = or when reading it. I'll open a bug and make the test KFAIL instead of = FAIL here, since it isn't a simple fix. Just to confirm, before I say = something incorrect in the bug report, this bug happens for 32-bit arm, = right? Yes, it affects only 32-bit arm; aarch64-linux-gnu passes. >=20 > Also, I read the Jira comments and just wanted to mention I go by = she/her pronouns :) Fixed :). Thanks! -- Maxim Kuvyrkov https://www.linaro.org >=20 > --=20 > Cheers, > Guinevere Larsen > She/Her/Hers >=20 >>=20 >> Thanks! >>=20 >> -- >> Maxim Kuvyrkov >> https://www.linaro.org >>=20 >>=20 >>> =3D=3D=3D Results Summary =3D=3D=3D >>>=20 >>> You can find the failure logs in *.log.1.xz files in >>> - = https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/ar= tifacts/00-sumfiles/ . >>> The full lists of regressions and progressions are in >>> - = https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/ar= tifacts/notify/ . >>> The list of [ignored] baseline and flaky failures are in >>> - = https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/ar= tifacts/sumfiles/xfails.xfail . >>>=20 >>> The configuration of this build is: >>> CI config tcwg_gdb_check master-arm >>>=20 >>> = -----------------8<--------------------------8<--------------------------8= <-------------------------- >>> The information below can be used to reproduce a debug environment: >>>=20 >>> Current build : = https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/ar= tifacts >>> Reference build : = https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/724/artifact/ar= tifacts >>>=20 >>> Reproduce last good and first bad builds: = https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gdb/s= ha1/8669a8b67408c11d6bf77a09c6aa733f7150abed/tcwg_gdb_check/master-arm/rep= roduction_instructions.txt >>>=20 >>> Full commit : = https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommitdiff;h=3D8669a8= b67408c11d6bf77a09c6aa733f7150abed >>>=20 >>> List of configurations that regressed due to this commit : >>> * tcwg_gdb_check >>> ** master-arm >>> *** FAIL: 2 regressions >>> *** = https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gdb/s= ha1/8669a8b67408c11d6bf77a09c6aa733f7150abed/tcwg_gdb_check/master-arm/det= ails.txt >>> *** = https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/ar= tifacts