This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Startx crashes while program running in xterm window
- From: Alexander Gottwald <Alexander dot Gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Sat, 2 Jul 2005 13:41:29 +0200 (MEST)
- Subject: Re: Startx crashes while program running in xterm window
- References: <009901c57e4a$88653160$fa084f82@ustrasbg.fr>
- Reply-to: cygwin-xfree at cygwin dot com
Doublon wrote:
> Hi:
>
> Startx crashes while program running in xterm window.
>
> Circumstances of crash:
> - Running xstart in a cygwin command window
> - Running homemade program GrafxDemo in the xterm window launched by startx
> - While GrafxDemo is running, crash occurs: xterm window closed, startx ends.
The problem is a drawing request which exceeds the stack memory limit. I'll
provide a fixed package next week.
details:
a polygon fill function tries to allocate memory on the stack, but it requested
size exceeds the stack size. Instead of returning NULL which alloca is supposed
to, it crashes with a segfault.
The workaround is to disable the usage of alloca in those regions of XWin and
fallback to malloc and free instead.
bye
ago
NP: Laibach - Alle Gegen Alle
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723