[GHC] #7684: cgrun071 segfaults

GHC ghc-devs at haskell.org
Sun Sep 1 06:59:13 CEST 2013


#7684: cgrun071 segfaults
----------------------------------+----------------------------------
        Reporter:  tibbe          |            Owner:  leroux
            Type:  bug            |           Status:  new
        Priority:  normal         |        Milestone:  7.8.1
       Component:  Compiler       |          Version:  7.7
      Resolution:                 |         Keywords:
Operating System:  MacOS X        |     Architecture:  x86_64 (amd64)
 Type of failure:  Runtime crash  |       Difficulty:  Unknown
       Test Case:                 |       Blocked By:
        Blocking:                 |  Related Tickets:
----------------------------------+----------------------------------
Changes (by leroux):

 * owner:   => leroux


Comment:

 I've run into this same problem on OS X 10.8.4 x86_64. I dug into cgrun071
 and found that it's a problem with {{{popcnt8}}}. Whenever {{{popcnt8}}}
 encounters very "large" numbers, it segaults.

 {{{
 map (\x -> (x, popcnt8 x)) $ iterate (+1000) 1
 }}}

 I ran this expression multiple times expecting it to segfault at the same
 point, but it did otherwise.
 Whenever it broke, I tested the integer and it would simply segfault.

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




More information about the ghc-tickets mailing list