Mercurial > octave
view test/bug-61191/subdir/bug_61191.m @ 30199:37ddca7ad9cb stable
avoid internal error and segfault with eval and scripts (bug #61191)
* stack-frame.cc (script_stack_frame::get_val_offsets_with_insert):
If frame_offset is initially zero then update frame_offset from
m_lexical_frame_offsets after calling set_script_offsets_internal.
* test/bug-61191/bug-61191.tst, test/bug-61191/subdir/bug_61191.m:
New files.
* test/bug-61191/module.mk: Update.
* test/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Sep 2021 13:14:31 -0400 |
parents | |
children |
line wrap: on
line source
kk = 1; eval (['omckk = omc_' num2str(kk) ';']); eval (['Tckk = Tc_' num2str(kk) ';']); eval (['omc_' num2str(kk) ' = omckk;']);