bug-ncurses
[Top][All Lists]
Advanced

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

Re: infinite loop in abort handler


From: Thomas Dickey
Subject: Re: infinite loop in abort handler
Date: Sat, 19 Oct 2002 16:17:46 -0400
User-agent: Mutt/1.3.27i

On Sat, Oct 19, 2002 at 03:34:10PM -0400, Lucas Gonze wrote:
> 
> The fabulous and not-insanely-irritating "core dumped. your fault!  
> (signal 11)" message gets in an infinite loop.  I assume the signal 
> handler needs to unset itself.

There's more than one cause for that in the original code (and it's easy to
make it do that - one or more of the demos broke this way).

I fixed the ones that I know of (freeing memory twice is the case I recall).

I did see some comment on one of the *BSD's a few months ago that it still
shouldn't use printf inside a signal handler (so I'll revisit that).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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