http://bugs.winehq.org/show_bug.cgi?id=18632
Sylvain Pasche sylvain.pasche@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|libgklayout.dll compiled |gklayout.dll compiled from |from mingw fails to load |mingw fails to load (.dll |(.dll from Firefox) |from Firefox)
--- Comment #2 from Sylvain Pasche sylvain.pasche@gmail.com 2009-05-27 07:47:51 --- That dll is huge (181Mb not counting dependencies), so I tried to strip it but after that Firefox could run without problems.
I tried to load that dll form a simple testcase doing just a LoadLibrary, but then it loads fine.
Then I tried to run strace on both Firefox and the testcase in order to compare, and apparently the issue is that the mmap2() call fails when running from Firefox, but not from the testcase.
From the testcase:
mmap2(0x6c140000, 176517120, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x6c140000
From Firefox:
mmap2(0x6c140000, 176517120, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
I'm wondering why the mmap2() call fails when Firefox tries to load that .dll. I've got enough memory, and ulimit -a doesn't show maximum memory size limitation.
I could put an archive of the build somewhere if you want to try, but it's rather large (600Mb uncompressed).