bug-ncurses
[Top][All Lists]
Advanced

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

Re: core dump in torture test


From: Thomas Dickey
Subject: Re: core dump in torture test
Date: Sat, 19 Oct 2002 17:39:41 -0400
User-agent: Mutt/1.3.27i

On Sat, Oct 19, 2002 at 05:15:11PM -0400, Lucas Gonze wrote:
> > it'll still dump core when you interrupt a program (independent of ncurses).
> 
> ? I don't get your meaning.

If malloc is interrupted, and the signal handler uses malloc, there's no
guarantee that malloc will function properly.  The same applies to stdio
and other things that operate on data in the user space.  Sometimes it
works, sometimes it doesn't.  (I'd like it to work all the time - back
15 years ago when I first was interested in sigwinch, it seemed to work
just fine using malloc in a signal handler, but that was BSD 4.3).

-- 
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]