[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64817] VM seems to get out of sync in certain
From: |
Petter |
Subject: |
[Octave-bug-tracker] [bug #64817] VM seems to get out of sync in certain situations and throws error / produces core dump |
Date: |
Sat, 28 Oct 2023 10:25:16 -0400 (EDT) |
Follow-up Comment #2, bug #64817 (project octave):
I've made a patch that addresses the issue.
Don't mix up field and id slots when creating bytecode script frames (bug
#64817)
Instead of looking up variables by name lineary in the slot name data, use
a map.
* stack-frame.cc: Use map for id lookup
* pt-bytecode-walk.cc: Populate map
* pt-bytecode.h: Change set to map
* test/compile/bytecode_struct.m: Update tests
* test/compile/module.mk: Add new test script
* test/compile/script_defines_qweqwe.m: New test script
Builds on:
https://savannah.gnu.org/bugs/?64827
https://savannah.gnu.org/bugs/?64829
https://savannah.gnu.org/bugs/?64830
https://savannah.gnu.org/bugs/?64832
https://savannah.gnu.org/bugs/?64834
(file #55287)
_______________________________________________________
Additional Item Attachment:
File name: octave_32632.patch Size:12 KB
<https://file.savannah.gnu.org/file/octave_32632.patch?file_id=55287>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64817>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/