IntelLabs / IntelLabs/kAFL

kafl debug can't step into shared library

Open
#188 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
814
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm facing a problem when I want to debug crash input after fuzzing. I use follow command to start debug
```
kafl debug -w /home/leone/Documents/SGXSan/SGX_APP/sgx-wallet/workdir --kernel /boot/vmlinuz-5.10.73-kafl+ --initrd /home/leone/Documents/SGXSan/SGX_APP/sgx-wallet/sgx-wallet.cpio.gz --memory 512 --sharedir /home/leone/Documents/SGXSan/SGX_APP/sgx-wallet/sharedir -p 1 -r --action gdb --log-hprintf --input /home/leone/Documents/SGXSan/SGX_APP/sgx-wallet/workdir/corpus/crash/payload_00013
```
and then let gdb `target remote localhost:1234`, then gdb stop in `kAFL_hypercall(HYPERCALL_KAFL_USER_FAST_ACQUIRE, 0);` (I think debug is start from snapshot), and I can debug executable successfully, but when I want to step into function in shared library called by this executable, gdb can't stop, even I set breakpoint in shared library, it can't stop yet. And when I call `(gdb) info shared` in gdb it returns `No shared libraries loaded at this time.`

Any method to debug this shared library is helpful to me, thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.