Alexandre Julliard wrote:
> Ulrich Weigand <[EMAIL PROTECTED]> writes:
>
> > But instead of the hack of using a dummy page, I guess we could simply
> > use the intended interface and call setrlimit(RLIMIT_STACK, ...) to
> > limit the automatic stack growth to a reasonable size. ;-)
>
> At least under Linux, the default stack limit is 8Mb, so unless the
> user has been playing with limits we should be fine.
Oops. It appears I was fooled by my distribution (SuSE 6.1), which
sets the stack limit to unlimited in the default /etc/profile! The
default limit after boot is indeed 8Mb.
Unfortunately, even 8Mb is problematic as *all* shared Win9x system DLLs
lie above 0xbf800000 ... With a limit of 1Mb, all DLLs except USER32
and GDI32 are OK; if you want to run USER32, you only have .5Mb for the
stack. :-/
Bye,
Ulrich
--
Dr. Ulrich Weigand
[EMAIL PROTECTED]