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: AS17314 8.43.84.0/22 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 [8.43.85.97]) (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 C24FE1F8C6 for ; Mon, 23 Aug 2021 09:51:02 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7DE4B3853C01 for ; Mon, 23 Aug 2021 09:51:01 +0000 (GMT) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id AFCF73858417 for ; Mon, 23 Aug 2021 09:49:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AFCF73858417 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-out2.suse.de (Postfix) with ESMTPS id DC25D1FF95; Mon, 23 Aug 2021 09:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1629712184; 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=2LssnVpeEsFlL+cRNcun2i+WXltgTmzVcqHmT5hT/24=; b=viN1ZOh9GYer3763kt+/e5ZjCryiBf3AE1D38qYpNOShsF7b56MDwFlFL5jIVLRcPKEbQ8 UrQwV4xRKo+CCFVHGI3wdiwBZrnDjy9cWDxtoVYgqyJFjo40LwLdNDDtFMu2XkG5IXWY4S 2GTFDwmzfCrRERrvX9qt32yCN3puhYg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1629712184; 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=2LssnVpeEsFlL+cRNcun2i+WXltgTmzVcqHmT5hT/24=; b=hZdQl9Aye4WIFwW1Z3fwsje0a4O3hmNHflLVbautwU7qEkTKIR6LytzouwPD1A87jcP8ux rHQABy8v5Nil3dCQ== 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 91F0113A92; Mon, 23 Aug 2021 09:49:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id JPerIDhvI2EZdQAAGKfGzw (envelope-from ); Mon, 23 Aug 2021 09:49:44 +0000 Date: Mon, 23 Aug 2021 11:49:42 +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> <87y28sqz4z.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y28sqz4z.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 Florian, > * Petr Vorel: > > Hi Florian, > >> * Andreas Schwab: > >> > Is pthread_cleanup_push supposed to work together with async > >> > cancellation? > >> In our implementation? I think so. POSIX doesn't require it, though. > > Would you please share link to POSIX docs where it's stated? > > It'd help us to fix LTP POSIX tests. > Not sure if you seen my earlier comment: > [Section] 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. > The section number refers to POSIX.1-2017. > I hope this clarifies the matter. Great, thanks a lot! Kind regards, Petr > Thanks, > Florian