bugGNU Octave - Bugs: bug #49600, Error in the...

 
 

bug #49600: Error in the unwind_protect_cleanup section of print.m

Submitted by:  Guillaume <gyom>
Submitted on:  Mon 14 Nov 2016 12:55:04 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 16 Nov 2016 06:35:32 PM UTC, comment #4:

I pushed Pantxo's cset here (http://hg.savannah.gnu.org/hgweb/octave/rev/219c70d2ba28). I made two small changes.

Change #1 : indexing is faster than deleting

Change #2 : No need to repeat file name in commit message when multiple things were done to it.

Rik <rik5>
Project Administrator
Tue 15 Nov 2016 05:11:30 PM UTC, comment #3:

Thanks Pantxo, with your patch the error disappeared.

Guillaume <gyom>
Mon 14 Nov 2016 10:24:30 PM UTC, comment #2:

Hi,

I attached a patch in which I addressed the two issues:

  • don't change the ui* objects units
  • declare nfig soon and paranoiacally increment after each set operation

(file #38965)

Pantxo Diribarne <pantxo>
Project Member
Mon 14 Nov 2016 02:12:55 PM UTC, comment #1:

Here is a way to reproduce the error:

This points out to another bug where print.m tries to change the "units" property of the uicontrol to "data" and fails; print('-noui') being not implemented yet.

Guillaume <gyom>
Mon 14 Nov 2016 12:55:04 PM UTC, original submission:

If, for some reasons, a call to 'print' fails, I observe the error message:

and looking at print.m, it indeed seems that if an error occurs before the nfig variable is defined (lines 393, 396) in the unwind_protect section, the subsequent cleanup will fail.

Guillaume <gyom>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38965:  unwind.patch added by pantxo (4KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by pantxo (Updated the item)
  • -unavailable- added by gyom (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
    Wed 16 Nov 2016 06:35:32 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Mon 14 Nov 2016 10:24:30 PM UTCpantxoAttached File-=>Added unwind.patch, #38965
      StatusNone=>Patch Submitted

    Back to the top


    Powered by Savane 3.1-cleanup1