Clinton A. Pierce wrote:

> * sync up, and get the latest Parrot BASIC.  It's fully hash-enabled and
> quite speedy now.
>
> * Run "basic.pl" to assemble the interpreter, and get it started
>
> * At the "Ready" prompt, "LOAD eliza"
>
> * When finished, type RUN
>
> The crash will happen shortly thereafter.  Comments in #parrot seem to

The problem appears to originate in the routine SFETCH, which tries to fetch
key "TWIRL" from the hash in P21 without finding it. The hash code returns a
null pointer under these circumstances, which is accepted as an empty string
by some, but not all, string handling code. In this case, attempting to
store the string into an array is invoking string_copy, which assumes the
input to be valid. IIRC Dan stated some time ago that checks for null were
not to be included, but I don't know what the current status is.

--
Peter Gibbs
EmKel Systems


Reply via email to