[darcs-users] [darcs-devel] [issue1065] Darcs taking infinite time to merge patches from Cabal

Matthias Kilian kili at outback.escape.de
Mon Sep 8 17:14:41 UTC 2008


On Mon, Sep 08, 2008 at 02:33:22PM -0000, Simon Peyton-Jones wrote:
> Problem is this: Darcs is hung saying "Merging them 64/197".  So
> far it's consumed 8 minutes of CPU time on a fast machine.

I've seen some similar problems with darcs get, when I initially
started my mirroring game. Killing darcs and restarting from scratch
helped, so I guess it's some annoying race condition.

> What should I do now?  It's still running (I'm up to 11 mins of
> CPU now).  I'll leave it to run, on the grounds that disturbing
> it will disturb any evidence you may want me to collect.  But
> I'll kill it in a while.

If you didn't kill it already, seeing wether it's doing any system calls
(especially IO) may give a hint, i.e.

	p=$(pidof darcs)
	strace -p $p

And a list of open file descriptors (lsof -p $p) may help, too.

Ciao,
	Kili

-- 
Best way to learn is to screw stuff up.
Preferably in a controlled environment. :)
		-- Nick Holland


More information about the darcs-users mailing list