[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: es dumps core, aargh...



- Harald Hanche-Olsen <hanche@math.ntnu.no>:

| All of a sudden, es has started dumping core on me when I run a
| certain script on a DEC alpha (OSF 1 V3.2).

Ah...  Now I understand why that script dumped core.
I also don't understand why it used to work before - because it should
not have done so:

Here is a minimal version of the same problem.  This dumps core:

; echo <={@ x{x=@{$*}; $&result $x}}

why?  check this one first:

; echo <={@ x{$&result @{$*}} X}
%closure(x=X)@ * {$*}

Now, imagine replacing X by the entire closure, and you have a closure
containing a reference to itself.  That can never be printed, of
course.

It is interesting to note how the act of complaining to the list
opened up my mind to the point where I could figure out the problem by
myself.  I hope I haven't disturbed the rest of you unduly with this.

I'll go bang my head against the wall for a while now.
I'm sure it will make me feel better.


- Harald