#11108: Weak references related crash -------------------------------------+------------------------------------- Reporter: Saulzar | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: #11746,#11972 | Differential Rev(s): Phab:D2189, Wiki Page: | Phab:D2512 -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"a7a960e43c34e40e1656fa1505605f756a44bb71/ghc" a7a960e4/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="a7a960e43c34e40e1656fa1505605f756a44bb71" Make the test for #11108 less fragile This change should close #11108 by fixing the test case. This commit fixes two issues: * Make sure that each weak pointer we allocate has a constructor as the key, not a thunk. A failure to do so meant these weak pointers died prematurely on the 'ghci' WAY. * Don't print anything in the finalizer, because they are not guaranteed to run. Test Plan: validate Reviewers: austin, simonmar, erikd, bgamari Reviewed By: erikd, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2512 GHC Trac Issues: #11108 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11108#comment:31> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler