#3514: mallocPlainForeignPtrBytes -1000 gives runtime internal error:
allocGroup:
requested zero blocks
----------------------------+-----------------------------------------------
Reporter: andrewbirkett | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 6.10.4
Severity: minor | Resolution:
Keywords: | Testcase:
Os: Linux | Architecture: x86
----------------------------+-----------------------------------------------
Comment (by duncan):
bytestring hGet is now fixed in the darcs repo. Also audited for other
cases in the bytestring package.
Looking at the GHC.ForeignPtr code, the following probably need fixing:
{{{
mallocForeignPtr
mallocForeignPtrBytes
mallocPlainForeignPtr
mallocPlainForeignPtrBytes
}}}
In the case of the non-"Bytes" versions that use `Storable`, that'd be a
check for the Storable sizeOf function returning a negative value.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3514#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs