Ticket #5796 (closed bug: duplicate)

Opened 4 months ago

Last modified 4 months ago

Runtime caught in an infinite loop

Reported by: lpsmith Owned by:
Priority: normal Milestone:
Component: Runtime System Version: 7.4.1-rc1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Runtime crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Triggering this bug seems a little fragile; but the program and method I've attached triggers the bug every time for me. It is minimal-ish, I certainly have cut it down a lot, and it perhaps could be made even smaller, but a lot of seemingly irrelevant changes to the file will fail to trigger the bug.

$ cabal configure && cabal build
$ ./dist/build/deadlock/deadlock

And then edit the file and change the 1 to some other value, like 2. Configurator will reload the file within a second, and then I see that the thread that periodically writes something to standard out stops working, and that CPU usage goes to 100%, and that I can no longer type something in and have the program echo it back to me.

GHC-7.0.3 has no problem running this program.

Attachments

deadlock.tar.gz Download (1.1 KB) - added by lpsmith 4 months ago.
deadlock.hs Download (375 bytes) - added by lpsmith 4 months ago.
deadlock.cfg Download (58 bytes) - added by lpsmith 4 months ago.

Change History

Changed 4 months ago by lpsmith

Changed 4 months ago by lpsmith

Ok, I think I have a better fix on what is going on now; I finally managed to replicate the bug in a program I specifically wrote to trigger this bug, instead of one I cut down from the actual program I am writing.

If I get some time tomorrow, I'll see if I can't study the code path triggered inside of configurator and develop an example that doesn't depend directly on it. But I think I can rule out a library bug, as it works fine on GHC 7.0.3 with the same libraries and an infinite nonproductive loop outside of an unsafe FFI call shouldn't block the other Haskell threads.

Changed 4 months ago by lpsmith

Changed 4 months ago by lpsmith

Changed 4 months ago by lpsmith

This bug may be a confluence of #5784 and #5783.

Changed 4 months ago by lpsmith

  • status changed from new to closed
  • resolution set to duplicate

Yes, I do believe it is a combination of the bugs above.

Note: See TracTickets for help on using tickets.