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

 
 

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

Submitter:  Mike Miller <mtmiller>
Submitted:  Fri 07 Dec 2012 01:42:43 AM UTC
   
 
Category:  Libraries Severity:  2 - Minor
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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

Rik <rik5>
Group 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>
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>
Group 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>
Group 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:


octave:1> java_init;
octave:2> java_exit;
octave:3> java_init;
error: unable to start Java VM in /usr/lib/jvm/default-java/jre/lib/amd64/server/libjvm.so
octave:3> java_exit;
octave:4> java_init;


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

Mike Miller <mtmiller>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-26 rik5 StatusConfirmed Wont Fix
        Open/ClosedOpen Closed
    2012-12-14 rik5 Severity3 - Normal 2 - Minor
    2012-12-07 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code