Public bug reported:
While testing (the not-yet-released) ubuntu 20.04 on amd64:
Packages and versions:
octave 5.2.0-1
default-jre-headless 2:1.11-72
openjdk-11-jre-headless 11.0.6+10-2ubuntu2
Steps to reproduce:
In octave, use java to execute a child process:
runtime = javaMethod('getRuntime','java.lang.Runtime')
runtime.exec('/usr/bin/touch /tmp/testfile2');
Expected behaviour:
The child process is executed and octave reports no error.
Observed behaviour:
The child process is executed, but octave reports an error:
[13.203s][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 error interrupts e.g. execution of octave functions when
runtime.exec is used inside them.
The same error did not happen in ubuntu 18.04.
I can work around it by replacing openjdk11 with openjdk8 and pointing octave
to it with symlinks:
apt-get install openjdk-8-jdk-headless
apt-get remove openjdk-11-jre-headless
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
octave will then use openjdk8 where the error will not occur.
** Affects: octave (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1866453
Title:
octave java error: pthread_create failed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/octave/+bug/1866453/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs