Subject: Re: memcpy segfaults
To: Lennart Augustsson <lennart@augustsson.net>
From: Mike Cheponis <mac@Wireless.Com>
List: current-users
Date: 02/04/2000 08:36:13
Thank you (once again!) Lennart.
This work-around fixes the problem on 1.4P (as well as RH 5.2).
I've submitted the PR.
-Mike
On Fri, 4 Feb 2000, Lennart Augustsson wrote:
> 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