From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Florian Weimer Newsgroups: gmane.comp.lib.glibc.alpha Subject: Re: [PATCH 0/2] nptl: Update struct pthread_unwind_buf Date: Sun, 25 Feb 2018 13:58:34 +0100 Message-ID: <877er1b4zp.fsf@mid.deneb.enyo.de> References: <20180201205757.51911-1-hjl.tools@gmail.com> <4abf9786-1879-f16c-5a01-3261cd718d63@redhat.com> <87inb7pug7.fsf@mid.deneb.enyo.de> <2a02aac9-6aa3-4dc6-b122-039ae85365e8@redhat.com> <87d11emoap.fsf@mid.deneb.enyo.de> <878tc2mkgr.fsf@mid.deneb.enyo.de> <90d3ee18-c292-117f-a0c1-7822e340ca02@redhat.com> <87a7vyjsqv.fsf@mid.deneb.enyo.de> <87vaelbetu.fsf@mid.deneb.enyo.de> <87fu5pb7ql.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519563401 2919 195.159.176.226 (25 Feb 2018 12:56:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Feb 2018 12:56:41 +0000 (UTC) Cc: "Carlos O'Donell" , GNU C Library To: "H.J. Lu" Original-X-From: libc-alpha-return-90561-glibc-alpha=m.gmane.org@sourceware.org Sun Feb 25 13:56:37 2018 Return-path: Envelope-to: glibc-alpha@blaine.gmane.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=E7P13 5QOU9Rk78NhOX9SWY27KWvSxlXDw8y/1spTZZnsKDC3o5fQA8hV+MVRSoXF7x/V9 H2CuNIXiCU3X+WLf2M/RVZNY45wPnsvkNZgJXq6hgQIRTk5Iis7TE+3vK2hkQMhf HUOb/VwvZa0YHg82+ejnlQQ0/a4TUMp6giQlD4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=tHlYGHQyLzx 6GtL2SZB4uRZceZU=; b=yBGl4vwzm1/LWf3l6kLpyozvnlH/yEj9D/Zd9tzzjTu karqx01SOGnzszStXynz5YDFy61g5r7VNmzSvMH8+JbHP5yPOjppQuo3ciYQs6BG eJjmguubgB2iiRYz29kmFXkdwVNHLn7bNolDEONhPsz1ar3xzm8rUbWWjmJj5gSo = Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libc-alpha-owner@sourceware.org Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=swallow X-HELO: albireo.enyo.de In-Reply-To: (H. J. Lu's message of "Sun, 25 Feb 2018 04:55:12 -0800") Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82893 Archived-At: Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epvr2-0000Ij-8n for glibc-alpha@blaine.gmane.org; Sun, 25 Feb 2018 13:56:36 +0100 Received: (qmail 124985 invoked by alias); 25 Feb 2018 12:58:39 -0000 Received: (qmail 124965 invoked by uid 89); 25 Feb 2018 12:58:38 -0000 * H. J. Lu: > Let me rephrase. Can a function, which contains cancellation points, > return to its caller after cancellation happened? I don't think it can. It's undefined to use longjmp to jump out of a cancellation handler. On the C++ side, we make sure that the unwinding always proceeds, even across catch (...) blocks which swallow the exception.