octave java error: pthread_create failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octave (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
While testing (the not-yet-released) ubuntu 20.04 on amd64:
Packages and versions:
octave 5.2.0-1
default-
openjdk-
Steps to reproduce:
In octave, use java to execute a child process:
runtime = javaMethod(
runtime.
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]
error: [java] java.lang.
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-
apt-get remove openjdk-
ln -s java-8-
ln -s ../jre/
octave will then use openjdk8 where the error will not occur.
I should add 2 more observations:
1)
When using openjdk8, the same method causes the printing of this text StackOverflowEr ror thrown from the UncaughtExcepti onHandler in thread "process reaper"
Exception: java.lang.
But this does not interrupt the execution of the current octave function (and the child process is executed as expected).
2)
Executing the same sequence in a simple java program with openjdk11 does not exhibit the same error: This programm
public class A {
java.lang. Runtime runtime = java.lang. Runtime. getRuntime( );
runtime. exec("/ usr/bin/ touch /tmp/testfile3");
System. out.println( "Success" ); Exception e) {
System. out.println( "Error" );
public static void main(String[] args) {
try {
} catch (java.lang.
}
}
}
compiled with javac 11.0.6 prints "Success", not "Error", and the child process is executed.