[kaffe] Kaffe plugin

Абакин Александр ic10 at mail.ru
Thu Oct 9 01:20:04 PDT 2003


Hi!

I have constructed plugin for Mozilla 1.3.
But at start the exception takes off:

Program /usr/src/mozilla/mozilla/dist/bin/mozilla-bin (pid = 9917) received Segmentation fault signal.
Stack:
FatalSignalHandler__13nsProfileLocki+0x00000139 [/usr/src/mozilla/mozilla/dist/bin/components/libprofile.so +0x0002D0D9]
UNKNOWN [/lib/libpthread.so.0 +0x00008FEB]
UNKNOWN [/lib/libc.so.6 +0x0002A6F8]
stringCharArray2Java+0x000001B5 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0003FEF5]
utf8Const2JavaReplace+0x000000B5 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0003F755]
utf8Const2Java+0x0000001F [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0003F68F]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x000142D2]
processClass+0x00000314 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00011784]
loadClass+0x00000105 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x000138E5]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00026B01]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00026A86]
getClassFromSignature+0x0000002C [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00026B5C]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00059F33]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0005A648]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0005905A]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00056C2F]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004A33C]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004749E]
verify3+0x0000018C [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004704C]
processClass+0x00000435 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x000118A5]
loadClass+0x00000105 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x000138E5]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00026B01]
getClassFromSignature+0x0000002C [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00026B5C]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00059F33]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0005A049]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004B0AB]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004A887]
UNKNOWN [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004749E]
verify3+0x0000018C [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0004704C]
processClass+0x00000435 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x000118A5]
loadStaticClass+0x0000011C [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00013A8C]
initBaseClasses+0x000000B2 [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00011162]
initialiseKaffe+0x0000023A [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x0001103A]
JNI_CreateJavaVM+0x000000AA [/usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.2.so +0x00028E6A]
StartVM__9ojiPlugin+0x00000228 [/usr/src/mozilla/mozilla/dist/bin/components/libojiplugin.so +0x00007BA8]
CreatePluginInstance__9ojiPluginP11nsISupportsRC4nsIDPCcPPv+0x00000032 [/usr/src/mozilla/mozilla/dist/bin/components/libojiplugin.so +0x00007432]
CreateOJIPlugin__9ojiPluginP11nsISupportsRC4nsIDPPv+0x0000005E [/usr/src/mozilla/mozilla/dist/bin/components/libojiplugin.so +0x000074EE]
CreateInstance__16nsGenericFactoryP11nsISupportsRC4nsIDPPv+0x00000029 [/usr/src/mozilla/mozilla/dist/bin/libxpcom.so +0x00167AC9]
CreateInstanceByContractID__22nsComponentManagerImplPCcP11nsISupportsRC4nsIDPPv+0x00000086 [/usr/src/mozilla/mozilla/dist/bin/libxpcom.so +0x001020A6]
GetServiceByContractID__22nsComponentManagerImplPCcRC4nsIDPPv+0x00000154 [/usr/src/mozilla/mozilla/dist/bin/libxpcom.so +0x00102FE4]
__cl__C24nsGetServiceByContractIDRC4nsIDPPv+0x000000FF [/usr/src/mozilla/mozilla/dist/bin/mozilla-bin +0x00040E3F]
assign_from_helper__t8nsCOMPtr1Z9nsIPluginRC15nsCOMPtr_helperRC4nsID+0x0000002C [/usr/src/mozilla/mozilla/dist/bin/components/liboji.so +0x0001BC3C]
__t8nsCOMPtr1Z9nsIPluginRC15nsCOMPtr_helper+0x00000039 [/usr/src/mozilla/mozilla/dist/bin/components/liboji.so +0x0001A129]
StartupJVM__12nsJVMManager+0x000001B1 [/usr/src/mozilla/mozilla/dist/bin/components/liboji.so +0x00017DF1]
MaybeStartupLiveConnect__12nsJVMManager+0x0000006F [/usr/src/mozilla/mozilla/dist/bin/components/liboji.so +0x00018F7F]
StartupLiveConnect__12nsJVMManagerP9JSRuntimeRi+0x00000023 [/usr/src/mozilla/mozilla/dist/bin/components/liboji.so +0x0001E2B3]
Init__15nsJSEnvironment+0x000003AB [/usr/src/mozilla/mozilla/dist/bin/components/libjsdom.so +0x0006A36B]
NS_CreateScriptContext__FP21nsIScriptGlobalObjectPP16nsIScriptContext+0x00000019 [/usr/src/mozilla/mozilla/dist/bin/components/libjsdom.so +0x0006A549]
NewScriptContext__14nsDOMSOFactoryP21nsIScriptGlobalObjectPP16nsIScriptContext+0x00000024 [/usr/src/mozilla/mozilla/dist/bin/components/libjsdom.so +0x0005A024]
EnsureScriptEnvironment__10nsDocShell+0x00000267 [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x00050EE7]
GetInterface__10nsWebShellRC4nsIDPPv+0x00000204 [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x0006F2A4]
__cl__C14nsGetInterfaceRC4nsIDPPv+0x000000DC [/usr/src/mozilla/mozilla/dist/bin/mozilla-bin +0x0004046C]
assign_from_helper__t8nsCOMPtr1Z12nsIDOMWindowRC15nsCOMPtr_helperRC4nsID+0x0000002C [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x00062BAC]
__t8nsCOMPtr1Z12nsIDOMWindowRC15nsCOMPtr_helper+0x00000039 [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x0005BC19]
InternalLoad__10nsDocShellP6nsIURIT1P11nsISupportsiPCUsP14nsIInputStreamT6UiP10nsISHEntryiPP11nsIDocShellPP10nsIRequest+0x000000DB [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x00048E5B]
LoadURI__10nsDocShellP6nsIURIP19nsIDocShellLoadInfoUii+0x00000BFC [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x0003621C]
LoadURI__10nsDocShellPCUsUiP6nsIURIP14nsIInputStreamT4+0x000004CB [/usr/src/mozilla/mozilla/dist/bin/components/libdocshell.so +0x0003D82B]
Initialize__16nsWebShellWindowP12nsIXULWindowP11nsIAppShellP6nsIURIiiUiiiiR16nsWidgetInitData+0x000009E2 [/usr/src/mozilla/mozilla/dist/bin/components/libnsappshell.so +0x000540C2]
JustCreateTopWindow__17nsAppShellServiceP12nsIXULWindowP6nsIURIiiUiiiiPP12nsIXULWindow+0x0000024F [/usr/src/mozilla/mozilla/dist/bin/components/libnsappshell.so +0x00047F0F]
CreateHiddenWindow__17nsAppShellService+0x00000105 [/usr/src/mozilla/mozilla/dist/bin/components/libnsappshell.so +0x00047145]
UNKNOWN [/usr/src/mozilla/mozilla/dist/bin/mozilla-bin +0x0001DA52]
main+0x000001F4 [/usr/src/mozilla/mozilla/dist/bin/mozilla-bin +0x0001EAE4]
__libc_start_main+0x00000093 [/lib/libc.so.6 +0x00018727]


The error arises in loadtime of static classes.
Starts to be loaded ClassClass, occurs call to StringClass (???),
which in this moment = NULL.

When has rearranged by places loadStaticClass(&ClassClass, CLASSCLASS)
and loadStaticClass(&StringClass, STRINGCLASS) all classes has loaded,
but began to arise other error - in getCurrentThread() tid = 0!

Prompt, please, what to do?


Abakin A.





More information about the kaffe mailing list