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 FunctionSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: ConfirmedAssigned to: None
Originator Name: juanpiOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by juanpi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 Sep 2017 04:31:10 PM UTCmtmillerDependencies-=>bugs #52134 is dependent
    Mon 03 Jul 2017 11:36:31 PM UTCmtmillerSummarycalling 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)
    Mon 03 Jul 2017 11:34:07 PM UTCmtmillerSummarypublish fails when script defines anonymous nested functions=>calling function handle loaded from a file hangs the interpreter (publish fails on anon functions)
    Mon 03 Jul 2017 11:31:56 PM UTCmtmillerSeverity3 - Normal=>4 - Important
      Item GroupIncorrect Result=>Regression
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1