[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55184] Interpreter tries to obtain user_code_

From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #55184] Interpreter tries to obtain user_code_value from oct-file.
Date: Fri, 7 Dec 2018 19:36:47 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36


                 Summary: Interpreter tries to obtain user_code_value from
                 Project: GNU Octave
            Submitted by: siko1056
            Submitted on: Sat 08 Dec 2018 01:36:46 AM CET
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: In Progress
             Assigned to: siko1056
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux



The problem has an easy fix and was introduced with cset

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.


File Attachments:

Date: Sat 08 Dec 2018 01:36:46 AM CET  Name: bug.zip  Size: 2KiB   By:



Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]