Skip to content

Program hangs when run under Ubuntu Precise

This code hangs when running under Ubuntu Precise. However, it works in a Precise changeroot on an Ubuntu Lucid machine -- indicating it could be kernel specific. My guess would be that it would succeed on a Precise machine running a Lucid kernel, but we have not tried that.

Any of the following changes make the code work:

  1. replacing 'readTVar u' with 'return ()'
  2. removing the 'Wrapper' monad and just using 'StateT'
  3. deriving the 'MonadState' instance instead of righting it by hand
  4. copying the definition of 'modify' into the local module and use that instead of the imported version

The final mystery: If the binary is built in a precise changeroot (where it works) and then copied to a precise machine ... it still works. And if it is built on a real precise machine, where it fails, it still fails when copied to a precise changeroot on a lucid machine.

So, there's that.

Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information