bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] Malloc from signal handler in readline


From: Chet Ramey
Subject: Re: [Bug-readline] Malloc from signal handler in readline
Date: Thu, 02 Aug 2012 11:49:48 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 7/30/12 3:30 PM, Brian Bloniarz wrote:
> Hi, I think I've stumbled on a bug involving memory allocation from signal 
> context
> in readline 6.2. In GDB, I see this traceback:

Thanks for the report.  This has already been fixed for the next version of
readline.

If you want to look at the fixed version, you can get it from the `devel'
branch of the bash git tree on savannah (the relevant file is
lib/readline/signals.c).

> The rl_resize_terminal() call happens because of a SIGWINCH signal (see 
> rl_sigwinch_handler).
> 
> I saw there was some discussion involving fixing signal-handler-safety bugs
> (http://lists.gnu.org/archive/html/bug-readline/2011-06/msg00003.html),
> but I didn't see this particular case being discussed. 

It's the same issue with the same fix.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]