[Bug hurd/19903] Shared mappings not being inherited by children processes

2019-08-29 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19903 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Samuel Thibault : https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c9536b7b9ddb111bded10e7252da28a6826771d1 commit c9536b7b9ddb111bded10e7252da28a

[Bug hurd/19903] Shared mappings not being inherited by children processes

2019-08-29 Thread samuel.thiba...@ens-lyon.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19903 Samuel Thibault changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug hurd/19903] Shared mappings not being inherited by children processes

2019-08-29 Thread joseph at codesourcery dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19903 --- Comment #3 from joseph at codesourcery dot com --- When marking a bug as FIXED, please set the target milestone to the first mainline release with the fix (so 2.31 at present) so the bug appears in the automatically-generated list of fix

[Bug hurd/19903] Shared mappings not being inherited by children processes

2019-08-29 Thread samuel.thiba...@ens-lyon.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19903 Samuel Thibault changed: What|Removed |Added Target Milestone|--- |2.31 --- Comment #4 from Samuel Thi

Re: Shared mappings not being inherited by children

2016-04-19 Thread Samuel Thibault
Samuel Thibault, on Sun 03 Apr 2016 11:27:48 +0200, wrote: > Richard Braun, on Sat 02 Apr 2016 20:55:58 +0200, wrote: > > On Sat, Apr 02, 2016 at 01:35:49PM -0300, Agustina Arzille wrote: > > > As a workaround, we could always use 'vm_map', no matter what, since the > > > idea that 'vm_allocate' ha

Re: Shared mappings not being inherited by children

2016-04-04 Thread Samuel Thibault
Agustina Arzille, on Mon 04 Apr 2016 13:01:27 -0300, wrote: > I have a new libpthread implementation based on the 'gsync' module, Groovy :) Samuel

Re: Shared mappings not being inherited by children

2016-04-04 Thread Agustina Arzille
On 04/04/2016 04:34 AM, Samuel Thibault wrote: You can submit that patch to the libc-al...@sourceware.org mailing list (explaining the rationale etc. alongside), putting rol...@hack.frob.com and this bug-hurd@gnu.org list in Cc. And we can commit the patch to the debian libc in parallel. Done.

Shared mappings not being inherited by children processes in GNU/Hurd

2016-04-04 Thread Agustina Arzille
Hello, everyone. It appears that in GNU/Hurd, memory mappings obtained by 'mmap' with MAP_SHARED and MAP_ANON as its flags are not being inherited by children processes. Here's a simple program that illustrates the issue: === #include #include #include #include

Re: Shared mappings not being inherited by children

2016-04-04 Thread Samuel Thibault
Hello, Agustina Arzille, on Sat 02 Apr 2016 13:35:49 -0300, wrote: > It appears that memory mappings obtained by 'mmap' with MAP_SHARED > and MAP_ANON as its flags are not being inherited by children processes. BTW, how did you discover this? Does this trigger a failure in some application? Sam

Re: Shared mappings not being inherited by children

2016-04-04 Thread Samuel Thibault
Hello, Agustina Arzille, on Sun 03 Apr 2016 22:40:52 -0300, wrote: > >You can submit that patch to the libc-al...@sourceware.org mailing list > >(explaining the rationale etc. alongside), putting rol...@hack.frob.com > >and this bug-hurd@gnu.org list in Cc. And we can commit the patch to > >the d

[Bug hurd/19903] New: Shared mappings not being inherited by children processes

2016-04-03 Thread avarzille at riseup dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=19903 Bug ID: 19903 Summary: Shared mappings not being inherited by children processes Product: glibc Version: unspecified Status: NEW Severity: normal

Re: Shared mappings not being inherited by children

2016-04-03 Thread Agustina Arzille
On 04/03/2016 06:27 AM, Samuel Thibault wrote: So the fix would be just to remove the whole if ((flags & (MAP_TYPE|MAP_INHERIT)) == MAP_ANON block? Yes, that seems do the trick. You can submit that patch to the libc-al...@sourceware.org mailing list (explaining the rationale etc. alongsid

Re: Shared mappings not being inherited by children

2016-04-03 Thread Samuel Thibault
Richard Braun, on Sat 02 Apr 2016 20:55:58 +0200, wrote: > On Sat, Apr 02, 2016 at 01:35:49PM -0300, Agustina Arzille wrote: > > As a workaround, we could always use 'vm_map', no matter what, since the > > idea that 'vm_allocate' has a little less overhead is somewhat bogus to me, > > or > > keep

Re: Shared mappings not being inherited by children

2016-04-02 Thread Richard Braun
On Sat, Apr 02, 2016 at 01:35:49PM -0300, Agustina Arzille wrote: > As a workaround, we could always use 'vm_map', no matter what, since the > idea that 'vm_allocate' has a little less overhead is somewhat bogus to me, or > keep using 'vm_allocate', but do an additional 'vm_inherit' if the user >

Shared mappings not being inherited by children

2016-04-02 Thread Agustina Arzille
Hello, everyone. It appears that memory mappings obtained by 'mmap' with MAP_SHARED and MAP_ANON as its flags are not being inherited by children processes. Here's a simple program that illustrates the issue: === #include #include #include #include int main (vo