Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4103155ybz; Tue, 28 Apr 2020 05:56:24 -0700 (PDT) X-Google-Smtp-Source: APiQypJjmfGxyTs7i1oVlPr8X+qBMG2uWqEMqHihUb3yVztydSqofe+qp13aLPAfUXHdA1/J5Wv0 X-Received: by 2002:a17:906:4003:: with SMTP id v3mr24015564ejj.144.1588078583994; Tue, 28 Apr 2020 05:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588078583; cv=none; d=google.com; s=arc-20160816; b=e/IfltwR0hSDZzwU6Gw8f/YyC8Qx+qpA/3u7KkxK7yiTXKc5wzkn/bPmlwjrYByg26 u+8i2JJfMuCo4y2VD54WvKBwXDxGEroVkXZaU2jYAZVciNok2SkL8olCiOqZem3xbkpN 8hU8a31iMVFnR1wWBkb1bA0ksMV/DTTuh+1OimjVdeIZig2+vswux+BLCfX5rAp8uWmN 2wiVaZk6UdbNYlBl+Fqe4KsnE+L6sgDGp7uBOUz9okyluiL74kYGKMm961KkCcYEP5B/ 1ra2k7BCtdQkNfnYXFhIBt0dUt8rMOYPWmuPz37tGxvCJNNhlGv5KoGOOfWps+MQaslp j1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=l+mr1gVpOb2Rbd/4bpriyiK7vGJJI5mcUnKCSNtU19M=; b=kZQKb217tE/l0p+fgVx6Se8aoc6fYNPOK889tluqPg7UIp8v5oLiBpZFZL5zMQY5N9 FJIh5HKrXRpDHUw/APPNaR6QBogyk4R4wn+CKLZrJZnhhpwZSLRqke0tHwFSQAxwC+3H +oHDUpQzj73Y/xFrRpUqT+aqlY6Fa3StN8eTcFkfYBKtd3+TezOinT7sqbpgGlmWMrvk dgTDv2tARl2yEMxkwbKti41E8n7PF4T/kzjz3aHp1pXGHWUS+YckkFJeeuUtWI+hXspz oAJ83U+V1aOv+CgKpYNpjOFLoLniLqplvHdQKsGFs/ZWhT7Lj0CPUxs9UTuSBuTGwr2k vCUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o12si1453441edv.257.2020.04.28.05.56.00; Tue, 28 Apr 2020 05:56:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726799AbgD1MyX (ORCPT + 99 others); Tue, 28 Apr 2020 08:54:23 -0400 Received: from albireo.enyo.de ([37.24.231.21]:48706 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726759AbgD1MyW (ORCPT ); Tue, 28 Apr 2020 08:54:22 -0400 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jTPka-0002WQ-A9; Tue, 28 Apr 2020 12:54:12 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jTPkT-00031t-02; Tue, 28 Apr 2020 14:54:05 +0200 From: Florian Weimer To: Mathieu Desnoyers Cc: Michael Kerrisk , libc-alpha , carlos , Rich Felker , linux-api , Boqun Feng , Will Deacon , linux-kernel , Peter Zijlstra , Ben Maurer , Dave Watson , Thomas Gleixner , Paul , Paul Turner , Joseph Myers , Szabolcs Nagy Subject: Re: [PATCH glibc 5/9] glibc: Perform rseq(2) registration at C startup and thread creation (v17) References: <20200326155633.18236-1-mathieu.desnoyers@efficios.com> <87ees9z417.fsf@mid.deneb.enyo.de> <284293396.70630.1588005648556.JavaMail.zimbra@efficios.com> <87zhawvphv.fsf@mid.deneb.enyo.de> <2102127737.70791.1588008377292.JavaMail.zimbra@efficios.com> <87ftcnrf7d.fsf@mid.deneb.enyo.de> <1080028389.72414.1588077193438.JavaMail.zimbra@efficios.com> <878sifrdo0.fsf@mid.deneb.enyo.de> <190402462.72430.1588077816717.JavaMail.zimbra@efficios.com> Date: Tue, 28 Apr 2020 14:54:04 +0200 In-Reply-To: <190402462.72430.1588077816717.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Tue, 28 Apr 2020 08:43:36 -0400 (EDT)") Message-ID: <87tv13py8j.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers: > ----- On Apr 28, 2020, at 8:35 AM, Florian Weimer fw@deneb.enyo.de wrote: > >> * Mathieu Desnoyers: >> >>> One issue I'm currently facing when running "make check": because >>> nptl/tst-rseq-nptl.c uses pthread_cancel(), I run into an Abort >>> with: >>> >>> libgcc_s.so.1 must be installed for pthread_cancel to work >>> Didn't expect signal from child: got `Aborted' >> >> This is really unusual. Is the affected test statically linked? > > I built glibc without specifying anything particular, and ran > "make check". It indeed seems to be dynamically linked to libc: > > ldd tst-rseq-nptl > ./tst-rseq-nptl: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./tst-rseq-nptl) > linux-vdso.so.1 (0x00007ffd3a2f3000) > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0527560000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f052716f000) > /home/efficios/glibc-test5/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f0527986000) That's expected if the installed glibc is older than the built glibc. > After make check I have: > > cat tst-rseq-nptl.test-result > FAIL: nptl/tst-rseq-nptl > original exit status 134 What's in the tst-rseq-nptl.out file? > And if I run > > ./tst-rseq-nptl > > Then I get > > libgcc_s.so.1 must be installed for pthread_cancel to work > Didn't expect signal from child: got `Aborted' > libgcc_s.so.1 must be installed for pthread_cancel to work > Aborted (core dumped) I'm puzzled why you don't get a GLIBC_2.32 version error in this case. Do you build with --enable-hardcoded-path-in-tests? > Same result if I do ./testrun.sh nptl/tst-rseq-nptl That one definitely should work. I expect you might see this if libgcc_s.so.1 is installed into a multiarch subdirectory that upstream glibc does not search. (The Debian patches are unfortunately not upstream.) I think on my system, the built glibc can find the system libgcc_s via /etc/ld.so.cache, so I haven't seen this issue yet.