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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

Fixed in git, commit 60ee4408.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach Files:
   
   
Comment:
   

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

    Back to the top


    Powered by Savane 3.3