Control: found 961681 5.2.0-2

On bullseye, with octave 5.2.0-2 and openjdk-11-jre-headless
11.0.7+9-1, "b.start()" fails:

$ octave -W -q -f
octave:1> b = javaObject("java.lang.ProcessBuilder", {"/bin/true"});
OpenJDK 64-Bit Server VM warning: Archived non-system classes are
disabled because the java.system.class.loader property is specified
(value = "org.octave.OctClassLoader"). To use archived non-system
classes, this property must be not be set
octave:2> p = b.start();
[14.392s][warning][os,thread] Failed to start thread - pthread_create
failed (EINVAL) for attributes: stacksize: 136k, guardsize: 0k,
detached.
error: [java] java.lang.OutOfMemoryError: unable to create native
thread: possibly out of memory or process/resource limits reached

(This appears to be the same issue as
<https://bugs.launchpad.net/ubuntu/+source/octave/+bug/1866453>.)

If I install the openjdk-8-jdk package from stretch, and force
octave 5.2.0-2 to use that instead, by running:

  # rm /usr/lib/jvm/default-java
  # ln -s java-8-openjdk-amd64/ /usr/lib/jvm/default-java
  # ln -s ../jre/lib/amd64/server/ /usr/lib/jvm/java-8-openjdk-amd64/lib/server

then there is no "Archived non-system classes" warning, and
"b.start()" suceeds, but "p.waitFor()" hangs as before.

Reply via email to