* Re: vared bug
[not found] <20000814100208.A21719@eggink4.rrz.uni-hamburg.de>
@ 2000-08-14 8:53 ` Bart Schaefer
[not found] ` <20000814113707.A22120@eggink4.rrz.uni-hamburg.de>
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2000-08-14 8:53 UTC (permalink / raw)
To: zsh-workers, Bernd Eggink
On Aug 14, 10:02am, Bernd Eggink wrote:
} Subject: Re: vared bug
}
} Thanks, but now a "vared -c prompt var" causes a
} segmentation fault if var is unset...
Could you please give a few more details? 3.0.8 or 3.1.9?
`vared -c prompt var' edits the `prompt' variable, so that can't be what
you actually mean.
`vared -c -p something var' works for me, it prints "something" and waits
for me to enter the value that gets assigned to var.
`vared -p something var' also works for me, it prints the warning message
"no such variable: var". Both when run from a script and on the command
line, and when executed multiple times, etc.
So I'm confused.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vared bug
[not found] ` <20000814113707.A22120@eggink4.rrz.uni-hamburg.de>
@ 2000-08-14 16:12 ` Bart Schaefer
2000-08-14 16:49 ` PATCH: " Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2000-08-14 16:12 UTC (permalink / raw)
To: Bernd Eggink; +Cc: zsh-workers
On Aug 14, 11:37am, Bernd Eggink wrote:
} Subject: Re: vared bug
}
} Sorry again, what I meant was of course
}
} vared -cp prompt var
}
} where 'var' is unset.
Aha.
I get "BUG: attempt to free storage at invalid address". It happens at
zsfree() at Src/Zle/zle_main.c line 531.
I don't think this has anything to do with the value of `shout'; it does
not happen in 3.0.8.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* PATCH: Re: vared bug
2000-08-14 16:12 ` Bart Schaefer
@ 2000-08-14 16:49 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2000-08-14 16:49 UTC (permalink / raw)
To: Bernd Eggink; +Cc: zsh-workers
On Aug 14, 4:12pm, Bart Schaefer wrote:
}
} On Aug 14, 11:37am, Bernd Eggink wrote:
} }
} } vared -cp prompt var
} }
} } where 'var' is unset.
}
} I get "BUG: attempt to free storage at invalid address". It happens at
} zsfree() at Src/Zle/zle_main.c line 531.
This appears to have come from the changes to remove PERMALLOC/LASTALLOC
and friends.
Index: Src/Zle/zle_main.c
===================================================================
@@ -877,6 +877,8 @@
} else if (*s) {
zwarnnam(name, "invalid parameter name: %s", args[0], 0);
return 1;
+ } else {
+ s = ztrdup(s);
}
if (SHTTY == -1) {
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-14 16:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20000814100208.A21719@eggink4.rrz.uni-hamburg.de>
2000-08-14 8:53 ` vared bug Bart Schaefer
[not found] ` <20000814113707.A22120@eggink4.rrz.uni-hamburg.de>
2000-08-14 16:12 ` Bart Schaefer
2000-08-14 16:49 ` 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).