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

2017-12-09 Thread Brian Inglis
On 2017-12-09 15:51, Jon Turney wrote: > On 09/12/2017 18:29, Brian Inglis wrote: >> On 2017-12-09 08:53, Stéphane Mbape via cygwin wrote: >>> Le 09/12/2017 à 16:48, Andrey Repin a écrit : > While embeding luajit in a c  program, I found myself unable to fork > processes. > Investigatio

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 wrote

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

2017-12-09 Thread Jon Turney
On 09/12/2017 18:29, Brian Inglis wrote: On 2017-12-09 08:53, Stéphane Mbape via cygwin wrote: Le 09/12/2017 à 16:48, Andrey Repin a écrit : 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

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

2017-12-09 Thread Brian Inglis
On 2017-12-09 11:29, Brian Inglis wrote: > On 2017-12-09 08:53, Stéphane Mbape via cygwin wrote: >> Le 09/12/2017 à 16:48, Andrey Repin a écrit : While embeding luajit in a c program, I found myself unable to fork processes. Investigations prove that it was related to nmap. To

Re: Cryptic characters at 4kboundary after ssh transfer

2017-12-09 Thread Richard H Lee
On 08/12/2017 13:39, Caduff Claudio DFRKSTA wrote: In some (about 1 of 100) of the transferred files there are cryptic characters (always 8 Bytes), always at an address which begins after 4k. Could this be related to any mmap calls? Cygwin mmaps in 4k blocks, but the caveat is that they are

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

2017-12-09 Thread Brian Inglis
On 2017-12-09 08:53, Stéphane Mbape via cygwin wrote: > Le 09/12/2017 à 16:48, Andrey Repin a écrit : >>> 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

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

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

2017-12-09 Thread Andrey Repin
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 be accurate, calling nmap with hint address in a unmapped memory > region will cause all forks to fail with > "fixup_mmaps_after_

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