Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Stéphane Mbape via cygwin
Worked for me. Thank you. On Sun, 10 Dec 2017 14:31:09, Corinna Vinschen wrote: --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 9 15:58, St=C3=A9phane Mbape via cygwin wrote: > Hello, >=20 > While embedin

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Stéphane Mbape via cygwin
I used a temporary fix that may give you a hint. hint_addr = hint_addr - hint_addr % getpagesize(); // temporary fix I also used it in luajit, which uses a random hint_addr, and everything is fine. On 09/12/2017 18:29, Brian Inglis wrote: On 2017-12-09 08:53, Stéphane Mbape via cygwin

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Stéphane Mbape via cygwin
Sorry, Cygwin version: 2.9.0 OS: Windows 10 Arch: 64bit The sample was also attached. Le 09/12/2017 à 16:48, Andrey Repin a écrit : Greetings, Stéphane Mbape! While embeding luajit in a c  program, I found myself unable to fork processes. Investigations prove that it was related to nmap. To

fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Stéphane Mbape via cygwin
Hello, While embeding luajit in a c  program, I found myself unable to fork processes. Investigations prove that it was related to nmap. To be accurate, calling nmap with hint address in a unmapped memory region will cause all forks to fail with "fixup_mmaps_after_fork: ReadProcessMemory faile