GHCI segfaults when per-thread stack size is larger than max stack size
This happened to me this morning;
n142233:thesparse arthurvl$ ghci +RTS -H1024M -k128M -RTS
Segmentation fault
n142233:thesparse arthurvl$ ghci +RTS -H1024M -k8M -RTS
Bus error
Obviously this is a typo, but the response is somewhat unexpected. And yes, the heap-hint is needed, as without the heap hint it turns into:
n142233:thesparse arthurvl$ ghci +RTS -k8M -RTS
Too late for parseStaticFlags: call it before newSession
n142233:thesparse arthurvl$ ghci +RTS -k128M -RTS
Too late for parseStaticFlags: call it before newSession