Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook x86_64, crash #229

Open
111304037 opened this issue May 23, 2023 · 0 comments
Open

hook x86_64, crash #229

111304037 opened this issue May 23, 2023 · 0 comments

Comments

@111304037
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant