Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Corinna Vinschen
with 'LDFLAGS=-Wl,--stack,4194304'. I'm wondering if it's just that emacs needs an unusually big stack or if the default stack size on 64-bit Cygwin should be increased for all applications. I noticed that ulimit -s gives 2025 on both 32-bit Cygwin and 64-bit Cygwin. Shouldn't 64-bit

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Ken Brown
this.) The problem went away for me when I built emacs with 'LDFLAGS=-Wl,--stack,4194304'. I'm wondering if it's just that emacs needs an unusually big stack or if the default stack size on 64-bit Cygwin should be increased for all applications. I noticed that ulimit -s gives 2025 on both 32-bit Cygwin and 64

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Ryan Johnson
this.) The problem went away for me when I built emacs with 'LDFLAGS=-Wl,--stack,4194304'. I'm wondering if it's just that emacs needs an unusually big stack or if the default stack size on 64-bit Cygwin should be increased for all applications. I noticed that ulimit -s gives 2025 on both 32-bit Cygwin and 64

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Ryan Johnson
waiting for Ryan to confirm this.) The problem went away for me when I built emacs with 'LDFLAGS=-Wl,--stack,4194304'. I'm wondering if it's just that emacs needs an unusually big stack or if the default stack size on 64-bit Cygwin should be increased for all applications. I noticed that ulimit

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Corinna Vinschen
On Aug 19 07:04, Ryan Johnson wrote: On 19/08/2013 6:49 AM, Ryan Johnson wrote: One thing I don't understand, though: shouldn't a stack overflow normally manifest as a seg fault when trying to access the invalid addresses, rather than silent memory corruption? That would be helpful.

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Ryan Johnson
On 19/08/2013 7:39 AM, Corinna Vinschen wrote: On Aug 19 07:04, Ryan Johnson wrote: On 19/08/2013 6:49 AM, Ryan Johnson wrote: One thing I don't understand, though: shouldn't a stack overflow normally manifest as a seg fault when trying to access the invalid addresses, rather than silent

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Corinna Vinschen
On Aug 19 07:43, Ryan Johnson wrote: On 19/08/2013 7:39 AM, Corinna Vinschen wrote: On Aug 19 07:04, Ryan Johnson wrote: On 19/08/2013 6:49 AM, Ryan Johnson wrote: One thing I don't understand, though: shouldn't a stack overflow normally manifest as a seg fault when trying to access the

Re: Stack size on 64-bit Cygwin

2013-08-19 Thread Corinna Vinschen
On Aug 19 14:36, Corinna Vinschen wrote: On Aug 19 07:43, Ryan Johnson wrote: On 19/08/2013 7:39 AM, Corinna Vinschen wrote: On Aug 19 07:04, Ryan Johnson wrote: So maybe emacs just had the incredibly bad luck to alloca() a large buffer right at end-of-stack and then somehow managed to

Stack size on 64-bit Cygwin

2013-08-16 Thread Ken Brown
'. I'm wondering if it's just that emacs needs an unusually big stack or if the default stack size on 64-bit Cygwin should be increased for all applications. I noticed that ulimit -s gives 2025 on both 32-bit Cygwin and 64-bit Cygwin. Shouldn't 64-bit applications need a larger stack than 32-bit

Re: Stack size on 64-bit Cygwin

2013-08-16 Thread Ryan Johnson
went away for me when I built emacs with 'LDFLAGS=-Wl,--stack,4194304'. I'm wondering if it's just that emacs needs an unusually big stack or if the default stack size on 64-bit Cygwin should be increased for all applications. I could easily imagine running into trouble by doubling pointer sizes