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

 
 

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

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

Add a New Comment Rich Markup
   

Sat 08 Dec 2018 12:39:50 AM UTC, comment #1: 
Kai Torben Ohlhus <siko1056>
Group Member
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>
Group Member

 

(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)
  •  

    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 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.13-3230.
    Corresponding source code