Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Segfault with "private" parameters inside "always" block
- X-seq: zsh-workers 50362
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Segfault with "private" parameters inside "always" block
- Date: Thu, 9 Jun 2022 14:03:22 -0700
- Archived-at: <https://zsh.org/workers/50362>
- List-id: <zsh-workers.zsh.org>
zsh/param/private assumes the heap created in startparamscope() is the
only active heap until endparamscope(), but "always" blocks allocate
and free another layer of heap, which invalidates the memory "private"
uses for the parameter GSU structures.
I haven't figured out what to do about this, yet. The GSUs can't just
be static, because different special params use different callbacks
for get/set/unset.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author