Startx crashes while program running in xterm window

Alexander Gottwald Alexander.Gottwald@s1999.tu-chemnitz.de
Sat Jul 2 11:42:00 GMT 2005


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



More information about the Cygwin-xfree mailing list