[kaffe] A question about "JNI_OnLoad"
embstudy at eyou.com
embstudy at eyou.com
Tue Aug 10 07:48:54 PDT 2004
Hello Guilhem
in your last letter to me, you said:
*********************************************************************
Hi !
Thank you for the detailed testings. As HelloWorldApp is working, we can
eliminate sysdepCallMethod. However, I don't see how qtopia may
interfere in initProperties. Is it possible for you to have gdb precise
stacktrace of the point where it gets a NPE in the native code ? I don't
see why it should be a setProperty call, but maybe something more system
dependent.
Cheers,
Guilhem.
*********************************************************************
Today, I tried to crosscompiled gdb-5.3 successfully. :0)
But I am in fact a tyro to gdb, and I don't know how to figure out
the precise point of the NPE.
Maybe you could give me some suggestions?
I just do what I can :)
-------------------------------------------
I started the qtopia and opened the embeddedkonsole,
where I did as this:
# export KAFFE_DEBUG=gdb
# javac
------------------------------------------------------------------------------
-
(gdb) run
Starting program: /cvs/xscale/jre/bin/kaffe-bin at.dms.kjc.Main
Program received signal SIGSEGV, Segmentation fault.
0x400a95d8 in detectStackBoundaries () from
/cvs/xscale/jre/lib/arm/libkaffevm-1.1.x-cvs.so
(gdb) where
#0 0x400a95d8 in detectStackBoundaries () from
/cvs/xscale/jre/lib/arm/libkaffevm-1.1.x-cvs.so
#1 0x400a9594 in detectStackBoundaries () from
/cvs/xscale/jre/lib/arm/libkaffevm-1.1.x-cvs.so
#2 0x4007686c in initNativeThreads () from
/cvs/xscale/jre/lib/arm/libkaffevm-1.1.x-cvs.so
#3 0x40041fac in initialiseKaffe () from
/cvs/xscale/jre/lib/arm/libkaffevm-1.1.x-cvs.so
#4 0x400b05cc in JNI_CreateJavaVM () from
/cvs/xscale/jre/lib/arm/libkaffevm-1.1.x-cvs.so
#5 0x00008eb0 in main ()
#6 0x40217e10 in __libc_start_main () from /lib/libc.so.6
------------------------------------------------------------------------------
I can deduced nothing useful for me from the above info. And I think it didn't
disclosed the fact precisely.
BTW(By the way), I didn't enable the xdebugging in this compiled version of
kaffe for the sake of some compiled errors. Is that necessary for me?
Waiting for your help... :P)
cheers,
Saw
--http://www.eyou.com
--Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ Òƶ¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡
--http://vip.eyou.com
--¿ì¿ìµÇ¼ÒÚÓÊVIPÐÅÏä ×¢²áÄúÖÐÒâµÄÓû§Ãû
More information about the kaffe
mailing list