IO:popen4 jruby gem in linux in GlassFish Java Platform not working

We’ve been running JRuby in GlassFish environment and we have used IO:popen4 jruby library in 1.8.

We are currently upgrading jruby to 9.1.13.0. As no os commands work in ruby in java platform, we had to use IO.popen4 gem in jruby 1.8.

Any OS command comes back with PIPE (signal 13) in 9.1.13.0.

Example:

2 system(“ls”)

puts $?

pid 12543 PIPE (signal 13)

#<Process::Status: pid 12543 PIPE (signal 13)>

#<Process::Status: pid 12543 PIPE (signal 13)>

PIPE (signal 13)