#3279: Segmentation fault in reactive program
-----------------------------+----------------------------------------------
Reporter:  Baughn            |          Owner:                
    Type:  bug               |         Status:  new           
Priority:  normal            |      Component:  Compiler      
 Version:  6.11              |       Severity:  normal        
Keywords:                    |       Testcase:                
      Os:  Unknown/Multiple  |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
 Trying to debug reactive, I triggered what appears to be a GHC bug. To
 clarify:

 - Replacing "foo `unamb` bar `unamb` baz" with foldl1 unamb [foo,bar,baz]
 in one particular function causes a segmentation fault at runtime, in all
 possible permutations of -threaded/nonthreaded and GHC 6.10.3/6.11.
 Further, a number of different changes do the same, quite unpredictably.

 The hackage version of reactive does not exhibit this bug. I've attached a
 quite minimal patch to it that causes this, as well as a test program to
 trigger it.

 I've been trying to debug this myself, with very little success. No level
 of core-lint or debug checks causes this code to trigger assertions
 instead of outright segfaults.

 Incidentally, lazysmallcheck-0.3, a dependency of reactive, does not
 compile against 6.11 due to a name change in the Data.Generics interface.
 I've uploaded a fixed version to http://brage.info/~svein/lsc.tar.gz.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3279>
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