[Git][ghc/ghc][wip/testsuite-rm-shell-trick] 32 commits: Handle heap allocation failure in I/O primops