This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Startx crashes while program running in xterm window


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]