[GHC] #15038: Memory Corruption (strange closure type)
GHC
ghc-devs at haskell.org
Wed Apr 25 11:44:09 UTC 2018
#15038: Memory Corruption (strange closure type)
-------------------------------------+-------------------------------------
Reporter: andrewthad | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Runtime crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by andrewthad):
The full original code is the `packed` repository (along with its test
suite): https://github.com/andrewthad/packed.
The minimal example repo I put up is just `packed` but with everything
that wasn't needed to make the error happen stripped out. Here is an
example of a parser that I build in the original code that doesn't cause
errors:
https://github.com/andrewthad/packed/blob/master/test/Parser.hs#L112-L122.
None of the parsers from the original test suite ever cause crashes
excepted for the trie-based one where a `Parser` is nested inside of a
`Trie`, which causes a crash whenever the GC is run. Let me know if
there's a way that I can clarify this further.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15038#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list