This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 embeding luajit in a c=C2=A0 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 failed for MAP_PRIVATE address
> > 0x6FFFFFE0000, Win32 error 299"
> >=20
> > There is a sample code below.
> >=20
> > Thank you for reading.
> 
> Thank you for the testcase.  I pushed a patch and uploaded new developer
> snapshots to https://cygwin.com/snapshots.  Please test.

Reference:

    https://cygwin.com/ml/cygwin/2017-12/msg00011.html

It might not help Stéphane, but it works for me ...

Henri

-----
64-@@ uname -a
CYGWIN_NT-6.1 Seven 2.10.0(0.323/5/3)  x86_64 Cygwin
64-@@ sort t8150 | head
abcde    1xxxxx0123456789
abcde    2xxxxx0123456789
abcde    3xxxxx0123456789
abcde    4xxxxx0123456789
abcde    5xxxxx0123456789
abcde    6xxxxx0123456789
abcde    7xxxxx0123456789
abcde    8xxxxx0123456789
abcde    9xxxxx0123456789
abcde   10xxxxx0123456789
64-@@ <==== prompt returns ... Good Heavens!

64-@@ uname -a
CYGWIN_NT-6.1 Seven 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 Cygwin
64-@@ sort t8150 | head
abcde    1xxxxx0123456789
abcde    2xxxxx0123456789
abcde    3xxxxx0123456789
abcde    4xxxxx0123456789
abcde    5xxxxx0123456789
abcde    6xxxxx0123456789
abcde    7xxxxx0123456789
abcde    8xxxxx0123456789
abcde    9xxxxx0123456789
abcde   10xxxxx0123456789
 <==== prompt does not return

=====


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]