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

 
 

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

Submitter:  Dan Sebald <sebald>
Submitted:  Tue 02 Apr 2013 06:53:11 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Thanks, I applied this changeset.

John W. Eaton <jwe>
Group 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 Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by sebald (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-10 jwe StatusNone Fixed
        Open/ClosedOpen Closed
    2013-04-02 sebald Attached File- Added octave-unix_terminal-2013apr02.patch, #27745

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code