On Fri, 11 Jan 2019, Artur T. wrote:
Am 11.01.19 um 09:49 schrieb Sven Schreiber:
> Am 11.01.2019 um 08:51 schrieb Artur T.:
>
>> M[j] = M[j] # update j-th matrix in ret # results in
>
> Artur, I don't think that this is what you mean, because this is not
> updating, but just redundant. Perhaps you have in mind an outer
> containing array?
Hi Sven, just 5 minutes ago I've came to the same conclusion :-D This is
fully redundant.
But nevertheless, it shouldn't lead to an out-of-memory error message I
guess.
True. Here's a minimal version of the bug:
<hansl>
matrices mm = defarray(I(3))
mm[1] = mm[1] # boom!
</hansl>
And it applies in general to the redundant "replacement" of an array
element by itself (not just matrices). The trouble is that the
original element was being freed before it was "replaced". That's now
fixed in git.
Allin