I have a ruby script that executes another ruby script via backticks. Like this:
output = `#{name}/#{sccript} --list`
In certain scenarios (I’m running this during build time of a binary package and there are multiple instances of same script running) this will fail.
output is 0 lenght and $? is set to 136.
Any ideas what would be causing this?
Exit code 136 is in the range 129-255, which represent jobs terminated by Unix signals.
To find out which signal, subtract 128, and you find its signal 8:
SIGFPE. One possible cause might be integer division by zero in a C program.