From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 5AFEE3858D28 for ; Thu, 25 Jan 2024 15:04:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5AFEE3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5AFEE3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706195079; cv=none; b=oD8pYgRp79IVIghfcEKipYhzYoYjaO6nNBoWeRnX4NtKiBkL5H0BswZq82pJONEwhCj9GcjL/RDTgkhS7UE4yF1PWygBfIJ2mg4Ok24hKpV8cF0SYUiNHfu8LFaqKnFop7hHjE5HcFFxoSCZKFwOe6+F+CSxgrLmYCFjWiIpfx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706195079; c=relaxed/simple; bh=vcRV0x0xOToDeGsImkqAx65sK9Nttw5ps2d3Viq4e9Q=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=xIyumPYRCjugqAk32FBfRvi8PWkiqsimJb6jQbI9c5MQA+4LpqYKtFryrNnzL/H0A55aPKJh1g/EYwHURS/ERlcG9oWEx34o6HqseQvVVbHXg81VsJC7zCbGQUN45AxLGk8UiC459ql5B5fJ+DILGj2bwLg42pHXtr67t+YUAbs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706195067; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dT9Y7LOcMMOyJCcPr/TH+myFd3RFKb42jP+iGudZT5w=; b=C1J3/ePV95THSybS2tJ/JoWjSj+FVtpU9PkdcuwvCkZU9HWv55goseEeQlYZ0oOVyiqXeY qvxqHziKOEtP2tU16DPW6nVM3b66BZ6af4YCAzvGkGBm0iuqalnQnyBm0ceIVrjBme2QFc /qgZrEte2NIZKRH7l/Ji9foehoprZTU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-287-h4JaIJaKOjSFpVeDw2cbwA-1; Thu, 25 Jan 2024 10:04:21 -0500 X-MC-Unique: h4JaIJaKOjSFpVeDw2cbwA-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-40eaed9b181so39731675e9.0 for ; Thu, 25 Jan 2024 07:04:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706195060; x=1706799860; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dT9Y7LOcMMOyJCcPr/TH+myFd3RFKb42jP+iGudZT5w=; b=m6VCLNGwhHq2BRyQ7hQlyN566MicAnWahJYvZsPHCd01qJ77IVYH2r6FUx4Lzb9HKn asvveP5PWXwMQM6q+tQn1bv/zcoGR4WFJT8T8NL0Hm0EzyfwlyHZJrbqySRCwmc0Zor2 rf3DxagJKGoDwCGAbjsyJrqCb7+R3Abdh9eAoUEdBvU5rOH1Qx56M9TcREn/felRw1r7 AnQdFRXnZxS41yyzDGqU5ENNMZm7iylDEYa7hANQquwpCU7kSVXvQLDt5M7tcTowSa0n MU3A6guYZHFrqpCvjKDDk3HcsBUKYEawaIBjxBoh+i6jAk+45zs4siatr4u+eRdVh+Yn 55sQ== X-Gm-Message-State: AOJu0Yxgn7ClLPBBFD+16H+mBULR66Y9aOG059wwwb26kXsu1avmDQns h7zG2ZTQQ4MsM5Ohv2vJaMfUaX1vIxkR2/1XL95EuE6eOgRjFYUfPy2layCCQMOXKVc4/PF3v2p 3jOoy6emIr3L3xvB7p/n156aqyv794yBUN7HiqN+DlDlEPJ8rCrrvX1xF0gFJuYYOTx4= X-Received: by 2002:a05:600c:5024:b0:40e:3632:2f47 with SMTP id n36-20020a05600c502400b0040e36322f47mr302779wmr.196.1706195060076; Thu, 25 Jan 2024 07:04:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEg9zloCJPrG8XOcPWyaonivITzZptblNDzHayM1DiPpd7MJinA8QwBoGyXNvpShNgHdRv1EQ== X-Received: by 2002:a05:600c:5024:b0:40e:3632:2f47 with SMTP id n36-20020a05600c502400b0040e36322f47mr302774wmr.196.1706195059700; Thu, 25 Jan 2024 07:04:19 -0800 (PST) Received: from [192.168.0.129] (ip-94-112-227-180.bb.vodafone.cz. [94.112.227.180]) by smtp.gmail.com with ESMTPSA id t18-20020a05600c199200b0040ecea22794sm2773162wmq.45.2024.01.25.07.04.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 07:04:19 -0800 (PST) Message-ID: <3e384984-8ea6-455d-9a57-4e4b5d7d5e3c@redhat.com> Date: Thu, 25 Jan 2024 16:04:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Linaro-TCWG-CI] gdb-14-branchpoint-1354-g8669a8b6740: FAIL: 2 regressions on arm To: Maxim Kuvyrkov Cc: gdb-testers@sourceware.org, Linaro Toolchain Working Group , Thiago Jung Bauermann References: <1835774318.11177.1706141292374@jenkins.jenkins> From: Guinevere Larsen In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham 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 25/01/2024 10:10, Maxim Kuvyrkov wrote: >> On Jan 25, 2024, at 04:08, ci_notify@linaro.org wrote: >> >> 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. >> >> 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. >> >> 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. >> >> In gdb_check master-arm after: >> >> | 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. >> >> FAIL: 2 regressions >> >> regressions.sum: >> === gdb tests === >> >> Running gdb:gdb.threads/threadcrash.exp ... >> FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count == 7 >> FAIL: gdb.threads/threadcrash.exp: test_gcore: $thread_count == [llength $test_list] > Hi Guinevere, > > The failures seem to be due to "LWP" output (instead of "Thread") in test_gcore. > > I.e., test_corefile succeeds with > > === > (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/gdb/testsuite/gdb.threads/threadcrash.c:381 > 2 Thread 0xf7c6f3a0 (LWP 476390) do_spin_task (location=NORMAL) at /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.threads/threadcrash.c:139 > 3 Thread 0xf746e3a0 (LWP 476391) do_spin_task (location=SIGNAL_HANDLER) at /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.threads/threadcrash.c:139 > 4 Thread 0xf6c6d3a0 (LWP 476392) do_spin_task (location=SIGNAL_ALT_STACK) at /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gdb/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 == 7 > === > > and then test_gcore fails with > > === > (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/gdb/testsuite/gdb.threads/threadcrash.c:381 > 2 LWP 476442 do_spin_task (location=NORMAL) at /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.threads/threadcrash.c:139 > 3 LWP 476443 do_spin_task (location=SIGNAL_HANDLER) at /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.threads/threadcrash.c:139 > 4 LWP 476444 do_spin_task (location=SIGNAL_ALT_STACK) at /home/tcwg-buildslave/workspace/tcwg_gnu_4/abe/snapshots/gdb.git~master/gdb/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 == 7 > === > > 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. 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? Also, I read the Jira comments and just wanted to mention I go by she/her pronouns :) -- Cheers, Guinevere Larsen She/Her/Hers > > Thanks! > > -- > Maxim Kuvyrkov > https://www.linaro.org > > >> === Results Summary === >> >> 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/artifacts/00-sumfiles/ . >> The full lists of regressions and progressions are in >> - https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/artifacts/notify/ . >> The list of [ignored] baseline and flaky failures are in >> - https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/artifacts/sumfiles/xfails.xfail . >> >> The configuration of this build is: >> CI config tcwg_gdb_check master-arm >> >> -----------------8<--------------------------8<--------------------------8<-------------------------- >> The information below can be used to reproduce a debug environment: >> >> Current build : https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/artifacts >> Reference build : https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/724/artifact/artifacts >> >> Reproduce last good and first bad builds: https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gdb/sha1/8669a8b67408c11d6bf77a09c6aa733f7150abed/tcwg_gdb_check/master-arm/reproduction_instructions.txt >> >> Full commit : https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=8669a8b67408c11d6bf77a09c6aa733f7150abed >> >> 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/sha1/8669a8b67408c11d6bf77a09c6aa733f7150abed/tcwg_gdb_check/master-arm/details.txt >> *** https://ci.linaro.org/job/tcwg_gdb_check--master-arm-build/726/artifact/artifacts >