[GHC] #15061: print022 testcase fails on i386

GHC ghc-devs at haskell.org
Wed Jul 4 06:12:41 UTC 2018


#15061: print022 testcase fails on i386
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  osa1
            Type:  bug               |               Status:  patch
        Priority:  highest           |            Milestone:  8.6.1
       Component:  GHCi              |              Version:  8.2.2
      Resolution:                    |             Keywords:  ci-breakage
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4906
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ömer Sinan Ağacan <omeragacan@…>):

 In [changeset:"15bb4e0b6c08b1f8f5511f04af14242f13833ed1/ghc"
 15bb4e0b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="15bb4e0b6c08b1f8f5511f04af14242f13833ed1"
 Fix nptr field alignment in RtClosureInspect

 `extractSubTerms` (which is extracting pointer and non-pointer fields of a
 closure) was computing the alignment incorrectly when aligning a 64-bit
 value
 (e.g. a Double) on i386 by aligning it to 64-bits instead of to word size
 (32-bits). This is documented in `mkVirtHeapOffsetsWithPadding`:

 > Align the start offset (eg, 2-byte value should be 2-byte aligned).
 > But not more than to a word.

 Fixes #15061

 Test Plan:
 Validated on both 32-bit and 64-bit. 32-bit fails with various unrelated
 stat
 failures, but no actual test failures.

 Reviewers: hvr, bgamari

 Reviewed By: bgamari

 Subscribers: simonpj, rwbarton, thomie, carter

 GHC Trac Issues: #15061

 Differential Revision: https://phabricator.haskell.org/D4906
 }}}

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


More information about the ghc-tickets mailing list