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


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



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