bugGNU Octave - Bugs: bug #41652, Octave builds but crashes when...

 
 

bug #41652: Octave builds but crashes when trying to use gcj for java support

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 21 Feb 2014 02:01:41 AM UTC  
 
Category: Configuration and Build SystemSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Crash
Status: PostponedAssigned to: None
Originator Name: Open/Closed: Open
Release: 3.8.0Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 22 Feb 2014 08:32:49 PM UTC, comment #2:

I've been able to reproduce this with a couple different versions of gcj using our class loader, same result, so I've filed a bug with gcc upstream at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60309

Until that is fixed though, it might make sense to have some kind of a test in configure. This is a very specific case and probably not that important to most users, so I may not get around to working on such a test for a while.

Mike Miller <mtmiller>
Project Member
Fri 21 Feb 2014 04:03:19 AM UTC, comment #1:

A simple call to JNI_CreateJavaVM does not crash when run with gcj. The thing that seems to be crashing gcj for me is the class loader option, -Djava.system.class.loader=... The call crashes no matter what class name is actually given to that option, whether it's "org.octave.OctClassLoader" or a nonexistent class "foo".

OpenJDK throws a ClassNotFoundException if the loader name can't be loaded and works correctly in the normal case. Gcj throws a SIGABRT for me whether the class name is valid or not. Tested with gcj 4.6 and 4.8, both crash the same way.

Should we bother trying to handle this very specific failure in configure or just report to gcc upstream and avoid compiling Octave with gcj for now? This has come up in the Debian packaging, where gcj is the default Java implementation for several architectures.

Mike Miller <mtmiller>
Project Member
Fri 21 Feb 2014 02:01:41 AM UTC, original submission:

When building and testing Octave using gcj as the JRE, building succeeds but crashes at runtime or when running the test suite. On Debian x86-64,

Under gdb, the backtrace shows the error is occurring inside of the JNI_CreateJavaVM function.

I wonder if something could be done in the configure script to try to initialize the JVM from a test program and try to catch this error there? I'll see if I can get the same crash to occur with a simple stub test program.

Mike Miller <mtmiller>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

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 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Feb 2014 08:32:49 PM UTCmtmillerSeverity3 - Normal=>2 - Minor
      StatusNone=>Postponed

    Back to the top


    Powered by Savane 3.1-cleanup