bugGNU Octave - Bugs: bug #64688, VM machine has issues to cope with...


bug #64688: VM machine has issues to cope with nested anonymous functions

Submitter:  None
Submitted:  Mon 18 Sep 2023 07:32:15 AM UTC
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sun 01 Oct 2023 04:39:25 PM UTC, comment #3: 

No complaints from CI. Closing as fixed.

Arun Giridhar <arungiridhar>
Group Member
Thu 21 Sep 2023 12:29:44 AM UTC, comment #2: 

Thanks. Pushed here: https://hg.savannah.gnu.org/hgweb/octave/rev/7903910181a9

I edited the commit message to refer to this bug number.

Arun Giridhar <arungiridhar>
Group Member
Wed 20 Sep 2023 09:06:13 PM UTC, comment #1: 

Here is a patch addressing the issue.

(file #55151)

Petter <petter>
Mon 18 Sep 2023 07:32:15 AM UTC, original submission:  

function ret = test(left, right)
      f = @(y) 2 .* y;
      integ = @(in_left,in_right) quadgk (@(x)  f(x),  in_left, in_right);
      ret = integ(left, right);

_compile_("test"); test(0.1,0.5)

warning: Auto-compilation of anonymous function failed with message VM error 2594: Internal VM compiler consistency check failed, m_map_locals_to_slot.find (name) != m_map_locals_to_slot.end ()
warning: called from
    test at line 4 column 13

ans = 0.2400



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #55151:  octave_32434.patch added by petter (3KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by petter (Updated the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-10-01 arungiridhar StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2023-09-21 arungiridhar StatusNone Ready For Test
    2023-09-20 petter Attached File- Added octave_32434.patch, #55151

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code