bugGNU Octave - Bugs: bug #37877, unable to initialize java VM more...


bug #37877: unable to initialize java VM more than once per Octave session

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 07 Dec 2012 01:42:43 AM UTC  
Category: LibrariesSeverity: 2 - Minor
Priority: 5 - NormalItem Group: None
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 26 Nov 2015 10:45:19 PM UTC, comment #4:

Marking as 'Won't Fix' and closing report.

Rik <rik5>
Project Administrator
Fri 14 Dec 2012 10:40:51 PM UTC, comment #3:

AFAIK it is not possible to initialize the JVM more than once in a single process. These functions were never intended to be called by the user anyway.

Michael Goffioul <goffioul>
Project Member
Fri 14 Dec 2012 10:30:30 PM UTC, comment #2:

The java_init and java_exit functions are no longer exposed to the user. Someone would have to go out of their way to invoke this path and cause a segfault. For that reason, I am lowering the priority.

However, it would still be worth debugging why the segfault is happening in case we are doing something incorrect in initializing the JVM.

Rik <rik5>
Project Administrator
Fri 07 Dec 2012 06:33:06 AM UTC, comment #1:

Confirmed. I really doubt whether some of the functions should be visible to users. A quick look at the list of Java functions that Matlab supports shows that it is much smaller than what we are making visible.

Rik <rik5>
Project Administrator
Fri 07 Dec 2012 01:42:43 AM UTC, original submission:

I have no idea what the correct or expected behavior is in this situation, but since these are user-callable functions they should not be allowed to put Octave in this state.

Calling java_init and java_exit more than once apparently put the Java infrastructure into a confused state:

At this point the interpreter hangs and I have to Ctrl-C to kill it.

Mike Miller <mtmiller>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by goffioul (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Nov 2015 10:45:19 PM UTCrik5StatusConfirmed=>Wont Fix
    Fri 14 Dec 2012 10:30:30 PM UTCrik5Severity3 - Normal=>2 - Minor
    Fri 07 Dec 2012 06:33:06 AM UTCrik5StatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1