[GHC] #9878: Static pointers in GHCi cause panic
GHC
ghc-devs at haskell.org
Fri Jan 16 16:14:47 UTC 2015
#9878: Static pointers in GHCi cause panic
-------------------------------------+-------------------------------------
Reporter: monoidal | Owner:
Type: bug | facundo.dominguez
Priority: normal | Status: patch
Component: Compiler | Milestone: 7.10.1
Resolution: | Version: 7.9
Operating System: Unknown/Multiple | Keywords:
Type of failure: GHCi crash | Architecture:
Blocked By: | Unknown/Multiple
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions: Phab:D586
| Phab:D587
-------------------------------------+-------------------------------------
Comment (by Austin Seipp <austin@…>):
In [changeset:"fffbf0627c2c2ee4bc49f9d26a226b39a066945e/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="fffbf0627c2c2ee4bc49f9d26a226b39a066945e"
Trac #9878: Make the static form illegal in interpreted mode.
Summary:
The entries of the static pointers table are expected to exist as
object code. Thus we have ghci complain with an intelligible error
message if the static form is used in interpreted mode.
It also includes a fix to keysHashTable in Hash.c which could cause a
crash. The iteration of the hashtable internals was incorrect. This
patch has the function keysHashTable imitate the iteration in
freeHashTable.
Finally, we submit here some minor edits to comments and
GHC.StaticPtr.StaticPtrInfo field names.
Authored-by: Alexander Vershilov <alexander.vershilov at tweag.
Authored-by: Facundo Domínguez <facundo.dominguez at tweag.io>
Test Plan: ./validate
Reviewers: simonpj, hvr, austin
Reviewed By: austin
Subscribers: carter, thomie, qnikst, mboes
Differential Revision: https://phabricator.haskell.org/D586
GHC Trac Issues: #9878
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9878#comment:20>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list