bugGNU Octave - Bugs: bug #47828, persistent handle to function with...

 
 

bug #47828: persistent handle to function with subfunction fails after "clear all"

Submitted by:  Julien Bect <jbect>
Submitted on:  Mon 02 May 2016 03:52:22 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/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 03 May 2016 01:58:58 PM UTC, comment #4:

After having spent some more time on bug #35881, I believe that this one is different.

Julien Bect <jbect>
Tue 03 May 2016 11:36:51 AM UTC, comment #3:

Yes, I agree this is similar to bug #35881.

But I wouldn't mark it as duplicate:

  • in bug #35881, clear is called from within a function that has subfunctions.
  • in this bug, clear is called from the base workspace (but a handle to a function that has subfunctions is saved somewhere in an mlock'ed persistent).
Julien Bect <jbect>
Mon 02 May 2016 06:31:41 PM UTC, comment #2:

And after that narrowing down, this actually looks a lot like bug #35881, what do you think?

Mike Miller <mtmiller>
Project Administrator
Mon 02 May 2016 06:28:31 PM UTC, comment #1:

Confirmed, this bug actually needs a handle to a function that references a subfunction, which is why the error you see is about "empty_cf" not about "sqp".

Here is a simple demonstrator:

Mike Miller <mtmiller>
Project Administrator
Mon 02 May 2016 03:52:22 PM UTC, original submission:

Consider the following m-file

Then the following sequence of instruction leads to an error:

The handle to sqp stored in the persistent variable f appears to be "corrupted" by clear.

Julien Bect <jbect>

 

(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

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jbect (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 02 May 2016 06:28:31 PM UTCmtmillerCategoryNone=>Interpreter
      StatusNone=>Confirmed
      Release4.0.2=>dev
      SummaryProblement with persistent handle and "clear all"=>persistent handle to function with subfunction fails after "clear all"

    Back to the top


    Powered by Savane 3.1-cleanup1