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

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

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

Avoided in git, commit 5b40bad6.

Benno Schulenberg <bens>
Group administrator
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>
Group administrator
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>
Group administrator

 

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

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)
  •  

    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.

     

    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.13-758e.
    Corresponding source code