Subject: Re: memcpy segfaults
To: Mike Cheponis <mac@Wireless.Com>
From: Lennart Augustsson <>
List: current-users
Date: 02/04/2000 08:15:07
Mike Cheponis wrote:

> I'm trying a simple program on 1.4P to mmap() some files and do a copy.
> The code is below.  gdb says:
> Program received signal SIGSEGV, Segmentation fault.
> 0x480cba66 in memcpy ()

Well, a couple of years ago when I tried to make sense of mmap() I found
that (at least on i386) you need PROT_READ permission if you want to
do writes.  Sure seems like a bug to me, but that's how it is (or was).


        -- Lennart