Apache OpenOffice (AOO) Bugzilla – Issue 111711
jvmfwk: let javaldx call java with closed stdin
Last modified: 2013-01-29 21:42:14 UTC
Quoting from a Sun-Hamburg internal problem report: "That Linux machine unfortunately mounts /usr/dist (which, I assume, is mainly aimed at Solaris, not Linux). If you happen to have /usr/dist/exe in PATH, starting OOo on that machine will hang: javaldx searches through PATH for Java installations, finds /usr/dist/exe/java, which executes /usr/dist/share/cam,v1.8.3/softdist/exe/.cam,v1.8.3_wrapper, which in turn executes /bin/grep $cmdname $DIST_HOME/exe/prep after setting PATH=/bin and cmdname=`basename $0` which sets cmdname to the empty string on that machine, as it has no /bin/basename, so the grep line is effectively /bin/grep /usr/dist/exe/prep which hangs waiting for input on stdin." This problem could be worked around in the OOo code base by letting getJavaProps in jvmfwk/plugins/sunmajor/pluginlib/util.cxx immediately close stdin of the spawned java process.
.