Trying to single step through program with trap-flag and trap-signal-handler, crash on vsyscall

谁说我不能喝 提交于 2019-12-04 12:46:47

Answering own question. I didn't figure out what was happening or explain it in detail, but I found a workaround: disable VDSO. That can be done via

sudo sysctl vm.vdso_enabled=0

With this, this whole single stepping through a program works, including stepping across system calls. Disclaimer: don't blame me if things go bad.

EDIT: After updating my Linux (32-bit x86) much later, this error doesn't occur anymore. Maybe it was a bug that was fixed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!