From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 77C321F8C6 for ; Thu, 5 Aug 2021 10:43:52 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8BD32384B821 for ; Thu, 5 Aug 2021 10:43:51 +0000 (GMT) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 13AA3385783A for ; Thu, 5 Aug 2021 10:43:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 13AA3385783A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 35DCC22374; Thu, 5 Aug 2021 10:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628160219; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sacutnctDhzul2t1rCrEuaRB1D3XuD3fGE9il88JjNA=; b=foyr4GhrSiNW98veb9NrUP6PbsGivb/oCCfcaebynTE+tasJej7TeKFMbv69y1hjO6ADHo 4qxXgkfYivDqCVbuAASvoXaV3eLzM8idGy+oXYaaoqX5t8PmeALUi56sCtNeCQI4QR16mR g2xF8+6TQ5MGlzsd+KY9MLkMBSpCUPA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628160219; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sacutnctDhzul2t1rCrEuaRB1D3XuD3fGE9il88JjNA=; b=30R8lUO6tIdV2yiPWFVfgREcyhwlaZm8RmyiP2ijGU6xJ2+Vzr3kHOuTL/1BuuKSZOQNJo Z78gt3vrZMstiiBw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 0A50413785; Thu, 5 Aug 2021 10:43:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id PMaVANvAC2FDegAAGKfGzw (envelope-from ); Thu, 05 Aug 2021 10:43:39 +0000 Date: Thu, 5 Aug 2021 12:43:37 +0200 From: Petr Vorel To: Florian Weimer Subject: Re: Async cacellation and pthread_cleanup_push Message-ID: References: <87zgtxuxa8.fsf@igel.home> <87fsvp9qcz.fsf@oldenburg.str.redhat.com> <87tuk5tcw8.fsf@igel.home> <87fsvp6vis.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fsvp6vis.fsf@oldenburg.str.redhat.com> X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: libc-alpha@sourceware.org, Andreas Schwab Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Hi all, > * Andreas Schwab: > > On Aug 04 2021, Florian Weimer wrote: > >> * Andreas Schwab: > >>> Is pthread_cleanup_push supposed to work together with async > >>> cancellation? > >> In our implementation? I think so. > > I don't see how that can work with -fexceptions or in C++, though. Is > > that supported? > I think it is supposed to work, but it probably is unreliable. > >> POSIX doesn't require it, though. > > Chapter and verse? > 2.9.5 Thread Cancellation, Thread Cancellation Cleanup Handlers and > Async-Cancel Safety. The first section calls pthread_cleanup_push a > function, the second section does not list it. > > Then the LTP test is INVALID. > Which test? It could be a test for Linux extension. FYI tests in testcases/open_posix_testsuite/ are POSIX tests (not Linux specific). Kind regards, Petr > Thanks, > Florian