I set up a NixOS system on KVM and installed the haskelPlatform package.Everything works fine, ghci works fine, but cabal dies without any helpful error message:[michas@nix:~]$ type -a cabalcabal is /run/current-system/sw/bin/cabal[michas@nix:~]$ cabal --versioncabal-install version 1.16.0.2using version 1.16.0 of the Cabal library [michas@nix:~]$ cabal updateDownloading the latest package list from hackage.haskell.orgAborted[michas@nix:~]$ cabal update -v3Downloading the latest package list from hackage.haskell.orgSending:GET /packages/archive/00-index.tar.gz HTTP/1.1Host: hackage.haskell.orgUser-Agent: cabal-install/1.16.0.2Creating new connection to hackage.haskell.orgReceived:HTTP/1.1 200 OKDate: Thu, 19 Sep 2013 17:28:04 GMTServer: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2Last-Modified: Thu, 19 Sep 2013 16:01:27 GMTETag: 1888006-641488-4e6beaa9663c0Accept-Ranges: bytesContent-Length: 6558856Content-Type: application/x-tarContent-Encoding: x-gzipDownloadedto /home/michas/.cabal/packages/hackage.haskell.org/00-index.tar.gzAborted[michas@nix:~]$ strace cabal update[...]close(9)                                = 0lstat(/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar5861.tmp,{st_mode=S_IFREG|0644, st_size=104366080, ...}) = 0rename(/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar5861.tmp,/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar) = 0--- SIGVTALRM {si_signo=SIGVTALRM, si_code=SI_TIMER, si_pid=0,si_uid=18, si_value=0} --- rt_sigreturn()                          = 0--- SIGVTALRM {si_signo=SIGVTALRM, si_code=SI_TIMER, si_pid=0,si_uid=0, si_value=0} --- rt_sigreturn()                          =139968722321408stat(/home/michas/.cabal/packages/hackage.haskell.org/00-index.cache,{st_mode=S_IFREG|0644, st_size=1058094, ...}) = 0stat(/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar,{st_mode=S_IFREG|0644, st_size=104366080, ...}) = 0stat(/home/michas/.cabal/packages/hackage.haskell.org/00-index.cache,{st_mode=S_IFREG|0644, st_size=1058094, ...}) = 0 --- SIGVTALRM{si_signo=SIGVTALRM, si_code=SI_TIMER, si_pid=0, si_uid=0, si_value=0}--- rt_sigreturn()                          = 0rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 tgkill(5861, 5861,SIGABRT)             = 0 --- SIGABRT {si_signo=SIGABRT,si_code=SI_TKILL, si_pid=5861, si_uid=1000} --- +++ killed by SIGABRT+++ Aborted[michas@nix:~]$The VM has no swap, but 2GB of RAM. No hints in dmesg.Any idea what is going on?(On another NixOS installation on a VirtualBox-based VM this works without problems.)
cabal dies on NixOS in KVM
linux;kill;haskell;nixos;cabal