System.Posix.Resource.setResourceLimit gives "setResourceLimit: invalid argument (Invalid argument)"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
geordi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ghc6 (Debian) |
Fix Released
|
Unknown
|
|||
ghc6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ghc6
Hi,
I am importing this RC bug from Debian so that you can consider
it for Intrepid.
http://
Package: ghc6
Version: 6.8.2-5
Severity: important
Just importing this bug from upstream:
# http://
import System.Exit (exitWith, ExitCode(
import System.IO (putStrLn)
import System.
rlimit = ResourceLimit 3
f = do
putStrLn "whoooooo"
f
main = do
r <- getResourceLimit ResourceCPUTime
let (ResourceLimit s) = softLimit r
let (ResourceLimit h) = hardLimit r
putStrLn $ show s
putStrLn $ show h
f
exitWith ExitSuccess
Returns:
$ strace -etrace=setrlimit ./m
setrlimit(
m: setResourceLimit: invalid argument (Invalid argument)
.. so that I can request that the patch be applied to ghc6 for Lenny. As
Eelis mentions on the haskell.org BR, this breaks geordi on x86-32.
It has been fixed on Debian by backporting the changes.
Thanks,
James
Changed in ghc6: | |
status: | Unknown → Fix Released |
Thank you James. I'll look into this.