[Haskell-cafe] How to debug GHC

Frederik Eaton frederik at a5.repetae.net
Sat Sep 10 16:15:22 EDT 2005


On Fri, Sep 02, 2005 at 04:40:05PM +0400, Bulat Ziganshin wrote:
> Hello Nils,
> 
> Friday, September 02, 2005, 10:47:05 AM, you wrote:
> 
> NAD>     Compile your program with -prof -auto-all (make sure you have the
> 
> NAD> I tried this out under GHC 6.4/Linux and got a segmentation fault
> NAD> instead of a stack trace. Under GHC 6.2.2 it seemed to work, though.
> 
> this error is already fixed in current pre-6.4.1 version

I'm using a 2005/9/3 version of 6.4.1 and running into situations
where the "stack trace" has function A calling function B, where when
I look at the code, A never calls B. Is this normal? Is it some
side-effect of laziness? It sure makes the traces a lot less useful.

Frederik

-- 
http://ofb.net/~frederik/


More information about the Haskell-Cafe mailing list