Startx crashes while program running in xterm window
Doublon
doublon@free.fr
Sat Jul 2 16:08:00 GMT 2005
Thanks a lot for the detailed and fast explanation. Indeed the program tried to fill a large polygon (of the order of 50,000 points).
I'll try your fixed package when available.
Best wishes,
D. Oublon
Alexander Gottwald wrote:
>
> 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
More information about the Cygwin-xfree
mailing list