Granary / granary2

Dynamic binary translation framework for instrumenting x86-64 user space Linux programs
MIT License
39 stars 5 forks source link

SIGSEGV when instrumenting ls with data_collider and poly_code #77

Closed pgoodman closed 9 years ago

pgoodman commented 9 years ago

I think is a register scheduling issue. I was recently looking into this issue and implemented two minor related fixes/avoidances related to spilling/filling too many registers around instructions using legacy registers. The situation looked something like:

lahf
xchg rsi, r12
xchg [rsp+0x8], r12
seto ah
pgoodman commented 9 years ago

This was actually a much simpler issue.