Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: TRAPINT doesn't work reliably
- X-seq: zsh-users 24298
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Dennis Schwartz <dennis.schwartz@xxxxxxxxxxxxxx>
- Subject: Re: TRAPINT doesn't work reliably
- Date: Sat, 28 Sep 2019 14:29:57 +0000
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-users@xxxxxxx
- 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==
- In-reply-to: <ODmJIQmuJJcZdaTGdd_T4zXxU0G7RHNJl3pSGxRC3qTePtsFsXSosieytwRTp2x2GTxggH_l9ZGZQb19rELfq70ZCOU9Xtr0Ik4ks9SpbOQ=@protonmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20190917164905epcas1p4ad458ffcd504501780d522880c81de3e@epcas1p4.samsung.com> <Bczpjmkq93UC9ogVXedAec4MSWn1xm79AtK56m7J7_XKU3g1oWkhoUeoj9_CjqM_bdhDM3WFcb0IWT04yMJctdhKDGj_fiAyOLAfaMatz5k=@protonmail.com> <1394985674.3969083.1569420087673@mail2.virginmedia.com> <22AgAhXQWzavJGhNA8tFbGSMGk8z3KDGGa-pICX0lWszH622z2_nnc1acuvW3OcIbqAaXM_WAGJwmQU5Oph83DGbfQEplu1t3o7F5omeC4w=@protonmail.com> <1569434163.10786.26.camel@samsung.com> <EwtKvyologv1mcP4t0gYc4lnyj-ccruEDWJM6kEh3_-H1P6kvlnSEV_LunkUg4AxuDZkdVcoPHq2KnqTqQ4pOAzRd2bXfkj0tjAvgg2-cQQ=@protonmail.com> <1569511539.3770.6.camel@samsung.com> <7P_7qK1o03NLAWi2yO8YMPN4ErtxVF9fCDTtiPNjfRrzqKcmoysqAeR8nQ1B5DEY_uYE_Y6EBGsxysbflCAyLbm_h5qrobU4F0143UCxWW8=@protonmail.com> <debe7222-453c-4a33-a639-90dadc428503@www.fastmail.com> <ODmJIQmuJJcZdaTGdd_T4zXxU0G7RHNJl3pSGxRC3qTePtsFsXSosieytwRTp2x2GTxggH_l9ZGZQb19rELfq70ZCOU9Xtr0Ik4ks9SpbOQ=@protonmail.com>
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 <d.s@xxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author