[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: core dump in torture test
From: |
Lucas Gonze |
Subject: |
Re: core dump in torture test |
Date: |
Sat, 19 Oct 2002 17:39:11 -0400 (EDT) |
> 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).
Got it. Yeah, I was thinking of the same thing when I said that
problems with reentrant code called by a signal handler is less of a bug
than problems with repeated creation and deletion.
But note the signal handler itself, which clears itself during an
invocation. The OS would have to invoke winchange_handler and switch
away before executing the first line of it:
void winchange_handler(int signo){
signal(SIGCHLD, SIG_IGN);
if( victim == NULL )
// not initialized yet, so there's no window to change
return;
victim->recalc_window();
signal(SIGWINCH, winchange_handler);
}
- conflict of include name, Lucas Gonze, 2002/10/19
- Re: conflict of include name, Thomas Dickey, 2002/10/19
- Re: conflict of include name, Lucas Gonze, 2002/10/19
- infinite loop in abort handler, Lucas Gonze, 2002/10/19
- core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test, Thomas Dickey, 2002/10/19
- Re: core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test, Thomas Dickey, 2002/10/19
- Re: core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test, Thomas Dickey, 2002/10/19
- Re: core dump in torture test,
Lucas Gonze <=
- Re: core dump in torture test, Lucas Gonze, 2002/10/20
- CDK color map, Lucas Gonze, 2002/10/20
- \n in swindow has no effect, Lucas Gonze, 2002/10/20
- Re: \n in swindow has no effect, Thomas Dickey, 2002/10/20
- horizontal resize + wide swindow causes core dump, Lucas Gonze, 2002/10/21
- Re: horizontal resize + wide swindow causes core dump, Thomas Dickey, 2002/10/21
- Re: horizontal resize + wide swindow causes core dump, Lucas Gonze, 2002/10/21
- Re: horizontal resize + wide swindow causes core dump, Thomas E. Dickey, 2002/10/22
- Re: horizontal resize + wide swindow causes core dump, Lucas Gonze, 2002/10/22
- Re: horizontal resize + wide swindow causes core dump, Thomas E. Dickey, 2002/10/22