> Reply-To: <[email protected]>
> From: "Christian Jullien" <[email protected]>
> 
> I will no longer use MAP_FIXED on OpenBSD and accept that save/restore fails
> on this system. It is a rather minor feature.
> 
> Note for myself: I clearly accept that MAP_FIXED can fails to allocate at a
> given address but, when succeeded I still don't understand why the address
> range returned at this address does not entirely belong to my process and
> nobody else even my own code can allocate something in that range.
> IMHO munmap should never fail for an address returned by mmap.

The munmap doesn't fail.  It succeeds and unmaps bits of the address
space that you're running on.  You're pulling out the carpet from
under your own feet!  So you fall over and this results in a core dump.

Reply via email to