[Haskell-cafe] STM: "nested atomically" error

Antoine Latter aslatter at gmail.com
Thu Jan 12 14:56:08 CET 2012


On Thu, Jan 12, 2012 at 6:48 AM, Johan Brinch <brinchj at gmail.com> wrote:
> Hi all,
>
> I'm seeing the "Control.Concurrent.STM.atomically was nested" error,
> but I just can't figure out what's happening. I'm not using any unsafe
> IO (only for debug printing), and the test program is only running one
> thread. Where is a transaction being nested?
>
> What are the scenarios where this error is reported?
>

Where is 'evalCacheSTM' defined?

> The behaviour is consistent on GHC 7.4.0 RC and GHC 7.2.2 (stable).
>
> That function that's being run can be found here:
> https://gist.github.com/30b94760abc27b05ec7c
>
> And here is the last output from the runtime system:
> https://gist.github.com/4356ae541895becb4169
>
>
> Any ideas to track this down will be greatly appreciated!
>
> --
> Johan Brinch,
> Dept. of Computer Science,
> University of Copenhagen
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list