The dead thread won't disappear in call stack monitor
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by running the minimal Python reproduction from the issue with gevent and the described VS Code launch.json configuration on Windows. Inspect how the call stack monitor handles the terminated thread and verify that the dead thread disappears immediately without resizing the stack monitor.
Written by the indexing model from the issue text.
Description
Environment data
- debugpy version: 1.8.1, install from PyPI
- OS and version: Windows 10.0.19045.4291
- Python version cPython 3.9.13 downloaded from python.org
- Using VS Code or Visual Studio: VS code
Actual behavior
here is the minest reproduce code:
import gevent
import gevent.monkey; gevent.monkey.patch_all()
import subprocess
import threading
cmd = 'ver'
info = subprocess.check_output(cmd,
stdin=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
text=True,
shell=True)
print(f'{cmd} => {info}')
https://github.com/microsoft/debugpy/assets/30763045/2fdeeaba-f8f7-4895-a3bd-2ece76c4014d
the dead thread won't disappear immediately util the stack monitor ajust size.
Expected behavior
the dead thread should disappear immediately.
Steps to reproduce:
- paster the code to file
- take the breakpoint
- create a python debug config, add gevent needed env to launce.json, then launch.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 202
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/debugpy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
All issues in microsoft/debugpy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
huggingface/Repo2RLEnv#163 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NousResearch/hermes-agent#121143 ·