From owner-freebsd-bugs Mon Nov 18 9:20: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C044C37B404 for ; Mon, 18 Nov 2002 09:20:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77FD543E97 for ; Mon, 18 Nov 2002 09:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAIHK3x3049264 for ; Mon, 18 Nov 2002 09:20:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAIHK2cJ049263; Mon, 18 Nov 2002 09:20:02 -0800 (PST) Date: Mon, 18 Nov 2002 09:20:02 -0800 (PST) Message-Id: <200211181720.gAIHK2cJ049263@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Cinek Subject: Re: i386/45391: /usr/bin/cmp coredumps while reading a faulty CD-R Reply-To: Cinek Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/45391; it has been noted by GNATS. From: Cinek To: Bruce Evans 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 18:16:37 +0100 On Monday 18 November 2002 12:21, Bruce Evans wrote: > 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 see. I guess I cannot help much about it. > 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. I have disassembled the part and indeed a memory access is causing the segfault. I will paste some lines here: Program terminated with signal 11, Segmentation fault. 0x8048e17 in open () 0x8048e14 : mov 0xfffffff8(%ebp),%edx 0x8048e17 : mov (%edx),%dl 0x8048e19 : mov %dl,0xffffffff(%ebp) 0x8048e1c : mov 0xfffffff4(%ebp),%eax 0x8048e1f : cmp (%eax),%dl 0x8048e21 : je 0x8048eb7 0x8048e27 : cmpl $0x0,0x804a80c 0x8048e2e : je 0x8048e60 Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message