bugGNU nano - Bugs: bug #53720, if sigaction() fails, nano will...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53720: if sigaction() fails, nano will hang on a blank screen

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 23 Apr 2018 08:50:49 AM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Mon 23 Apr 2018 10:22:09 AM UTC, comment #2: 

Avoided in git, commit 5b40bad6.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 23 Apr 2018 09:03:15 AM UTC, comment #1: 

What causes the blank screen is the doupdate() call in nperror().

Hmm.  I don't think we should be using nperror() and perror() at all.  But in this case, because we've already done an endwin(), we can simply use plain perror() instead of nperror().

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 23 Apr 2018 08:50:49 AM UTC, original submission:  

If one of the first two sigaction() calls in scoop_stdin() would fail, then nano will hang on a fully blank screen and there is no way out.

To reproduce, add a 'TRUE ||' to one of the sigaction ifs in scoop_stdin(), compile, and then run: 'src/nano -'.  Result: blank screen, and fully locked up.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-28 bens Open/ClosedOpen => Closed
    2018-04-23 bens StatusNone => Fixed

    Back to the top


    Powered by Savane 3.7