From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 05b331fa for ; Sat, 28 Sep 2019 14:30:54 +0000 (UTC) Received: (qmail 27150 invoked by alias); 28 Sep 2019 14:30:44 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24298 Received: (qmail 3132 invoked by uid 1010); 28 Sep 2019 14:30:44 -0000 X-Qmail-Scanner-Diagnostics: from out5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25580. spamassassin: 3.4.2. Clear:RC:0(66.111.4.29):SA:0(-2.6/5.0):. Processed in 5.482528 secs); 28 Sep 2019 14:30:44 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=/RBusd6YyxcN2bYMiisKdRupoSzlgAYwKyXk59vl WSU=; b=Ve016ztqGBxQLqwkqtXhl18x7bOm5A8FNrhrRhAfRfUnpWi+7VOESKFi 942PfCO2PUK4St4+cYsNZueOr2Da2+GPL5oYT50sQ6uKP7W5FgD/vVAtgJqIfg9J zOihXO4S8VczU3pa3sWUAx2a/ABopg9vs/9obtZPv81OsBFxcuzflStMciQzE+sQ nQdyzNoHLTRFa7GtujO15GJEVxjxIy4fC9T0CfbPH9A+Py3iuNiYtfzMmBMbgDFj xlRH9M17YhRPhHCRvoccCD9GFkIeveE9TZN35dgwDMWQrYJV4TYqF1OEL47d9E4P rujmfGtX+YaRnpI2bGtmkZneRs/mrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=/RBusd6YyxcN2bYMiisKdRupoSzlgAYwKyXk59vlW SU=; b=fgcWmLUp9WrRH1mf8L2ZY1KiII0stJtLGZyCwPlfFb5JUtnXCYmy0yMRh 5KiehJ1BZt6ltxPOdYIBRuVJ2McFNEMvKQRaUXY7vh7yEW/QBFF1MMRFwEAFzS+P f1jTTY5Xqu0ssaV+z1XJGu6cNwsdPablHPC7p5gRObWXqp8eZKMXAvDQ9Ikda1dC MFC8VdO0ZPqrHaZ2XN8veH1t54uANr2UUxY+SZD3oIEDJXW2Cw4NQoYImHhj/e3g /ByWfrPAXe8pB4KiVz1trABFDUAmxwdyAz7JpGGZiRggB53eIFClzT40BzLyNQaf zNWHNMiUVgoZAAYOBVAoGED8DNVdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfeekgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjfgesthektddttderudenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cukfhppeejledrudejiedrkedurdefgeenucfrrghrrghmpehmrghilhhfrhhomhepugdr shesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Date: Sat, 28 Sep 2019 14:29:57 +0000 From: Daniel Shahaf To: Dennis Schwartz Cc: Peter Stephenson , zsh-users@zsh.org Subject: Re: TRAPINT doesn't work reliably Message-ID: <20190928142957.ertue2us5ytn6ooo@tarpaulin.shahaf.local2> References: <1394985674.3969083.1569420087673@mail2.virginmedia.com> <22AgAhXQWzavJGhNA8tFbGSMGk8z3KDGGa-pICX0lWszH622z2_nnc1acuvW3OcIbqAaXM_WAGJwmQU5Oph83DGbfQEplu1t3o7F5omeC4w=@protonmail.com> <1569434163.10786.26.camel@samsung.com> <1569511539.3770.6.camel@samsung.com> <7P_7qK1o03NLAWi2yO8YMPN4ErtxVF9fCDTtiPNjfRrzqKcmoysqAeR8nQ1B5DEY_uYE_Y6EBGsxysbflCAyLbm_h5qrobU4F0143UCxWW8=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Dennis Schwartz wrote on Sat, Sep 28, 2019 at 11:16:08 +0000: > I have run > > $ ./configure --enable-zsh-debug --enable-zsh-mem && make && sudo make install Please run «make check» in there as well, on general principles. > On Friday, September 27, 2019 1:46 PM, Daniel Shahaf wrote: > > > Dennis Schwartz wrote on Thu, 26 Sep 2019 17:10 +00:00: > > > > > $ valgrind --leak-check=full --log-file=zsh-valgrind.log /usr/local/bin/zsh > > > /usr/share/zsh-antigen/antigen.zsh:2134: parse error near `\n' > > > $ ll > > > > What's the output of `dpkg -l zsh-antigen`? (I'm looking for the version number.) > > Good point. Debian 10 (buster) ships 2.2.3-2, which I'm running. > I believe the bug is triggered in zsh by using this newer version > (Debian 9 ships 1.3.4-1). If I compile and run zsh 5.3.1 (shipped with > Debian 9, where I did not encountered this issue) on with `zsh-antigen` > from Debian 10, I can also trigger the bug. Okay, so we have another angle on this: we could try to bisect antigen, either temporally (between 1.3.4-1 in Debian stretch and 2.2.3-2 in Debian buster) or spatially (taking the 2.2.3-2 version and deleting half of its antigen.zsh file at a time, lather, rinse, repeat). Would it be worthwhile to try and find a minimal example for the parse error? I don't know whether it's likely to be related to the memory bug. > > Does removing that assignment make a difference? > > No, the bug triggers for any TRAPINT function I've tried so far. Have you tried an empty function, «TRAPINT () {}»? Is there any reason to also try a «trap ':' INT»? Cheers, Daniel