Comments (7)
拉取的是最新的代码嘛? 我这里测试没有问题.
from dobby.
代码是最新的 我重新rebuild了一下 还是报错。Fatal signal 7 (SIGBUS), code 1, fault addr 0x36 in tid 12110
from dobby.
ok, 有几个问题.
-
系统版本?
-
下面这段代码, 在
<breakpoint>
处加上断点, 会断在哪里呢? 还是三处都没有触发断点.
void precall(RegState *rs, ThreadStack *threadstack, CallStack *callstack) {
<breakpoint>
}
void postcall(RegState *rs, ThreadStack *threadstack, CallStack *callstack) {
<breakpoint>
}
ssize_t (*orig_send)(int, const void *, size_t, int);
ssize_t fake_send (int __fd, const void *__buf, size_t __n, int __flags) {
<breakpoint>
LOGI("called send");
ssize_t x = orig_send(__fd, __buf, __n, __flags);
return x;
}
__attribute__((constructor)) void hook_socket() {
ZzEnableDebugMode();
ZzHook((void *)send, (void *)fake_send, (void **)&orig_send, precall, postcall, FALSE);
send(-1, "test", 4, 0);
}
- 能发一下 debug 的 log 输出么?
ZzEnableDebugMode
会启用 log 输出, 能否粘贴一下.
from dobby.
换了个手机就不报错了。。和android版本有关?报错的是红米NOTE4x android7.0。不报错的是三星NOTE3 android5.0
from dobby.
这个问题, 是对齐的, 我再 check 下, 顺便加强一下 log 函数.
from dobby.
ssize_t x = orig_send(__fd, __buf, __n, __flags);这一行执行之后就coredump了
下面是日志
10-30 21:30:09.366 30807-30807/coder.priv.hook I/zzinfo: ZzThunkerBuildThunk:
LogInfo: enter_thunk at 0xe925d000, length: 194.
10-30 21:30:09.366 30807-30807/coder.priv.hook I/zzinfo: ZzThunkerBuildThunk:
LogInfo: leave_thunk at 0xe925d0c4, length: 194.
10-30 21:30:09.366 30807-30807/coder.priv.hook I/zzinfo: ZzBuildEnterTrampoline:
LogInfo: on_enter_trampoline at 0xe925d24c, length: 32. hook-entry: 0xf0c13480. and will jump to enter_thunk(0xe925d001)
10-30 21:30:09.367 30807-30807/coder.priv.hook I/zzinfo: ZzBuildInvokeTrampoline:
LogInfo: on_invoke_trampoline at 0xe925d26c, length: 20. and will jump to rest code(0xf189fabe).
ThumbInstructionFix: origin instruction at 0xf189fab6, end at 0xf189fabe, relocator instruction nums 3
origin_prologue: 0x80 0xb5 0x82 0xb0 0x4f 0xf0 0x00 0x0c
10-30 21:30:09.367 30807-30807/coder.priv.hook I/zzinfo: ZzBuildLeaveTrampoline:
LogInfo: on_leave_trampoline at 0xe925d280, length: 32. and will jump to leave_thunk(0xe925d0c5).
from dobby.
我的 wechat: winter1ife QQ: 858982985, 欢迎交流
from dobby.
Related Issues (20)
- built-in plugin ImportTableReplace cannot be enabled with compile parameter '-DPlugin.ImportTableReplace=ON' HOT 1
- report a problem with the instruction fix
- hook x86_64, crash
- hook一个get_text函数,arm32正常,arm64 奔溃
- `DobbySymbolResolver` cannot find function address
- A compile error on Windows (building for Android) HOT 1
- iOS 16.5 hook unvalid
- Is `DOBBY_GENERATE_SHARED` still recognized?
- fatal error: 'core/arch/Cpu.h' file not found HOT 2
- DOBBY_GENERATE_SHARED配置后不起作用 HOT 2
- iOS error
- How to find out which app is using Dobby?
- closure_bridge_template LR 寄存器保存错误
- 最新master分支hook memcpy crash
- error: unknown type name 'DBICallTy' HOT 1
- Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) HOT 1
- 编译Mac库时报错 HOT 3
- Can't compile latest version on Android Studio HOT 5
- python3 scripts/platform_builder.py --platform=macos --arch=all HOT 2
- x86架构中hook函数崩溃 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dobby.