jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hook x86_64, crash

111304037 opened this issue · comments

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 4608 (UnityMain), pid 4582 (m.xinglely.gles)
4614-4614 DEBUG pid-4614 A pid: 4582, tid: 4608, name: UnityMain >>> com.xinglely.gles <<<
4614-4614 DEBUG pid-4614 A #1 pc 00000000000240ec /data/app/com.xinglely.gles-TDxt9FReAtmSwByDXJed4Q==/lib/x86_64/libdemo.so (hooked_hook_glClearColor(float, float, float, float)+124)
4614-4614 DEBUG pid-4614 A #2 pc 0000000000043f10 /data/app/com.xinglely.gles-TDxt9FReAtmSwByDXJed4Q==/lib/x86_64/libunity.so (OnRender+64)
4614-4614 DEBUG pid-4614 A #3 pc 000000000002ee80 /data/app/com.xinglely.gles-TDxt9FReAtmSwByDXJed4Q==/lib/x86_64/libunity.so (UnityPlayerLoop+144)
4614-4614 DEBUG pid-4614 A #4 pc 00000000000415b4 /data/app/com.xinglely.gles-TDxt9FReAtmSwByDXJed4Q==/lib/x86_64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+20)
4614-4614 DEBUG pid-4614 A #12 pc 0000000000009f68 /dev/ashmem/dalvik-classes2.dex extracted in memory from /data/app/com.xinglely.gles-TDxt9FReAtmSwByDXJed4Q==/base.apk!classes2.dex (deleted) (com.unity3d.player.UnityPlayer.access$000)
4614-4614 DEBUG pid-4614 A #18 pc 000000000000993a /dev/ashmem/dalvik-classes2.dex extracted in memory from /data/app/com.xinglely.gles-TDxt9FReAtmSwByDXJed4Q==/base.apk!classes2.dex (deleted) (com.unity3d.player.UnityPlayer$UnityMainThread.run+142)
1574-1655 InputDispatcher system_process E channel '4d9dd4 com.xinglely.gles/com.xinglely.gles.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
---------------------------- PROCESS ENDED (4582) for package com.xinglely.gles ----------------------------

DEF_HOOK(void,hook_glClearColor,GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
LOGI("[*]glClearColor:%p(%f,%f,%f,%f)", hook_glClearColor, red,green,blue, alpha);
hook_glClearColor(0,1,0,alpha);
}
hook_glClearColor is origin function,call hook_glClearColor crash