Attach to non-existent PID by io-no · Pull Request #300 · libdebug/libdebug · GitHub
Skip to content

Attach to non-existent PID#300

Open
io-no wants to merge 7 commits into
mainfrom
fix-attach-not-available-pid
Open

Attach to non-existent PID#300
io-no wants to merge 7 commits into
mainfrom
fix-attach-not-available-pid

Conversation

@io-no

@io-no io-no commented Apr 15, 2026

Copy link
Copy Markdown
Member

This fixes an issue when attaching to a non-existent PID. Previously, we never checked for the existence of the PID, returning an empty list of TIDs in get_process_tasks. This caused us to wait on an empty list of threads, which in turn resulted in an infinite loop (causing libdebug to hang in that case).

@MrIndeciso MrIndeciso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think skill issue of whoever wrote the any_of code.

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

Successfully merging this pull request may close these issues.

3 participants