Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: ZSH_XTRACEFD variable
- X-seq: zsh-workers 44631
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Timothée Mazzucotelli <timothee.mazzucotelli@xxxxxxxxx>
- Subject: Re: Feature request: ZSH_XTRACEFD variable
- Date: Wed, 31 Jul 2019 23:12:48 +0200
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7HofGeBEy7OWFJ6fpUW8OBVHiX0LM7q1ZYf0Fe3oAgU=; b=r5N1uIN6Ky55QIR7ZfnE0ftxcoX7eGyyb5k6F1lR2SeSqzpRxNmSJEhymOQF8cqT1P +U58xUyTQjeS2Csk4RvAevKldcNBOg4qJtWuojJAYwZmJz1UmBubk2KtFEG6bCVcp1Hj 6XeSuBXOkR4l5W/Lq/UQ5Lm04kvL38ZuifcxOZOAmWG5z+69ju7Eg7gw2/g6p1ZF+Atf yCvrPR76qVmMw3EEfmIwMTE4esMSH5XKUIRoOFqCdXX35XuiZDZe/oD2O7JfJxKabXmd m3iapvvNcMjXMFfqxF4t/ioAcBxw0LWNjmT1lIumRkQ08k0W15ZATe0BaH1vRsqzTpwc t02Q==
- In-reply-to: <CAD8ZDTqDoVY7BP9FhwWVaFY=F+pBjD6yft9mMked_sSHwjpYtw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <EL9xNuAdKSLWp41th3XxhRLVtul7jHkT9ons2s2c_35aNjCbCMzo4DqiCNV1SoNjdLhNgdUGLNMHQxQ9q4jDMcNIsxzonWx5jzOB5Hr8rBs=@protonmail.com> <20190518075514.hbygmb5dl5wz23h5@chaz.gmail.com> <20190520103444.qyih7lvoigvf3rfx@chaz.gmail.com> <CGME20190721150914epcas1p18b5b4b9ccc4e593e854b076a835257c7@epcas1p1.samsung.com> <CAD8ZDTrfrWTKfa1efTo63uk1XJO4BOp5hSLOfjL1tXkeDMf_QQ@mail.gmail.com> <1563722540.4311.24.camel@samsung.com> <CAD8ZDTokqOTfEajquX2SKU5pLWgd85sPdRMYkxE4nF0pQhi+BA@mail.gmail.com> <CAD8ZDTqDoVY7BP9FhwWVaFY=F+pBjD6yft9mMked_sSHwjpYtw@mail.gmail.com>
On Wed, 31 Jul 2019 at 21:46, Timothée Mazzucotelli
<timothee.mazzucotelli@xxxxxxxxx> wrote:
> > About leaks, I think file pointers are all freed in the params.c set and
> > unset functions.
> > However I'm not sure about exec.c, line 5396, in function execshfunc,
> > where xtrerr was
> > previously always reassigned to stderr. Now it is reassigned to a new file
> > pointer obtained
> > with fdopen(zsh_xtracefd, "w") each time, and maybe this could cause
> > memory leaks.
This seems to be a good use for the valgrind tool that is (?) to be
added to Zsh. You can check workers/44491 and 44492. With the thing
installed, you could create some test cases and run them throguh
Valgrind automatically and repeatably.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author