PE stack trick not working on lowmem machines

Marcus Meissner meissner at suse.de
Mon Nov 24 14:12:26 CST 2003


Hi,

On SuSE 8.2, i586 glibc, loader/wine-* crash due to the 256 MB static array
in main().

The test machine has just 64MB RAM and 200MB swap.

If I start decreasing the array it works, up to 201MB.

$ /lib/ld-linux.so.2 ./wine-kthread
./wine-kthread: error while loading shared libraries: ./wine-kthread: cannot map zero-fill pages: Cannot allocate memory
$

So ld.so really wants to get 20xMB memory but fails.

-> Not good on low memory machines.

(Not sure if we should fix it.)

Btw, why don't we use -Wa,--noexecstack ?

Ciao, Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20031124/ae6db5fd/attachment.pgp


More information about the wine-devel mailing list