Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Debugger broken after perform additional experimental analysis #6538

Closed
sasdf opened this issue Jan 19, 2017 · 5 comments
Closed

Debugger broken after perform additional experimental analysis #6538

sasdf opened this issue Jan 19, 2017 · 5 comments
Milestone

Comments

@sasdf
Copy link

sasdf commented Jan 19, 2017

As the title, it got sigsegv after aaaa.
rip register seems be destroyed after the analysis that continuing execution will got sigsegv.

$ uname -a
Linux linux8 4.8.4-1-ARCH #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016 x86_64 GNU/Linux
$ r2 -v
radare2 1.2.0-git 13477 @ linux-x86-64 git.1.1.0-203-gb3b81aa92
commit: b3b81aa926f18fd3e930826ae97712acaae2a925 build: 2017-01-14
$ r2 -d /bin/ls
Process with PID 17544 started...
= attach 17544 17544
bin.baddr 0x00400000
USING 400000
Assuming filepath /bin/ls
asm.bits 64
 -- Control the height of the terminal on serial consoles with e scr.height
[0x7f7dbceb5d70]> dr?rip
0x7f7dbceb5d70
[0x7f7dbceb5d70]> aaaa
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze len bytes of instructions for references (aar)
[Oops invalid rangen calls (aac)
[x] Analyze function calls (aac)
[x] Emulate code to find computed references (aae)
[Cannot find section boundaries in here
[x] Analyze consecutive function (aat)
[aav: using from to 0x7f7dbceb5000 0x7f7dbced8000
Using vmin 0x7f7dbceb5000 and vmax 0x7f7dbced8000
aav: using from to 0x7f7dbceb5000 0x7f7dbced8000
Using vmin 0x7f7dbceb5000 and vmax 0x7f7dbced8000
[x] Analyze value pointers (aav)
[Deinitialized mem.0x100000_0xf0000 functions (afta)unc.* functions (aan)
[x] Type matching analysis for all functions (afta)
[x] Type matching analysis for all functions (afta)
[0x7f7dbceb5d70]> dr?rip
0x004022a0
[0x7f7dbceb5d70]> dc
Selecting and continuing: 17544
child stopped with signal 11
[+] SIGNAL 11 errno=0 addr=0x00177ff8 code=1 ret=0
[0x004022a6]>
@leberus
Copy link
Contributor

leberus commented Jan 19, 2017

Somehow the register values are changing after aaaa. I could reproduce it with build: 2017-01-19 too.

@sasdf
Copy link
Author

sasdf commented Jan 19, 2017

It seems caused by afta in aaaa

[0x7f345f6c5d70]> dr~!0x000000
rsp = 0x7ffc9cc2ff90
rip = 0x7f345f6c5d70
rflags = 0x00000200
[0x7f345f6c5d70]> aa
[x] Analyze all flags starting with sym. and entry0 (aa)
[0x7f345f6c5d70]> dr~!0x000000
rsp = 0x7ffc9cc2ff90
rip = 0x7f345f6c5d70
rflags = 0x00000200
[0x7f345f6c5d70]> afta
Deinitialized mem.0x100000_0xf0000
[0x7f345f6c5d70]> dr~!0x000000
rsp = 0x00178000
rbp = 0x00178000
rip = 0x004022a0
rflags = 0x00000200
[0x7f345f6c5d70]>

@radare
Copy link
Collaborator

radare commented Jan 19, 2017 via email

@Maijin
Copy link
Contributor

Maijin commented Jan 19, 2017

@oddcoder ^

@radare radare added this to the 1.2.0 milestone Jan 19, 2017
@radare
Copy link
Collaborator

radare commented Jan 24, 2017

can be "solved" by swapping to a different debugger backend temporarily:

r2 -d ls
dh esil
aeim
aaaa
dh native
dc

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants