[GHC] #8103: Segfault when passing unboxed Float# and Double# across modules

GHC ghc-devs at haskell.org
Tue Aug 13 18:20:24 CEST 2013


#8103: Segfault when passing unboxed Float# and Double# across modules
----------------------------------+---------------------------
        Reporter:  jstolarek      |            Owner:
            Type:  bug            |           Status:  new
        Priority:  highest        |        Milestone:  7.8.1
       Component:  Compiler       |          Version:  7.7
      Resolution:                 |         Keywords:
Operating System:  Linux          |     Architecture:  x86
 Type of failure:  Runtime crash  |       Difficulty:  Unknown
       Test Case:                 |       Blocked By:
        Blocking:  6135           |  Related Tickets:
----------------------------------+---------------------------

Comment (by jstolarek):

 I just built latest HEAD (a27895b) and I can't reproduce this bug. This
 time the call looks different from two versions I pasted in the bug
 report:

 {{{
        ck4:
            I32[Sp - 8] = stg_bh_upd_frame_info;
            P32[Sp - 4] = Hp - 4;
            I32[Sp - 12] = ck6;
            R1 = AddWraps.foo_closure;
            F64[Sp - 32] = 0.0 :: W64;
            I32[Sp - 24] = stg_ap_d_info;
            F64[Sp - 20] = 1.2 :: W64;
            Sp = Sp - 32;
            call stg_ap_d_fast(R1) returns to ck6, args: 24, res: 4, upd:
 12;
        ck6:
            _sjO::F64 = D1;
            Hp = Hp + 12;
            if (Hp > HpLim) goto ckh; else goto ckg;
 }}}

 Still, there are references to D1 (but not D2). I'll run more tests
 tomorrow and if indeed the problem has disappeared I'll add regression
 test and close this report.

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




More information about the ghc-tickets mailing list