#5421: <<loop>> in withMVar (reproducible, but with large test case)
-------------------------------+--------------------------------------------
    Reporter:  JohnMillikin    |        Owner:                             
        Type:  bug             |       Status:  new                        
    Priority:  normal          |    Milestone:                             
   Component:  Compiler        |      Version:  7.2.1                      
    Keywords:                  |     Testcase:                             
   Blockedby:                  |   Difficulty:                             
          Os:  Linux           |     Blocking:                             
Architecture:  x86_64 (amd64)  |      Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------

Comment(by JohnMillikin):

 > Does the same happen if you run on just one core?

 Changing the number of cores with {{{+RTS -N1}}}, {{{-N2}}}, etc seems to
 have no effect.

 > The scheduler switches threads, and I would have thought that it
 blackholed the thunk at that moment (which would have led to a visible
 <<loop>>, but apparently not

 Does that mean it would {{{<<loop>>}}} when {{{forkIO}}} is called,
 instead of within the thread? That's definitely better behavior if
 possible, since it would make debugging much easier.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5421#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to