[bug #26085] infinite recursion in nested structure
Thorsten Meyer
thorsten.meyier at gmx.de
Wed Apr 15 06:14:45 CDT 2009
Hi,
Jaroslav Hajek wrote:
> On Sat, Apr 4, 2009 at 3:56 PM, Thorsten Meyer <INVALID.NOREPLY at gnu.org> wrote:
>
>> Details:
>>
>> In todays tip (4218f9515258) I have found a bug reproducible by the example
>> below. Apparently, the lazy copying scheme produces an infinite recursion in
>> the assignment in line 12.
>>
>
> A fix is uploaded to Savannah. This was caused by the optimizations in
> octave_struct::subsasgn aiming to avoid useless copying of field
> values in nested assignments. Hopefully it's correct now (it seems
> simpler).
> It would be nice to have more tests like this one.
>
I have pushed a few tests to at least prevent a regression of this
particular bug.
regards
Thorsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090415/bd1e9e50/attachment.html
More information about the Bug-octave
mailing list