Open Mayzie opened 6 years ago
Just saw #99
Given that I am also using Python 3.6.x and UVLoop 0.9.1, I figured I would downgrade to 0.8.1. Doing so and running the above UVLoop code, Python now also segfaults with:
Accepting connections on http://0.0.0.0:8080
Fatal Python error: Segmentation fault
Current thread 0x00007ff82ef14540 (most recent call first):
File "/usr/lib/python3.6/site-packages/japronto/app/__init__.py", line 182 in serve
File "/usr/lib/python3.6/multiprocessing/process.py", line 93 in run
File "/usr/lib/python3.6/multiprocessing/process.py", line 258 in _bootstrap
File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 80 in _launch
File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 26 in __init__
File "/usr/lib/python3.6/multiprocessing/context.py", line 277 in _Popen
File "/usr/lib/python3.6/multiprocessing/context.py", line 223 in _Popen
File "/usr/lib/python3.6/multiprocessing/process.py", line 105 in start
File "/usr/lib/python3.6/site-packages/japronto/app/__init__.py", line 228 in _run
File "/usr/lib/python3.6/site-packages/japronto/app/__init__.py", line 264 in run
File "./ja_bug.py", line 20 in <module>
Worker crashed on signal SIGSEGV!
same problem here. @squeaky-pl @jacobbridges @rahulkp220 @kwadrat Any leads? Thanks!
Hello!
It currently isn't possible, as far as I can tell, to use a custom Matcher class (or even the Python one in
japronto.router.Matcher
).Python just segfaults under asyncio, and ignores the error under uvloop.
My sample code is as follows:
It does not even enter the function,
custom_match_request
(given it does not print anything).Under asyncio (as above), I get:
Under uvloop (remove the loop overrides above):
Thanks! 😄