Debugging GHCi

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Sun Jun 2 00:13:33 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

Nowadays I'm looking at Haddock and amongst other things, recent GHC
is a must. Due to this, I now have 7.6.3 on my system as well as a
build from yesterday (7.7.20130531), straight from git HEAD.

Building Haddock with --enable-tests, I then try to run some hspec (or
probably more appropriately, nanospec) tests. Simple stuff:
> ghci src/Spec.hs

> Prelude> :main

Tests run as expected and everything is fine until about 2 seconds
after main terminates: GHCi segfaults.

As a means of checking whether this is a problem with GHCi, I ran the
same commands with my 7.6.3 install and everything was fine - no
segfault. This clearly points to something being wrong with GHCi.

My question is, how would I even begin to investigate what's wrong? If
I want to file a bug, I need to have more information, especially
considering that someone I asked could not reproduce this. I have no
experience with GHCis guts and I'm not sure how to progress.

- -- 
Mateusz K.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRqnINAAoJEM1mucMq2pqXSbEQAIM9+czAgoyHJQ4LCI+eRMWP
yM6pCxvQH5XLfSg6dD9UJASqsZ3kgaQcJsx77c1PCDXyU11hF5x3MygKOBKcqXoO
fC/khWqp1ru17tOhJ9nfpCTFm6HUI9RGKRYBJhsrUkv1DzY6tw5kJuwFqf/9e9jF
Om9wiqA1Sp0L1YEGnjcQ+ZB2/5gekPK4Il1iSWujrvo9JzGzJULXo94sxAXNa9P+
xuaSpTxKP1+6+zmuK1sSYgNNCP8b5yKXgwUjjI25s8MP6usXpvz5YRs760zMlpFl
l9ZepNMiWgcL9dxWI3g8TFrm3jE5EVgIQ+/3ytEoRuetYU713Dj4DQSu5dZkxZku
wdWuy/HVBOqpQf+fbMqlH4vW4Q4QIJbnU+qsRr6nNyoyEvGvuom4gXC18fHYqJST
r03WD/UXlF4KTXD45flypeOnkRrcFiws76gdRqwiXpec0WxmYjEYGzbIARfQrU9V
xWoykrTmVCbE8uG8FktXcjzirSAK5HAsy0sceurgPT8FDmSn9AFF03pOiW/A8Hli
d8WrS5uuTWprzFFaUtpPbERWLOxieLNJrpXeeKKICVLF4VNzlrjw9regToYh2rTq
tMaJgP61E8Vji2NhR1bk/TPPdOFtEB+cJnXDrn9Z6ICJlAmHXVCCQJA7KmsX5WGA
NEqif1T5kIkHLc0FUmZl
=nTqG
-----END PGP SIGNATURE-----



More information about the Glasgow-haskell-users mailing list