bugGNU Octave - Bugs: bug #51375, calling anonymous function handle...

 
 

bug #51375: calling anonymous function handle loaded from a file hangs the interpreter (publish fails on anon functions)

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Mon 03 Jul 2017 09:04:19 PM UTC  
 
Category:  Octave Function Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  juanpi 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.

 

Fri 09 Mar 2018 09:09:44 PM UTC, comment #5:

Yeah this looks fixed now on the default branch, thanks.

Mike Miller <mtmiller>
Project Administrator
Fri 09 Mar 2018 08:49:12 PM UTC, comment #4:

Octave is not hanging for me with either the original test case or the code in comment #2.

Can anyone still reproduce the problem with a current version of Octave?

John W. Eaton <jwe>
Project Administrator
Tue 04 Jul 2017 12:32:26 PM UTC, comment #3:

Fantastic Mike!
Thanks for the detective work and finding the core problem

Juan Pablo Carbajal <juanpi>
Project Member
Mon 03 Jul 2017 11:31:56 PM UTC, comment #2:

This looks like the root cause to me:

This looks to me like a regression on the default branch, works fine in Octave 4.2.1.

The reason for the necessity of the section marker is that local variables are saved and loaded between each section of code by the publish function.

Mike Miller <mtmiller>
Project Administrator
Mon 03 Jul 2017 09:31:58 PM UTC, comment #1:

I can confirm this on Fedora 26.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Mon 03 Jul 2017 09:04:19 PM UTC, original submission:

The following script

hangs when published with publish. Removing the "sin" function (it also hangs with "exp", "log", etc... I guess built-ins?) makes publish work again...

BUT! also removing the line "## A section"

Weird bug.. reproducible? (in my system is a very robust bug!)

HG-ID 1147e5c912aa

Juan Pablo Carbajal <juanpi>
Project Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by juanpi (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-09 mtmiller StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2017-09-28 mtmiller Dependencies- => bugs #52134 is dependent
    2017-07-03 mtmiller Summarycalling function handle loaded from a file hangs the interpreter (publish fails on anon functions) => calling anonymous function handle loaded from a file hangs the interpreter (publish fails on anon functions)
    2017-07-03 mtmiller Summarypublish fails when script defines anonymous nested functions => calling function handle loaded from a file hangs the interpreter (publish fails on anon functions)
    2017-07-03 mtmiller Severity3 - Normal => 4 - Important
        Item GroupIncorrect Result => Regression
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.3