Re: mmap quiet failure - all reads are 0x00
Re: mmap quiet failure - all reads are 0x00
- Subject: Re: mmap quiet failure - all reads are 0x00
- From: Jens Alfke <email@hidden>
- Date: Fri, 05 Feb 2016 16:36:04 -0800
> On Feb 5, 2016, at 10:09 AM, Trygve Inda <email@hidden> wrote:
>
> It seems like no matter what is in the mmap file, when I read from it I get
> 0x00 for every byte and no error or exception is generated. I can't
> reproduce it as it is very random. Quitting and relaunching solves it.
That sounds strange to me. I’m not an expert at mmap, but my understanding is that if a page fault can’t be satisfied the memory access will fail with a signal. You might ask on the darwin-userlevel list since this is really a Unix-level question.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden