
#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): My additional changes have been pushed to the github repo. Also, here's my two cents about what I think is going on. The thing that causes the problem appears to be: {{{ snmptrapdNaive :: Naive.Trie (Parser Word) snmptrapdNaive = Naive.fromStringList [ ("STRING: ", P.any >>= \_ -> return 5) ] }}} If I use my parser language to simply build up a parser, and then I run the parser, everything works fine. However, sticking it inside of some other data structure seems like it causes problems (I'm not sure if it matters that the value is a CAF). Also, my parser type is a newtype wrapper around a function that uses unboxed sums. I'm also not sure if that matters. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15038#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler