[GHC] #10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO

GHC ghc-devs at haskell.org
Wed Oct 21 05:49:19 UTC 2015


#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.0.1
       Component:  Runtime System    |              Version:  7.11
  (Linker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by erikd):

 * cc: simonmar (added)
 * component:  Test Suite => Runtime System (Linker)


Comment:

 Adding @simonmar (hope thats ok). I've done a code review and the only
 thing I can find which is obvioulsy not what you intended is the function
 `getPageSize`. I think you meant something like:

 {{{
 static StgWord getPageSize(void)
 {
     static StgWord pagesize = 0;
     if (pagesize == 0) {
         pagesize = sysconf(_SC_PAGESIZE);
     }
     return pagesize;
 }
 }}}

 I'm willing to do a lot of the legwork on getting this fixed but would
 appreciated nudge in the right direction.

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


More information about the ghc-tickets mailing list