Open co-dan opened 11 years ago
A simpler example could be:
error "test" :: ()
resulting in:
evali: test
Deserialization error:
too few bytes
From: demandInput
Exit status was: Exited (ExitFailure 1)
Async out of memory exceptions can not be caught: http://www.reddit.com/r/haskell/comments/1i5coe/catching_all_exceptions_school_of_haskell/cb1qhcs
comments from luite: if you set rlimits, the syscall will return some value, perhaps we can trap the syscall and track the value somehow on a lower level
For example, if we try to execute the following code
The following will be printed to stdout:
And the result will be:
checked on: https://github.com/co-dan/interactive-diagrams/tree/3129ad6780b08fc52acf504f74d11ed4acefe70d