I try to run jamvm 1.5.4 with gnuclasspath 0.9.8 and ffi disable.
I have a segmentation fault. But if I enable ffi, it works fine.
See trace with gdb :
> gdb jamvm
(in gdb)
handle SIGUSR1 nostop pass print
run -verbosegc -verbose hellow
The problem is in the ddl_md.c file.
Program received signal SIGSEGV, Segmentation fault.
0xad74b10b in JCL_FindClass (env=0x8053881, className=0xad74dae8 "java/nio/Buffer") at jcl.c:229
229 jclass retval = (*env)->FindClass (env, className);
(gdb) backtrace
#0 0xad74b10b in JCL_FindClass (env=0x8053881, className=0xad74dae8 "java/nio/Buffer") at jcl.c:229
#1 0xad746008 in Java_gnu_java_nio_VMChannel_initIDs (env=0x8053881, clazz=0xafdfc7a0) at gnu_java_nio_VMChannel.c:321
#2 0x0807118c in callJNIMethod (env=0x0, class=0x8053881, sig=0x808117c "\200\021\b\b", ret_type=-1344288864, ostack=0x8075357, f=0x0, args=1)
at dll_md.c:79
#3 0xafdfc7a0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
I make three breakpoints at dll_md.c:67, at dll_md.c:79 and
Another trace:
Breakpoint 7, callJNIMethod (env=0x808117c, class=0xafdfbbe8, sig=0x8075357 "()V", ret_type=0, ostack=0xafd2c2a0,
f=0xad746fe0 "UWVS\350\356\371\377\377\201\303\v\300", args=0) at dll_md.c:67
67 for(i = 0; i < args; i++)
(gdb) bt
#0 callJNIMethod (env=0x808117c, class=0xafdfbbe8, sig=0x8075357 "()V", ret_type=0, ostack=0xafd2c2a0,
f=0xad746fe0 "UWVS\350\356\371\377\377\201\303\v\300", args=0) at dll_md.c:67
#1 0x08053881 in callJNIWrapper (class=0xafdfbbe8, mb=0x80fbb5c, ostack=0xafd2c2a0) at dll.c:433
#2 0x0805465f in resolveNativeWrapper (class=0xafdfbbe8, mb=0x80fbb5c, ostack=0xafd2c2a0) at dll.c:217
#3 0x0806f4db in executeJava () at interp.c:2190
#4 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdfbbe8, mb=0x80fb228,
jargs=0xbfffeaac "\301\017\006\b\350\273߯\350\273߯\030\375\016\bW\016\006\b\350\273߯\350\374\016\b\030\375\016\b4`\006\b\230\355\016\b\026%\006\b\364\017\b\b\364\017\b\b'") at execute.c:129
#5 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdfbbe8, mb=0x80fb228) at execute.c:100
#6 0x08051bc0 in initClass (class=0xafdfbbe8) at class.c:1253
#7 0x08061157 in resolveMethod (class=0xafdfae10, cp_index=39) at resolve.c:202
#8 0x0806dcc2 in executeJava () at interp.c:1436
#9 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdfae10, mb=0x80f2e08, jargs=0xbfffec7c "\301\017\006\b\020\256߯\016") at execute.c:129
#10 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdfae10, mb=0x80f2e08) at execute.c:100
#11 0x08051bc0 in initClass (class=0xafdfae10) at class.c:1253
#12 0x080614e1 in resolveField (class=0xafdfad68, cp_index=14) at resolve.c:319
#13 0x0806d620 in executeJava () at interp.c:1277
#14 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdfad68, mb=0x80f0020, jargs=0xbfffee4c "\301\017\006\bh\255߯#") at execute.c:129
#15 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdfad68, mb=0x80f0020) at execute.c:100
#16 0x08051bc0 in initClass (class=0xafdfad68) at class.c:1253
#17 0x080614e1 in resolveField (class=0xafdf9400, cp_index=35) at resolve.c:319
#18 0x0806d620 in executeJava () at interp.c:1277
#19 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdfa998, mb=0x80ed308,
jargs=0xbffff01c "\301\017\006\b\230\251߯\230\251߯iS\a\bW\016\006\b\230\251߯\220:\016\biS\a\b4`\006\b\006") at execute.c:129
#20 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdfa998, mb=0x80ed308) at execute.c:100
#21 0x08051bc0 in initClass (class=0xafdfa998) at class.c:1253
#22 0x08061157 in resolveMethod (class=0xafdfa8c0, cp_index=16) at resolve.c:202
#23 0x0806dcc2 in executeJava () at interp.c:1436
#24 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdfa8c0, mb=0x80eafe0,
jargs=0xbffff1ec "\301\017\006\b\300\250߯\300\250߯\310S\016\bW\016\006\b\300\250߯\240O\n\b\310S\016\b4`\006\b\005") at execute.c:129
#25 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdfa8c0, mb=0x80eafe0) at execute.c:100
#26 0x08051bc0 in initClass (class=0xafdfa8c0) at class.c:1253
#27 0x08061157 in resolveMethod (class=0xafdfa5d0, cp_index=316) at resolve.c:202
#28 0x0806dcc2 in executeJava () at interp.c:1436
#29 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdf6490, mb=0x80c7e88, jargs=0xbffff3bc "\301\017\006\b\220d߯\032") at execute.c:129
#30 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdf6490, mb=0x80c7e88) at execute.c:100
#31 0x08051bc0 in initClass (class=0xafdf6490) at class.c:1253
#32 0x080614e1 in resolveField (class=0xafdf6360, cp_index=26) at resolve.c:319
#33 0x0806d620 in executeJava () at interp.c:1277
#34 0x08055300 in executeMethodVaList (ob=0x0, class=0xafdf6360, mb=0x80c0348, jargs=0xbffff58c "\364\017\b\b\344\365\377\277") at execute.c:129
#35 0x080554c3 in executeMethodArgs (ob=0x0, class=0xafdf6360, mb=0x80c0348) at execute.c:100
#36 0x0805237c in getSystemClassLoader () at class.c:1557
#37 0x08049eed in main (argc=4, argv=0xbffff704) at jam.c:363
(gdb) c
Continuing.
Breakpoint 5, callJNIMethod (env=0x0, class=0x8053881, sig=0x808117c "\200\021\b\b", ret_type=-1344291864, ostack=0x8075357, f=0x0, args=1)
at dll_md.c:79
79 (*(void (*)())f)();
(gdb) c
Continuing.
Breakpoint 4, JCL_FindClass (env=0x8053881, className=0xad74eae8 "java/nio/Buffer") at jcl.c:228
228 {
(gdb) bt
#0 JCL_FindClass (env=0x8053881, className=0xad74eae8 "java/nio/Buffer") at jcl.c:228
#1 0xad747008 in Java_gnu_java_nio_VMChannel_initIDs (env=0x8053881, clazz=0xafdfbbe8) at gnu_java_nio_VMChannel.c:321
#2 0x0807118c in callJNIMethod (env=0x0, class=0x8053881, sig=0x808117c "\200\021\b\b", ret_type=-1344291864, ostack=0x8075357, f=0x0, args=1)
at dll_md.c:79
#3 0xafdfbbe8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
# uname -a
Linux VDS1 3.2.6-rt13 #1 SMP PREEMPT RT Thu Mar 1 18:10:02 CET 2012 i686 i686 i386 GNU/Linux
# ./src/jamvm -version
java version "1.5.0"
JamVM version 1.5.4
Copyright (C) 2003-2010 Robert Lougher <rob@jamvm.org.uk>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Build information:
Execution Engine: inline-threaded interpreter with stack-caching
Compiled with: gcc 4.6.1
Boot Library Path: /usr/local/classpath/lib/classpath
Boot Class Path: /usr/local/jamvm/share/jamvm/classes.zip:/usr/local/classpath/share/classpath/glibj.zip
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
cheap jordan 1 mooocfnu Nike Free Run chaussures vente wxmybvwj jordan for sale qstcbgntqpa jordan 4 outlet nsxlzcuso Nike Free 5.0 flyknit mbkbvg Michael Jordan vnmrtpdjuoy jordan outlet ebbjysowgjq Nike Roshe Run Homme tbmkdqoejzq cheap jordan retro online
[url=http://awfvsozlukhaber.sozlukhaber.com/h/9023/][/url]
Last edit: Anonymous 2015-07-06