radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
19.71k stars 2.94k forks source link

Debugger Stalls W/ Connect In Profile #22892

Open 3B85A591 opened 2 weeks ago

3B85A591 commented 2 weeks ago

Environment

radare2 5.9.1 32041 @ linux-x86-64
birth: git.5.9.0-124-g4c363ac228 2024-05-01__03:36:10
commit: 4c363ac228df2e24d1345796c103505e70adfbcb
options: gpl -O? cs:5 cl:2 make
Linux x86_64

Description

r2 stalls and has to be killed via ctrl+\ or kill -9 when it fails to connect with connect=[addr]:[port] in a rr2 profile.

Test

#!/bin/rarun2
connect=localhost:7072
program=a.out

nc -l -p 7072 (in another terminal) r2 -r profile.rr2 doo dc (kill nc, stop listening) doo (restart nc) doo dc (stall, have to kill with ctrl+\)