[kaffe] JVMPI status?

Jon Nall nall at themountaingoats.net
Tue Mar 9 13:31:02 PST 2004

thanks for the reply. i'm attaching the diff to this mail. the only bit 
i'm not sure about are the changes in jvmpi_kaffe.c. it looks like 
someone changed the definition of java_lang_String structs. the other 
diffs are just typos.

also, JVMPI functionality still seems broken, even with this patch. i 
get the stack trace attached below. i don't have time to look at it now. 
i might get to it this week, though.


[nall at hwteam ~/kaffe-1.1.4]$ java -Xruntracer.so foo
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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 
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) run
Starting program: /home/nall/JDKs/kaffe/jre/bin/kaffe-bin -Xruntracer.so foo
Program received signal SIGFPE, Arithmetic exception.
0x4003af10 in gcFree (gcif=0x400bf4d4, mem=0x0) at mem/gc-incremental.c:1249
1249                    idx = GCMEM2IDX(info, unit);

(gdb) where
#0  0x4003af10 in gcFree (gcif=0x400bf4d4, mem=0x0) at 
#1  0x4003b61d in jfree (mem=0x85ef018) at gc.c:34
#2  0x4003764f in kdlfree (ptr=0x85ef018) at 
#3  0x40078ee3 in foreach_dirinpath (search_path=0x85ef050 
"/home/nall/ejp/tracer/lib", base_name=0x8394714 "libtracer.so",
    func=0x40079220 <find_handle_callback>, data1=0xbfffd848, data2=0x0) 
at ltdl.c:2712
#4  0x400792d6 in find_handle (search_path=0x0, base_name=0x85ef018 "o", 
handle=0xbfffd848) at ltdl.c:2791
#5  0x4007987f in try_dlopen (phandle=0xbfffd874, filename=0xbfffe36e 
"libtracer.so") at ltdl.c:3280
#6  0x40079fdf in lt_dlopen (filename=0x85ef018 "o") at ltdl.c:3411
#7  0x4007a0d5 in lt_dlopenext (filename=0xbfffe36e "libtracer.so") at 
#8  0x40036dce in loadNativeLibrary2 (path=0xbfffe36e "libtracer.so", 
default_refs=1, errbuf=0xbfffd920 "", errsiz=512) at external.c:293
#9  0x40036cd6 in loadNativeLibrary (lib=0x85ef018 "o", errbuf=0x85ef018 
"o", errsiz=140439576) at external.c:232
#10 0x08048fff in main (argc=1, argv=0xbfffdba4) at main.c:169
#11 0x4012d336 in __libc_start_main (main=0x8048ea0 <main>, argc=3, 
ubp_av=0xbfffdba4, init=0x8048bb8 <_init>, fini=0x804a710 <_fini>,
    rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbfffdb9c) at 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kaffe-jvmpi-1.1.4.patch
Url: http://kaffe.org/pipermail/kaffe/attachments/20040309/e720d326/attachment-0002.txt 

More information about the kaffe mailing list