[GHC] #7919: Heap corruption (segfault) from large 'let' expression

GHC cvs-ghc at haskell.org
Sat May 18 17:26:50 CEST 2013


#7919: Heap corruption (segfault) from large 'let' expression
-------------------------------+--------------------------------------------
    Reporter:  duncan          |       Owner:  simonmar     
        Type:  bug             |      Status:  patch        
    Priority:  high            |   Milestone:  7.8.1        
   Component:  Runtime System  |     Version:  7.6.3        
    Keywords:                  |          Os:  Linux        
Architecture:  x86_64 (amd64)  |     Failure:  Runtime crash
  Difficulty:  Unknown         |    Testcase:               
   Blockedby:                  |    Blocking:               
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by igloo):

 Ah, something more sinister is going on. Andres pointed out that if you
 change 511 to 512 in `Large.hs`, then the assert still happens.

 In that case, we get `size == 513`, but `bd.blocks == 1` and
 `BLOCK_SIZE_W` is only 512.

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



More information about the ghc-tickets mailing list