Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 03:10:12 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/45391: /usr/bin/cmp coredumps while reading a faulty CD-R
Message-ID:  <200211181110.gAIBACHW054954@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/45391; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Cinek <cinekcvs@gmx.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/45391: /usr/bin/cmp coredumps while reading a faulty CD-R
Date: Mon, 18 Nov 2002 22:21:06 +1100 (EST)

 > >Description:
 > When using the command /usr/bin/cmp from the default
 > FreeBSD-4.7 package, it is possible to produce a coredump.
 > It seems, there is a problem in handling errors while
 > reading faulty files. It happened to me while I was comparing
 > two files which I suspected to be dupes on my CD-Rs.
 
 I think there is a problem with mmap() on files with i/o errors in
 them.  Pages should not be mapped if some part of them is unreadable,
 and this should result in the application getting signals.  cmp makes
 no attempt to handle signals.
 
 > I guess it will not help much when I post the output
 > from gdb without symbol tables, but let's try at least:
 
 Not much, but you might be able to see that the fauilting instruction
 is an ordinary memory access, which would indicate that the problem is
 just unmapped memory.
 
 Bruce
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211181110.gAIBACHW054954>