Daniel Diaz wrote:
>
> Hello
>
> I have now another strange problem. I have reinstalled my machine with a
> RedHat 7.0, here is the unmae -a output:
>
> Linux lima.univ-paris1.fr 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000 i686
> unknown
>
> but my previous JNI application no longer works (even afetr a total
> recompilation). Trying to localize the problem I found that I could not even
> launch the JVM. This simple program does not run:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <jni.h>
>
> JNIEnv *env;
> JavaVM *vm;
> jclass cls;
>
> int
> main()
> {
> JavaVMOption options[2];
> JavaVMInitArgs vm_args;
>
> options[0].optionString = "-Djava.class.path=."; /* user classes */
>
> vm_args.version = JNI_VERSION_1_2;
> vm_args.options = options;
> vm_args.nOptions = 1;
> vm_args.ignoreUnrecognized = 1;
>
> printf("READY TO LOAD THE JVM\n");
> if (JNI_CreateJavaVM(&vm, (void **)&env, (void *)&vm_args) < 0)
> {
> fprintf(stderr, "cannot load the JVM\n");
> exit(1);
> }
>
> printf("JVM LOADED\n");
> exit(0);
> }
>
> When I execute it I get:
> [diaz@lima jgprolog-1.0]$ y
> READY TO LOAD THE JVM
> #
> # HotSpot Virtual Machine Error, Unexpected Signal 11
> # Please report this error at
> # http://java.sun.com/cgi-bin/bugreport.cgi
> #
> # Error ID: 4F533F4C494E55580E43505005BC
> #
> # Problematic Thread: prio=10 tid=0x80532b0 nid=0x3416 runnable
> #
> Abandon
>
> here is the gdb session:
> [diaz@lima jgprolog-1.0]$ gdb y
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) r
> Starting program: /home/diaz/jgprolog-1.0/y
> [New Thread 1024 (LWP 13340)]
> READY TO LOAD THE JVM
> [New Thread 2049 (LWP 13341)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 13340)]
> 0x401b575c in os::start_thread ()
> from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
> (gdb) where
> #0 0x401b575c in os::start_thread ()
> from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
> #1 0x401e3767 in Threads::create_vm ()
> from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
> #2 0x4015c458 in JNI_CreateJavaVM ()
> from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
> #3 0x804a877 in main () at y.c:23
> #4 0x40457b65 in __libc_start_main (main=0x804a82c <main>, argc=1,
> ubp_av=0xbffff8b4, init=0x804a3c8 <_init>, fini=0x804f914 <_fini>,
> rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffff8ac)
> at ../sysdeps/generic/libc-start.c:111
> (gdb)
>
> Do you have any idea ?
>
That a core in JVM... But I do not get it with JVM 1.2.2...
> --
> ===============================================
> Daniel Diaz
> University of Paris 1 INRIA Rocquencourt
> 75013 Paris FRANCE 78153 Le Chesnay FRANCE
> web: http://pauillac.inria.fr/~diaz
> email: [EMAIL PROTECTED]
> ===============================================