lkml.org 
[lkml]   [1997]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap trouble
Valerij Shchedrin wrote:
>
> Hello All!
>
> When I create file and write to it something (file size != 0), then all is
> OK. But when open creates new file, or opens file with size == 0, then
> SIGBUS occurs. Why??? (I use 2.0.30 kernel). As gdb says SIGBUS occurs on
> first write to buf asm instruction (in strcpy). Any cure????

Your program makes the file a shared mapping, and writing past the end
of a shared mapping generates a SIGBUS. Try making it a private
mapping.

Regards,
Bill

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.049 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site