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

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

[Octave-bug-tracker] [bug #57439] handles to private functions may fail


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #57439] handles to private functions may fail after "clear functions"
Date: Wed, 18 Dec 2019 13:06:22 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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

                 Summary: handles to private functions may fail after "clear
functions"
                 Project: GNU Octave
            Submitted by: jwe
            Submitted on: Wed 18 Dec 2019 06:06:20 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: jwe
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Bug #57424 noted a failure in the publish.tst test files in the test suite
after a recent change.

This problem appears to be due to a combination of factors, including the use
of handles to private functions in imformats, a call to "clear functions" in
test/bug-35881/bug35881.m, and possibly the use of mlock in imformats that
prevents the function handles from being created again when needed (though
recreating the handles really shouldn't be necessary - they should remain
valid even after "clear functions" is executed).

A simpler test case is attached.  After unpacking the files, execute the
following commands:


cd fh-bug
fh1 = f1()
fh2 = f2()
fh1 ()
fh2 ()
functions (fh1)
functions (fh2)
cd subdir
fh1 ()
fh2 ()
functions (fh1)
functions (fh2)
clear functions
fh1 ()
fh2 ()
functions (fh1)
functions (fh2) 


There should be no error, but Octave throws an error about invalid function
handles after moving to subdir or after the "clear functions" command (if the
cd command is skipped).

There is also some discussion about this problem in the following thread on
the maintainers list:

https://lists.gnu.org/archive/html/octave-maintainers/2019-12/msg00108.html



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 18 Dec 2019 06:06:20 PM UTC  Name: fh-bug.tar.gz  Size: 335B   By:
jwe

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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