Android : CTS crash at 'testVroot'

on Wednesday, September 17, 2014


In an application processor board running with android 4.4.2, am checking the below CTS test case.


android.security.cts.NativeCodeTest#testVroot


The test case is crashing in native layer of CTS test code. /cts/tests/tests/security/jni/android_security_cts_NativeCodeTest.cpp



static jboolean android_security_cts_NativeCodeTest_doVrootTest(JNIEnv*, jobject)
{
ALOGE("Starting doVrootTest");
pid_t pid = fork();
if (pid == -1) {
return false;
}

if (pid == 0) {
child();
exit(0);
}

return parent(pid);
}


In the logcat below messages are displayed.



*D AndroidRuntime: >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D AndroidRuntime: CheckJNI is OFF
D dalvikvm: Trying to load lib libjavacore.so 0x0
D dalvikvm: Added shared lib libjavacore.so 0x0
D dalvikvm: Trying to load lib libnativehelper.so 0x0
D dalvikvm: Added shared lib libnativehelper.so 0x0
D dalvikvm: No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
E cutils-trace: Error opening trace file: Permission denied (13)
D dalvikvm: Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
D AndroidRuntime: Calling main entry com.android.commands.am.Am
I ActivityManager: Force stopping com.android.cts.stub appid=10050 user=0: start instr
I ActivityManager: Start proc com.android.cts.stub for added application com.android.cts.stub: pid=2101 uid=10050 gids={50050, 3003, 1028, 1015}
I InstrumentationCtsTestRunner: Disabling keyguard
D dalvikvm: Trying to load lib /data/app-lib/com.android.cts.security-1/libctssecurity_jni.so 0x41836400
D dalvikvm: Added shared lib /data/app-lib/com.android.cts.security-1/libctssecurity_jni.so 0x41836400
D InstrumentationCtsTestRunner: Total memory : 3145728
D InstrumentationCtsTestRunner: Used memory : 3074992
D InstrumentationCtsTestRunner: Free memory : 70736
D InstrumentationCtsTestRunner: Now executing : android.security.cts.NativeCodeTest
I TestRunner: started: testVroot(android.security.cts.NativeCodeTest)
E : Starting doVrootTest
E : in child
E : parent: found writable at 543c0000
E : parent: found writable at 543c4000
E : parent: found writable at 543c8000
I ActivityManager: Killing 1701:com.android.music/u0a41 (adj 15): empty #17
V AudioFlinger: 1701 died, releasing its sessions
W MediaFocusControl: RemoteControlClient died
V AudioFlinger: pid 1551 @ 0
F libc : Fatal signal 11 (SIGSEGV) at 0x5445c9fc (code=1), thread 2114 (onCtsTestRunner)
I DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I DEBUG : Build fingerprint: 'unknown'
I DEBUG : Revision: '8704'
I DEBUG : pid: 2101, tid: 2114, name: onCtsTestRunner >>> com.android.cts.stub <<<
I DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 5445c9fc
I DEBUG : r0 4d5e8b04 r1 00000000 r2 543bd008 r3 00000000
I DEBUG : r4 0000d4d4 r5 4156b6c8 r6 5445c9f8 r7 0000b988
I DEBUG : r8 00001000 r9 0000000c sl 54145d9c fp 4186f0f0
I DEBUG : ip 0009f9f0 sp 54243c24 lr 414e2de0 pc 41534c1e cpsr 200b0030
I DEBUG : d0 0000000000000000 d1 0000000000000000
I DEBUG : d2 0000000000000000 d3 0000000000000000
I DEBUG : d4 30090b0a0a211109 d5 08f80a0b0b0b310b
I DEBUG : d6 0a0a211109101100 d7 0b0b0b310b30090b
I DEBUG : d8 0000000000000000 d9 0000000000000000
I DEBUG : d10 0000000000000000 d11 0000000000000000
I DEBUG : d12 0000000000000000 d13 0000000000000000
I DEBUG : d14 0000000000000000 d15 0000000000000000
I DEBUG : d16 0000000000000000 d17 0000000000000000
I DEBUG : d18 00ea003400630085 d19 0000000000000000
I DEBUG : d20 0000000000000000 d21 000c0000000c0000
I DEBUG : d22 0000000000000000 d23 0000000000000000
I DEBUG : d24 0000000000000000 d25 0000002300000022
I DEBUG : d26 0707070703030303 d27 991f1f1f991f1f1f
I DEBUG : d28 991f1f1f991f1f1f d29 0000002200000021
I DEBUG : d30 007f00200079001f d31 008b002300850022
I DEBUG : scr 60000010
I DEBUG :
I DEBUG : backtrace:
I DEBUG : #00 pc 00078c1e /system/lib/libdvm.so (getCodeAddrCommon(unsigned short const*, bool)+129)
I DEBUG : #01 pc 00026ddc /system/lib/libdvm.so
I DEBUG : #02 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
I DEBUG : #03 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
I DEBUG : #04 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
I DEBUG : #05 pc 000605a5 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I DEBUG : #06 pc 0005528b /system/lib/libdvm.so
I DEBUG : #07 pc 0000d228 /system/lib/libc.so (__thread_entry+72)
I DEBUG : #08 pc 0000d3c0 /system/lib/libc.so (pthread_create+240)*


I searched for the cause of this crash. But could not find any info related to this crash.


Can somebody provide the info to resolve the issue?


0 comments:

Post a Comment