Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4092977ybz; Tue, 28 Apr 2020 05:45:21 -0700 (PDT) X-Google-Smtp-Source: APiQypJluGtnWL8kL2FAxHafXzFMWku2+WXWay22NmBlEmJZrc6JYuo790Kq/KItLUiy+PsR2QtZ X-Received: by 2002:a17:907:2101:: with SMTP id qn1mr25448860ejb.207.1588077921132; Tue, 28 Apr 2020 05:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588077921; cv=none; d=google.com; s=arc-20160816; b=RHxC7YEGlSuZOdmrHGPkFOt1vvIYAqM0UsG63UGWZalmv9Er1ux/VcKgSf0jFBKARy t1zbE9HWkCmOAmf1DS6DAYbVGhg7vedBhPaCLVcVMFX3AVL4QorAWt1S7KFm9Nz9PRcv 5iJzZEFqXTS5JX5Mp234Tx8l9wVcK11xffXGaIiBe1hQaSOwLeZwhYvBdBoKtHzmzmTh qYduPA8Wf3E7pjH+03OxCKukb+YmS5sHP6aUWIk5ob2yDVb0UVEamOUiNnXipyaqd0YF cJIt3kscwvFrHrdAR/hlX5lT+IQo/hDkGDRoiBD3h1Zispht96TRrR5G9S/CLQVrmCL2 /qqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=pSTcinJ2v7bl76jpCZ7vaBeyRr3WL3E3P21vWCpzgGU=; b=I4ci5Hlp9izXPkwRtMThI8TZSp77jaq52MJohrS2+BUGEsmgsw+ICEl/9ImGxoIaPR YE6HmLTcDC3O+h0lUN4b7X/O7S7h99CpLt+YCA9zxTC99U+9WmlyziuH/wTrUAkf9m7e FaHUZNrkPvSJzWgWarP/94NCuYj7EcStLvvDkzi4FAzHfUJxZY6uS6iEpSrdPXdLwrz6 tiWevES96DTE+7TUe/TFuX/6b1ssp+EEPBr+zHhw2p7SXV3IKXVdN/Dq9i6iOjzjAF8u ETjjJjvJhma4YiYuMZCAvLEbDhfVrgfgOq+/vWswDsBa2hANXooNZyibEHOrruCfwZ9L UffQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=EGWeaswS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si1421173edi.492.2020.04.28.05.44.56; Tue, 28 Apr 2020 05:45:21 -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; dkim=pass header.i=@efficios.com header.s=default header.b=EGWeaswS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726764AbgD1Mnj (ORCPT + 99 others); Tue, 28 Apr 2020 08:43:39 -0400 Received: from mail.efficios.com ([167.114.26.124]:54978 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726544AbgD1Mni (ORCPT ); Tue, 28 Apr 2020 08:43:38 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5E04A27C7EF; Tue, 28 Apr 2020 08:43:37 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hZc0DgyNWp2G; Tue, 28 Apr 2020 08:43:37 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id E7F4527CC00; Tue, 28 Apr 2020 08:43:36 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com E7F4527CC00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1588077817; bh=pSTcinJ2v7bl76jpCZ7vaBeyRr3WL3E3P21vWCpzgGU=; h=Date:From:To:Message-ID:MIME-Version; b=EGWeaswS4ocPk9VaLnAlmAMyOHKWdqDVG4CeUIM8UcBA8T8zB5MK6tRrNiqr7cxrH AZDRNbIIg8Y5IunLtdc2Mod4yNLQI0/gkYnUUMDhg4yPGh7Lb7wG1ektBgp0YKvULd g8EN544rF9X2Okc4qMVeg/3R2U/Zc+amjRt3YT4fSJ1Vuibh81+n4ps+i0dSFT5YEE up24SWzxiAlYUuu0pvNAjtWZjOgflA1SDATMLSvnF6q9k1NhXxM1nOWia7ZtlWS1kA lyOxxnjaLODGCBe5CM0bjI8l01eCrFub+LVDw7walDQJTrKPYMFyscvDrhjL/RY/K1 45NZ0R/lWC8Bg== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id laL4SbVSBY_R; Tue, 28 Apr 2020 08:43:36 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id D3EF427C753; Tue, 28 Apr 2020 08:43:36 -0400 (EDT) Date: Tue, 28 Apr 2020 08:43:36 -0400 (EDT) From: Mathieu Desnoyers To: Florian Weimer 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 Message-ID: <190402462.72430.1588077816717.JavaMail.zimbra@efficios.com> In-Reply-To: <878sifrdo0.fsf@mid.deneb.enyo.de> 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> Subject: Re: [PATCH glibc 5/9] glibc: Perform rseq(2) registration at C startup and thread creation (v17) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_3918 (ZimbraWebClient - FF75 (Linux)/8.8.15_GA_3895) Thread-Topic: glibc: Perform rseq(2) registration at C startup and thread creation (v17) Thread-Index: F5B1mq4gIeyZb0nt5SE+TvVdhXfIog== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- 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) After make check I have: cat tst-rseq-nptl.test-result FAIL: nptl/tst-rseq-nptl original exit status 134 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) Same result if I do ./testrun.sh nptl/tst-rseq-nptl Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com