-
Notifications
You must be signed in to change notification settings - Fork 431
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
Panics at times when sampling a Django app #653
Comments
Here's a backtrace I got. So far didn't manage yet to get a
I think it may have something to do with the fairly large number of threads my app spawns (it has a thread pool of ~45 workers). It also uses asyncio. The precise version I'm running is HEAD as of today (7cbbc01) with this added patch IIRC to help make more sense of some threaded code: diff --git a/src/python_spy.rs b/src/python_spy.rs
index f5e36d6..e8c02da 100644
--- a/src/python_spy.rs
+++ b/src/python_spy.rs
@@ -347,6 +347,8 @@ impl PythonSpy {
} else {
let frame = &frames[0];
(frame.name == "wait" && frame.filename.ends_with("threading.py"))
+ || (frame.name == "_worker" && frame.filename.ends_with("concurrent/futures/thread.py"))
+ || (frame.name == "_recv" && frame.filename.ends_with("multiprocessing/connection.py"))
|| (frame.name == "select" && frame.filename.ends_with("selectors.py"))
|| (frame.name == "poll"
&& (frame.filename.ends_with("asyncore.py") |
Any update on this? Like @sliedes I also use some threads |
I get a similar issue with python 3.11 and py-spy 0.3.14 (without django, byt just by using pyroscope-io on a python project).
|
Hi, are there any updates on this issue? |
I am also having this issue |
Testing out py-spy locally the Django development server and so I have the following running:
I've then got
py-spy
running in a separate shell as sudo with the following args:Now and again I get the following panic:
Apologies if this has already been reported, I had a quick skim, but I didn't find it.
Some info about my system:
Processor: AMD Ryzen 9 7950X
RAM: 32GB
Main OS: Windows 10 but running on WSL 2
Python version of the running program: 3.11.7
py-spy version: 0.3.14
Let me know if you need any other info from me.
The text was updated successfully, but these errors were encountered: