[darcs-devel] [issue2313] whatsnew -l: Stack space overflow

bf bugs at darcs.net
Sun May 5 20:57:58 UTC 2013


bf <benjamin.franksen at helmholtz-berlin.de> added the comment:

rubenAstudillo, thanks for looking into this. I did not notice I had
this large file in there, probably because it matched some boring
pattern. It was there by accident, and I never planned to add it.

Indeed, if I put this file into a clean empty repository, the error is
the same. Darcs add works, but whatsnew (with or without -l), darcs
record, etc all fail with the stack overflow.

So there are two problems: (1) 'darcs whatsnew -l' does not need to, and
therefore should not, look at the contents of a file that is not in the
repo, nor has been added. (2) Darcs should be able to handle a 65MB
file; a "Stack space overflow" is unacceptable IMO. From what I read in
Haskell-Cafe it typically appears when you left fold over a large list
in a lazy manner. Unfortunately I have no idea how to debug this, I
don't even know where to start. I have added --debug but that just gives me:

ben at sarun[1]: .../tmp/darcs-bug > darcs whatsnew -l --debug-verbose
Beginning identifying repository .
Done identifying repository .
Identified darcs-2 repo: /home/ben/tmp/darcs-bug
Stack space overflow: current size 8388608 bytes.
Use `+RTS -Ksize -RTS' to increase it.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2313>
__________________________________


More information about the darcs-devel mailing list