> 
> > > 
> > > If someone is interested to solve a problem:
> > > 
> > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null
> > > $ cp a b
> > > $ cmp a b 0 0x300
> > > Segmentation fault (core dumped)
> > > $ cmp a b 0 0x200
> > > cmp: EOF on b
> > > $ cmp a b 0x300 0
> > > cmp: EOF on a
> > > 
> > > Jean-Marc
> > > 
> > 
> >  I've seen a similar problem when doing cmp with CD-ROM
> >  devices (I believe I entered a PR on it.)
> > 
> >  I think the problem has to do with cmp's use of mmap(), and
> >  potential issues there...   But, that's just a guess on my part.
> 
> It has to do with mmap(), but not any specific issues with mmap(), just a
> bug in its use.
> 
> If noone has any objections, I will commit this and MFC it in a week or so.

 When I get into work today, I can apply your change and see if it
 fixes my problem as well.
 
 If it works, then, we can close the PR I entered on it...  (kern/11969).

        - Dave Rivers -


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to