[GHC] #5680: Main thread does not respect stack size RTS options
GHC
cvs-ghc at haskell.org
Mon Dec 5 12:24:13 CET 2011
#5680: Main thread does not respect stack size RTS options
---------------------------------+------------------------------------------
Reporter: ravi_n | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 7.2.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
I was recently trying to start up with a large initial stack in a Haskell
program so that I could give a large stack to some foreign code I was
calling. Unfortunately, no matter what I did with the -K -ki and -kc RTS
options, the stack size never seemed to change.
I suspect the problem can be traced to the the following comment in
source:rts/RtsMain.c
`/* ToDo: want to start with a larger stack size */`
It looks to me like the main thread is started without attempting to
adjust its stack size based on the RTS flags. Is that correct? If so, how
hard is it to fix?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5680>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list