[Haskell-cafe] debugging <<loop>> exception

Ivan Perez ivanperezdominguez at gmail.com
Sun Aug 27 01:43:30 UTC 2023


Sounds like a Heisenbug (turning profiling or debugging on may affect the
reproducibility of the bug).

Run the program for a while with profiling enabled, and the functions
involved in the infinite loop might be apparent.

Ivan

On Sat, 26 Aug 2023 at 18:33, Dennis Raddle <dennis.raddle at gmail.com> wrote:

> I'm getting Exception: <<loop>>.
>
> It doesn't print the line number. When I load the program into ghci, it
> still doesn't print the line number. When I trace the program in ghci it
> never gets to the point of emitting the exception.
>
> I set up my program in stack. I tried both "stack ghci" and just "ghci"..
> the latter to make sure it wasn't using any compiled code (at least in my
> own code). If it doesn't print a line number does this mean it's happening
> in compiled code?
>
> Any ideas how I can go about debugging this?
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20230826/935035db/attachment.html>


More information about the Haskell-Cafe mailing list