zsh-workers
 help / color / mirror / code / Atom feed
* Segfault with "private" parameters inside "always" block
@ 2022-06-09 21:03 Bart Schaefer
  2022-06-09 22:04 ` [PATCH] " Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2022-06-09 21:03 UTC (permalink / raw)
  To: Zsh hackers list

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-09 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 21:03 Segfault with "private" parameters inside "always" block Bart Schaefer
2022-06-09 22:04 ` [PATCH] " Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).