From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "H.J. Lu" Newsgroups: gmane.comp.lib.glibc.alpha Subject: Re: [PATCH 0/2] nptl: Update struct pthread_unwind_buf Date: Sun, 25 Feb 2018 06:00:16 -0800 Message-ID: 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> <877er1b4zp.fsf@mid.deneb.enyo.de> <87371pb3ga.fsf@mid.deneb.enyo.de> <87tvu59o21.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1519567117 32353 195.159.176.226 (25 Feb 2018 13:58:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Feb 2018 13:58:37 +0000 (UTC) Cc: "Carlos O'Donell" , GNU C Library To: Florian Weimer Original-X-From: libc-alpha-return-90567-glibc-alpha=m.gmane.org@sourceware.org Sun Feb 25 14:58:32 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=RlZA 9zY7zpzpCmBSyCJh1LUYHZRmfSQfi6kGzLqbyDoF9GeGbreF75nY34rbKIODhTRB iVF/BHMpx0LUS8yflZcOsUEv8oP7kETzft0NW4PNNFG2alwMrNT9dunVOuonbas7 gmizGeIrIDHjdpcR59QF7uBuuivuBlbg6hgJ0aw= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; s=default; bh=UNKe4j+888 0J4lcxXGn/NsEYn9c=; b=pUf8IJ2p5SbyoYk8jQNBa0ubKFqS2e+xUbYwhdUedD QPou1evW5jv4kUXfofBtf0M8csFmOadifcyoq4zzhZK/tlE04JvSCIIsAX482KQl mxopxYyF5ciU6bXYwbfL2x+MvWQtVuZuZGSynybrUNW+NZrkN4f0MyTY1paF91PH U= 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=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-ot0-f177.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=joD8zcGybf0V//0pu/1VX+vg6TPhLuqflZZ/Br8Fr44=; b=jCG09BKba4yPFyf66jxamua/OwA1ox+hILKH24Fs8G3ZfegicJmbhKDGXCKyC/sZSP CU19mR995KDYrbZdb62FBg2x/uucwqmBQ9nHc5drPhw35Lzug/xZlX7ZBe4BJa35DCLP WxaZ0bkMCiZZAgR2EB2gGwTdU4DEKlEJZDAPmt6WkJ3igbHW5okH+12mSGeEDix67eob m/4iy90TXtrQRDebrnxbftUGP8tpEJBtI52yv4EZFgVSDqGDJWbklpnWtNcXP0NX8Rid 5nuLB5y/cTtWTAjRE0MX3zfhHqMpif7/bHMaXMUGWDItOb0rtBXkuJyAuD/tgpH7QpvV xV9Q== X-Gm-Message-State: APf1xPAAEZeumDVFH0cKE6Ed8c+H3qkoe6laEIbU/FmF0QBqXvq8Fnke dyPsv/m6plG73Jmmwe10Jayl9VE4PUHyVTWMdgk= X-Google-Smtp-Source: AG47ELveg4vpUMajv6hW6Y6be/h22JVGmg08Q/KQgpWQnWYWRJOni58ihrx8ipYd9lhaaTDVrgZYeWe8uE7eAH2lWV4= X-Received: by 10.157.52.100 with SMTP id v91mr5299491otb.159.1519567216540; Sun, 25 Feb 2018 06:00:16 -0800 (PST) In-Reply-To: <87tvu59o21.fsf@mid.deneb.enyo.de> Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82899 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 1epwoy-0007sr-H0 for glibc-alpha@blaine.gmane.org; Sun, 25 Feb 2018 14:58:32 +0100 Received: (qmail 54856 invoked by alias); 25 Feb 2018 14:00:34 -0000 Received: (qmail 54718 invoked by uid 89); 25 Feb 2018 14:00:24 -0000 On Sun, Feb 25, 2018 at 5:49 AM, Florian Weimer wrote: > * H. J. Lu: > >> On Sun, Feb 25, 2018 at 5:31 AM, Florian Weimer wrote: >>> * H. J. Lu: >>> >>>> libpthread cancellation implementation passes cancel_jmp_buf to >>>> libgcc unwinder, >>> >>> Oh. Where does it do that? If you mean _Unwind_ForcedUnwind, I think >>> that's just an opaque closure argument for the callback. >> >> Yes. Libgcc unwinder needs to deal with it. > > Please point me to the code. Thanks. sysdeps/nptl/unwind-forcedunwind.c has _Unwind_Reason_Code _Unwind_ForcedUnwind (struct _Unwind_Exception *exc, _Unwind_Stop_Fn stop, void *stop_argument) { if (__glibc_unlikely (libgcc_s_handle == NULL)) pthread_cancel_init (); else atomic_read_barrier (); _Unwind_Reason_Code (*forcedunwind) (struct _Unwind_Exception *, _Unwind_Stop_Fn, void *) = libgcc_s_forcedunwind; PTR_DEMANGLE (forcedunwind); return forcedunwind (exc, stop, stop_argument); } -- H.J.