bugGNU Octave - Bugs: bug #55184, Interpreter tries to obtain...

 
 

bug #55184: Interpreter tries to obtain user_code_value from oct-file.

Submitted by:  Kai Torben Ohlhus <siko1056>
Submitted on:  Sat 08 Dec 2018 12:36:46 AM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  Kai Torben Ohlhus <siko1056>
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 08 Dec 2018 12:39:50 AM UTC, comment #1: 
Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.
Sat 08 Dec 2018 12:36:46 AM UTC, original submission:  

The problem has an easy fix and was introduced with cset https://hg.savannah.gnu.org/hgweb/octave/rev/2eb71b83d3e2#l8.14

There a line was removed and not restored, that ensured the function to exist and contain user_code:

if (fcn.is_defined () && fcn.is_user_code ())

The bug can be triggered with the attached files (bug.zip) by calling the function "problem" TWICE.  This will overwrite an existing oct-file and will cause a pointless error by calling an inappropriate function:

error: octave_base_value::user_code_value(): wrong type argument 'dynamically-linked function'
error: called from
    problem>do_sub at line 26 column 1
    problem at line 22 column 1

I will go ahead an restored that line, as it caused no other damage.  Maybe there should be a regression test, but I cannot imagine one yet.

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45594:  bug.zip added by siko1056 (2KiB - application/zip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-08 siko1056 StatusIn Progress => Fixed
        Open/ClosedOpen => Closed
    2018-12-08 siko1056 Attached File- => Added bug.zip, #45594

    Back to the top


    Powered by Savane 3.5