[darcs-devel] darcs patch: touch the "unrecorded changes" patch in ... (and 3 more)

David Roundy droundy at abridgegame.org
Mon Jun 20 05:50:52 PDT 2005


On Mon, Jun 20, 2005 at 08:27:20AM +0200, Juliusz Chroboczek wrote:
> > The sigbus occurs both on amd64/linux and on i686/linux.  I don't think
> > that it's that we've removed the file *after* mmapping it, but rather that
> > we remove the file *before* mmapping it.  Which suggests that our mmap
> > is doing something wrong, since it should give a sigbus even in this
> > scenario.
> 
> AFAIK, this sort of thing happens if you truncate a file that is
> currently mapped.

That's what I thought the problem was at first, but in darcs we try our
hardest never to truncate files, and I couldn't find when we did so.  Also,
I wasn't quite sure, but I have a vague memory that it looked like the bus
error was a null pointer dereference (from running valgrind perhaps?).  I
went through enough debug trials that I got a bit muddled in my head.
-- 
David Roundy
http://www.darcs.net




More information about the darcs-devel mailing list