hugsy / gef-extras

Extra goodies for GEF to (try to) make GDB suck even less
https://hugsy.github.io/gef-extras
MIT License
149 stars 50 forks source link

Command 'visualize-libc-heap-chunks' failed to execute properly, reason: type object 'GlibcArena' has no attribute 'TCACHE_MAX_BINS' #38

Closed ebubekirtrkr closed 3 years ago

ebubekirtrkr commented 3 years ago

I installed gef-extras via install script but when I want to use vis command Command 'visualize-libc-heap-chunks' failed to execute properly, reason: type object 'GlibcArena' has no attribute 'TCACHE_MAX_BINS' error occurs. Is there any suggestions?

hugsy commented 3 years ago

Can you enable the debug mode and paste here the stack trace of the error ?

hugsy commented 3 years ago

No need, there was a trivial typo, fixed by 61800f8 Just update gef-extras and you should be ok.

ebubekirtrkr commented 3 years ago

We should also change line 38 in script to

tcache_addr = GlibcHeapTcachebinsCommand.find_tcache()
chunk,count = GlibcHeapTcachebinsCommand.tcachebin(tcache_addr,i)

because GlibcArena has no member tcachebin. Then it works, Thanks

hugsy commented 3 years ago

Good call, should be fixed

hugsy commented 3 years ago

For tracking :