scala-ssh icon indicating copy to clipboard operation
scala-ssh copied to clipboard

CommandResult's lazy vals get null value when remote command throwing a "SEGV" as exitSignal

Open thomassun opened this issue 10 years ago • 0 comments
trafficstars

the lazy vals(exitCode,exitErrorMessage, i/o streams etc.) gives null instead of Option for the channel as result of a remote command causes "Segmentation fault" or "Floating point exception" where the exception stored in exitSignal it's easy to reproduce, just compile following c code and run it's binary with exec and then access the exitCode, it throws java.lang.NullPointerException

int main(int argc, char *argv[]){ int x; x = 100/0; }

thomassun avatar Nov 04 '15 05:11 thomassun