[Pkg-octave-devel] Bug#676800: Bug#676800: octave-java: completely breaks octave

John W. Eaton jwe at octave.org
Tue Jun 19 23:55:18 UTC 2012


On  9-Jun-2012, Sébastien Villemot wrote:

| Package: octave-java
| Version: 1.2.8-4
| Severity: grave
| Tags: sid
| 
| This version of octave-java completely breaks octave.
| 
| For example, if octave-io is also installed, octave miserably fails at launch
| time:
| 
| octave: lex.ll :2420 : void handle_number():  L'assertion « nread == 1 » a échoué.
| panic: Abandon -- stopping myself...
| Abandon
| 
| Various other kinds of strange breakage happens (e.g. numerical errors). It
| looks like a memory corruption problem.
| 
| Since downgrading to octave-java 1.2.8-3 solves the issue, the cause of the
| problem is clearly the switch from OpenJDK 6 to 7.
| 
| This needs to be investigated with the openjdk-7 maintainers.

I'd like to help debug this problem but I need some help.

I need to be able to install a debug version of Octave (preferably the
current development sources) and build the Java package also with
debugging symbols.  I'm using Debian testing.  What packages do I need
to install?  After doing

  pkg install java-1.2.8.tar.gz

apparently successfully, I'm seeing

  octave> javaclasspath
  warning: timestamp on file /usr/lib/jvm/default-java/jre/lib/amd64/client/libjvm.so is in the future
  error: java_invoke: /usr/lib/jvm/default-java/jre/lib/amd64/client/libjvm.so: failed to load: /usr/lib/jvm/default-java/jre/lib/amd64/client/libjvm.so: cannot open shared object file: No such file or directory
  error: called from:
  error:   /home/jwe/octave/java-1.2.8/javaclasspath.m at line 49, column 14

I have the following packages installed:

  $ dpkg -l '*openjdk*' | grep ^ii
  ii  openjdk-6-dbg: 6b24-1.11.1-6  Java runtime based on OpenJDK (debugging sym
  ii  openjdk-6-jdk: 6b24-1.11.1-6  OpenJDK Development Kit (JDK)
  ii  openjdk-6-jre: 6b24-1.11.1-6  OpenJDK Java runtime, using Hotspot JIT
  ii  openjdk-6-jre- 6b24-1.11.1-6  OpenJDK Java runtime, using Hotspot JIT (hea
  ii  openjdk-6-jre- 6b24-1.11.1-6  OpenJDK Java runtime (architecture independe
  ii  openjdk-7-jdk: 7~u3-2.1.1~pre OpenJDK Development Kit (JDK)
  ii  openjdk-7-jre: 7~u3-2.1.1~pre OpenJDK Java runtime, using Hotspot JIT
  ii  openjdk-7-jre- 7~u3-2.1.1~pre OpenJDK Java runtime, using Hotspot JIT (hea
  ii  openjdk-7-jre- 7~u3-2.1.1~pre OpenJDK Java runtime (architecture independe

  $ dpkg -l '*default-j*' | grep ^ii
  ii  default-jdk    1:1.6-47       Standard Java or Java compatible Development
  ii  default-jre    1:1.6-47       Standard Java or Java compatible Runtime
  ii  default-jre-he 1:1.6-47       Standard Java or Java compatible Runtime (he

What am I missing, or what is misconfigured that I don't have
libjvm.so in the /usr/lib/jvm/default-java/jre/lib/amd64/client
directory?

jwe





More information about the Pkg-octave-devel mailing list