lkml.org 
[lkml]   [2013]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf record: Delete file if a failure occurs writing the perf data file
On Tue, Nov 12, 2013 at 07:51:16AM -0700, David Ahern wrote:
> > From man mmap:
> > SIGBUS Attempted access to a portion of the buffer that
> > does not correspond to the file (for example, beyond
> > the end of the file, ...

SIGBUS is basically the std fail for any fault; there's a ton more
reasons than listed in that manpage.

Failing to dirty a page due to -ENOSPACE is one reason we'll
trigger SIGBUS -- as you already found in that memcpy to mmap() instead
of write() patch.




\
 
 \ /
  Last update: 2013-11-12 17:21    [W:0.743 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site