memray: Fatal Python error: Segmentation fault
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Flask server encountered a Segmentation fault fatal error after serving traffic for a few mins.
The Flask server was started using memray run start.py
Seems to be related to gevent.
Thread 0x0000fffec068f1a0 (most recent call first):
File "/usr/local/lib/python3.8/dist-packages/gevent/_threading.py", line 39 in acquire_with_timeout
File "/usr/local/lib/python3.8/dist-packages/gevent/_threading.py", line 99 in wait
File "/usr/local/lib/python3.8/dist-packages/gevent/_threading.py", line 220 in get
File "/usr/local/lib/python3.8/dist-packages/gevent/threadpool.py", line 195 in run
Current thread 0x0000ffffa1d5d4c0 (most recent call first):
File "/usr/local/lib/python3.8/dist-packages/gevent/hub.py", line 647 in run
Segmentation fault (core dumped)
Expected Behavior
Flask server serves traffic as normal
Steps To Reproduce
- memray run start.py
- wait a few mins for the error to happen
Memray Version
1.14.0
Python Version
3.8
Operating System
Linux
Anything else?
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (15 by maintainers)
Fix is here https://github.com/bloomberg/memray/pull/700
We will release when is merged
We are making a release today