bugGNU nano - Bugs: bug #54409, a signal handler should not call a...

 
 

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

bug #54409: a signal handler should not call a print routine

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 30 Jul 2018 05:43:39 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 30 Jul 2018 06:32:18 PM UTC, comment #1: 

Fixed in git, commit 60ee4408.

Benno Schulenberg <bens>
Group administrator
Mon 30 Jul 2018 05:43:39 PM UTC, original submission:  

(Original report by Daniel Kozovsky: http://lists.gnu.org/archive/html/nano-devel/2018-07/msg00113.html.)

The signal handler ‘cancel_command‘ in src/text.c calls the function nperror("kill").  This function calls function perror, which is asynchronous-unsafe, so this should not be used in a signal handler.

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-09-10 bens Open/ClosedOpen Closed
    2018-07-30 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code