History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: AIDAJNI-5
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Mark Donszelmann
Reporter: Mark Donszelmann
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
AIDA Java Native Interface

JVM does not exit properly under gcc3 on Linux RedHat 9

Created: 21/Aug/03 09:50 AM   Updated: 18/Oct/03 12:26 PM
Component/s: None
Affects Version/s: 3.0.3, 3.0.2
Fix Version/s: 3.0.4

Environment: RedHat 9, Linux, gcc 3.2


 Description  « Hide
When one exits Geant4 running AIDAJNI (and for that matter any program running a jvm) on Linux, RedHat9, the following core dump occurs:

#0 0xffffe002 in ?? ()
#1 0x42028b93 in abort () from /lib/tls/libc.so.6
#2 0x41b2d4e8 in os::abort ()
  from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#3 0x41b2a3b7 in os::handle_recursive_fatal_error ()
   from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#4 0x41b2cb20 in exception_handler_during_fatal_error ()
   from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#5 <signal handler called>
#6 0x41b298ac in os::report_fatal_error ()
   from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#7 0x41b2a04f in os::handle_unexpected_exception ()
   from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#8 0x41b2ddaa in JVM_handle_linux_signal ()
   from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#9 0x41b2cd68 in signalHandler ()
   from /afs/slac/package/java/@sys/jdk1.4/jre/lib/i386/client/libjvm.so
#10 <signal handler called>
#11 0x42073770 in free () from /lib/tls/libc.so.6
#12 0x420ebd8e in __unregister_atfork () from /lib/tls/libc.so.6
#13 0x42029fb8 in __cxa_finalize () from /lib/tls/libc.so.6
#14 0x4003a5cc in __do_global_dtors_aux ()
   from /u/ec/duns/w4/g4_tmp1/Linux-g++3/A01app/libA01app.so
#15 0x40066bd6 in _fini ()
   from /u/ec/duns/w4/g4_tmp1/Linux-g++3/A01app/libA01app.so
#16 0x4000ce44 in _dl_fini () from /lib/ld-linux.so.2
#17 0x42029d40 in exit () from /lib/tls/libc.so.6
#18 0x42015708 in __libc_start_main () from /lib/tls/libc.so.6


This bug is caused by some incompatibility in glibc, described by:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=90301\

and also

http://developer.java.sun.com/developer/bugParade/bugs/4885046.html

WORKAROUND, until the next release of glibc:

setenv LD_ASSUME_KERNEL 2.4.1
which disable NPTL in glibc. NPTL = Native Posix Threads for Linux.

 All   Comments   Change History      Sort Order:
Change by Mark Donszelmann - 21/Aug/03 09:51 AM
Field Original Value New Value
Status Assigned [ 2 ] In Progress [ 3 ]

Change by Mark Donszelmann - 18/Oct/03 12:26 PM
Status In Progress [ 3 ] Closed [ 6 ]
Resolution Fixed [ 1 ]