bugGNU Octave - Bugs: bug #38648, Restore STDERR stream pipe before...

 
 

bug #38648: Restore STDERR stream pipe before exit to capture error messages.

Submitted by:  Dan Sebald <sebald>
Submitted on:  Tue 02 Apr 2013 06:53:11 AM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Crash
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 10 Apr 2013 03:09:25 AM UTC, comment #2:

Thanks, I applied this changeset.

John W. Eaton <jwe>
Project Administrator
Tue 02 Apr 2013 06:57:51 AM UTC, comment #1:

BTW, I did confirm that this changeset does as intended by doing an fprintf(stderr,...) inside the terminal destructor.

Dan Sebald <sebald>
Tue 02 Apr 2013 06:53:11 AM UTC, original submission:

The attached changeset is a small patch which will store the STDERR_FILENO pipe so that it may be restored at exit. This will allow any errors occurring at exit to be posted in a terminal if that is where Octave was launched from. Otherwise any exit error messages get displayed in the GUI terminal window and are gone unnoticed along with the closing of the Qt main window.

This isn't necessarily a bug, but in some sense it helps to uncover bugs. For example, I was finding a bug at exit that was going unnoticed. Turns out in the past couple weeks it was fixed by someone else. (The _terminal was being deleted twice.) Nevertheless, the attached change would have been helpful from the original onset of the bug.

Dan Sebald <sebald>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #27745:  octave-unix_terminal-2013apr02.patch added by sebald (3kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by sebald (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Apr 2013 03:09:25 AM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 02 Apr 2013 06:53:11 AM UTCsebaldAttached File-=>Added octave-unix_terminal-2013apr02.patch, #27745

    Back to the top


    Powered by Savane 3.1-cleanup