octave-bug-tracker
[Top][All Lists]
Advanced

[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

URL:
  <https://savannah.gnu.org/bugs/?55184>

                 Summary: Interpreter tries to obtain user_code_value from
oct-file.
                 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

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


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

<http://savannah.gnu.org/bugs/download.php?file_id=45594>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55184>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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