NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/11904: tail segfaults and core dumps on I/O error



The following reply was made to PR bin/11904; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/11904: tail segfaults and core dumps on I/O error
Date: Tue, 30 Sep 2008 04:52:30 +0000

 The problem appears to be that tail does most of its I/O with mmap.
 So one can't avoid getting SIGSEGV. We could, however, catch SIGSEGV,
 inspect the fault address, and print "Read error" if it's inside the
 input file.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index