[GHC] #8839: 64 bit windows executables compiled with ghc-7.8rc2 segfault when allocate more than 4G of memory
GHC
ghc-devs at haskell.org
Fri Mar 7 11:06:28 UTC 2014
#8839: 64 bit windows executables compiled with ghc-7.8rc2 segfault when allocate
more than 4G of memory
-----------------------------------+----------------------------------
Reporter: awson | Owner: simonmar
Type: bug | Status: patch
Priority: highest | Milestone: 7.8.1
Component: Runtime System | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: Windows | Architecture: x86_64 (amd64)
Type of failure: Runtime crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-----------------------------------+----------------------------------
Comment (by simonmar):
Good catch, I suspected it might have been something to do with that
patch.
Though I don't like the fix much. Something like this would be better:
{{{
#if SIZEOF_LONG == SIZEOF_VOID_P
#define UNIT 1UL
#elif SIZEOF_LONGLONG == SIZEOF_VOID_P
#define UNIT 1ULL
#else
#error ...
#endif
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8839#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list