[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 16:50:28 -0400 (EDT) |
> Reading quickly, it seems your sigwinch handler is calling code that
> can break things (malloc and stdio stuff). There's not much you can
> do in a signal handler if you're planning to come back to the interrupted
> program, other than set variables to tell that an interrupt occurred.
In this case it depends on whether the crash is related to reentrant code
or to repeated creation and deletion of windows. If it's about reentrant
code, then it's not as much of a bug. If it's about lots of creation and
deletion, it's a bug.
But also, sigwinch is not your ordinary signal. It has a special status
in windowing programs.
Window resizes are an event oriented thing, so it's not really appropriate
to restrict the handler to setting a flag which is checked elsewhere. My
application code is a shell -- it shouldn't be having to think about
anything but processes and pipes. The alternative to a signal handler is
to have a redraw thread checking the flag, and having to bring in threads
to accomplish something so basic and universal seems like overkill.
- Lucas
- 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 <=
- 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, 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