Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

crash r2 -I any-io.py #19724

Closed
s0i37 opened this issue Feb 16, 2022 · 6 comments
Closed

crash r2 -I any-io.py #19724

s0i37 opened this issue Feb 16, 2022 · 6 comments
Milestone

Comments

@s0i37
Copy link

s0i37 commented Feb 16, 2022

Environment

# copypaste this script into your shell and replace it with the output
Ср 16 фев 2022 19:28:28 +05
radare2 5.6.2 27814 @ linux-x86-64 git.5.6.2
commit: 33ce7e78a25044773741cd85f566a26ffa5f0f5c build: 2022-02-16__19:16:17
Linux x86_64

Description

R2 cant load IO-plugins anymore

Test

Try to load any io-plugin, for example:

r2 -I r2angr-io.py angr:///bin/true

@trufae
Copy link
Collaborator

trufae commented Feb 16, 2022

What's the error you get? this depends on lang-python, do you have it installed?

@s0i37
Copy link
Author

s0i37 commented Feb 16, 2022

Yes.
r2pm -ci rlang-python
r2 -I windbg.py -D windbg windbg://target
_check windbg://target False
_open windbg://target 5 420
[1] 980827 segmentation fault r2 -I windbg.py -D windbg windbg://target

@trufae
Copy link
Collaborator

trufae commented Feb 16, 2022

can you paste the backtrace?

@s0i37
Copy link
Author

s0i37 commented Feb 16, 2022

#0  0x00007ffff5777e5b in _Py_DECREF () from /home/soier/.local/share/radare2/plugins/lang_python.so                                                                        
#1  0x00007ffff57786dd in py_io_system () from /home/soier/.local/share/radare2/plugins/lang_python.so                                                                      
#2  0x00007ffff7a03c95 in r_io_system (io=0x5555555af680, cmd=0x5555556060b2 "") at io.c:366                                                                                
#3  0x00007ffff6a6f939 in cmd_rap (data=0x7ffff58d3010, input=0x5555556060b1 "!") at cmd.c:946                                                                              
#4  0x00007ffff6ad20f0 in r_cmd_call (cmd=0x5555555c4e40, input=0x5555556060b0 "=!") at cmd_api.c:537                                                                       
#5  0x00007ffff6a7a339 in r_core_cmd_subst_i (core=0x7ffff58d3010, cmd=0x5555556060b0 "=!", colon=0x0, tmpseek=0x7fffffffdbd7) at cmd.c:4436                                
#6  0x00007ffff6a7672a in r_core_cmd_subst (core=0x7ffff58d3010, cmd=0x5555556060b0 "=!") at cmd.c:3323                                                                     
#7  0x00007ffff6a7d038 in run_cmd_depth (core=0x7ffff58d3010, cmd=0x5555558d23a0 "=!") at cmd.c:5324                                                                        
#8  0x00007ffff6a7d434 in r_core_cmd (core=0x7ffff58d3010, cstr=0x7ffff6b86cb9 "=!", log=false) at cmd.c:5407                                                               
#9  0x00007ffff6a7db36 in r_core_cmd0 (core=0x7ffff58d3010, cmd=0x7ffff6b86cb9 "=!") at cmd.c:5564                                                                          
#10 0x00007ffff6a811f4 in r_core_file_open (r=0x7ffff58d3010, file=0x55555561bad0 "windbg://target", flags=5, loadaddr=0) at cfile.c:920                                    
#11 0x00007ffff7ddb6f7 in r_main_radare2 (argc=6, argv=0x7fffffffe1b8) at radare2.c:1015                                                                                    
#12 0x0000555555555438 in main (argc=6, argv=0x7fffffffe1b8) at radare2.c:96

@trufae
Copy link
Collaborator

trufae commented Feb 18, 2022

i just fixed what i suggested you to d o in the chat. please confirm

@trufae trufae closed this as completed Feb 18, 2022
@trufae trufae added this to the 5.6.4 milestone Feb 18, 2022
@s0i37
Copy link
Author

s0i37 commented Feb 18, 2022

I confirm
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants