[GHC] #1004: ghci-6.6 crash

GHC trac at galois.com
Sun Nov 26 14:42:23 EST 2006


#1004: ghci-6.6 crash
---------------------------------+------------------------------------------
 Reporter:  gwright at antiope.com  |          Owner:  thorkilnaur
     Type:  bug                  |         Status:  closed     
 Priority:  normal               |      Milestone:  6.6.1      
Component:  GHCi                 |        Version:  6.6        
 Severity:  normal               |     Resolution:  invalid    
 Keywords:                       |     Difficulty:  Unknown    
 Testcase:                       |   Architecture:  Multiple   
       Os:  Multiple             |  
---------------------------------+------------------------------------------
Changes (by thorkilnaur):

  * resolution:  => invalid
  * status:  new => closed

Comment:

 The failing code defines
 {{{
 testOpts = TestOptions {no_of_tests     = 1000,
                         length_of_tests = 3600,
                         debug_tests     = True}

 }}}
 to allow length_of_tests=3600 seconds (1 hour) as maximum duration of the
 tests.
 When this Int value is converted to microseconds in
 Test.!QuickCheck.Batch.run to
 pass to Control.Concurrent.threadDelay, overflow will result for many, if
 not
 all, present architectures. The result is, as we observe, unpredictable.
 As a remedy, use lower values for length_of_tests. To make sure the Int
 limit
 is not exceeded, a value of at most 2^29^/10^6^ = about 536 seconds should
 be used.
 If I try with length_of_tests = 500 seconds, the program runs succesfully
 to completion, also
 when run via GHCi.

 I will take the liberty of closing this ticket, since it not a bug in GHCi
 as such.

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


More information about the Glasgow-haskell-bugs mailing list