Hi,

Am Sonntag, den 16.08.2015, 09:45 +0200 schrieb Joachim Breitner:
> I had a quick tired look yesterday, and I observed that it happens on
> my machine as well (so it is not mips-specific). It happened when just
> running "ghc --make Setup; ./Setup configure" directly, it happened
> with dpkg-buildpackage -d, but not within sbuild, which creates a clean
> environment. Furthermore it happend both with and without the libghc
> -cabal-dev package installed.
> 
> So it must be something about the environment (environment variables,
> other packages installed etc.) that causes this.
> 
> I wonder if the configure is doing something like traversing the whole
> filesystem which could cause it to do so much more work?
> 

I am debugging this by passing +RTS -M300M to "Setup configure", to
make it abort when it starts eating too much memory. The problem seems
to be in Cabal, namely mappend and simplifyCondTree in
Distribution.PackageDescription.Configuration. See the attached heap
profile and profile file.

I obtained these by unpacking the Cabal source and building Setup with
$ ghc -O -fforce-recomp --make Setup.hs -rtsopts -prof -auto-all -caf-all 
-i../haskell-cabal-1.22.1.1/
and then running
$ ./Setup configure   +RTS -M300M -hc -p -xc
(-xc unfortunately does not fire with out-of-heap exceptions)

No further conclusion so far.

Greetings,
Joachim
-- 
Joachim "nomeata" Breitner
Debian Developer
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: Setup.pdf
Description: Adobe PDF document

Attachment: Setup.prof.xz
Description: application/xz

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to