Tuesday, July 27, 2010

[android-developers] Re: Dalvik SegFaults while using CMU Sphinx4

On Jul 26, 5:50 pm, Luis David Pedrosa <luis.david.pedr...@gmail.com>
wrote:
> When I try to debug the issue by stepping through the code line by line, I
> can never pin point an exact place that consistently causes the crash, but
> it does crash every time. I have tried this out on Android 1.6 with an HTC
> Dream Phone, Android 2.1-update1 with a Motorola Droid, and Android 2.2 in
> the emulator and it happens on all of them.

Looks like you've hit a bug in Dalvik's annotation processing code. I
suspect it's the same as http://b.android.com/5964, which found that
annotations with arrays of primitives were not handled correctly.
However, that should be fixed in 2.2 (Froyo), so it's strange that you
would be seeing it there as well.

Here's the converted stack trace:

Stack Trace:
RELADDR FUNCTION
FILE:LINE
0005c2c8 convertReturnType
dalvik/vm/reflect/Annotation.c:653
0005d63e dvmGetAnnotationDefaultValue
dalvik/vm/reflect/Annotation.c:1804
00056ce0 Dalvik_java_lang_reflect_Method_getDefaultValue
dalvik/vm/native/java_lang_reflect_Method.c:179
000139b8 dalvik_mterp
dalvik/vm/mterp/out/InterpAsm-armv7-a.S:9381
00019338 dvmMterpStd
dalvik/vm/mterp/Mterp.c:107
00018804 dvmInterpret
dalvik/vm/interp/Interp.c:987
0004eed0 dvmCallMethodV
dalvik/vm/interp/Stack.c:534
0004eef8 dvmCallMethod
dalvik/vm/interp/Stack.c:435
0005c478 processEncodedAnnotation
dalvik/vm/reflect/Annotation.c:856
v------> processAnnotationSet
dalvik/vm/reflect/Annotation.c:922
0005d116 processAnnotationSet.clone.1
dalvik/vm/reflect/Annotation.c:922
0005d198 dvmGetFieldAnnotations
dalvik/vm/reflect/Annotation.c:1941
000568da Dalvik_java_lang_reflect_Field_getDeclaredAnnotations
dalvik/vm/native/java_lang_reflect_Field.c:377
000139b8 dalvik_mterp
dalvik/vm/mterp/out/InterpAsm-armv7-a.S:9381
00019338 dvmMterpStd
dalvik/vm/mterp/Mterp.c:107
00018804 dvmInterpret
dalvik/vm/interp/Interp.c:987
0004eba6 dvmInvokeMethod
dalvik/vm/interp/Stack.c:750
00056dc4 Dalvik_java_lang_reflect_Method_invokeNative
dalvik/vm/native/java_lang_reflect_Method.c:101
000139b8 dalvik_mterp
dalvik/vm/mterp/out/InterpAsm-armv7-a.S:9381
00019338 dvmMterpStd
dalvik/vm/mterp/Mterp.c:107
00018804 dvmInterpret
dalvik/vm/interp/Interp.c:987
0004eed0 dvmCallMethodV
dalvik/vm/interp/Stack.c:534
0003afbe CallStaticVoidMethodV
dalvik/vm/Jni.c:2681
00027f58 _JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)
dalvik/libnativehelper/include/nativehelper/jni.h:778
00028cc4 android::AndroidRuntime::start(char const*, bool)
frameworks/base/core/jni/AndroidRuntime.cpp:948
00008cd8 main
frameworks/base/cmds/app_process/app_main.cpp:159
0000c228 __libc_init
bionic/libc/bionic/libc_init_dynamic.c:105

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment