squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

Worker crashed on signal SIGSEGV! #95

Open jonathan-kosgei opened 6 years ago

jonathan-kosgei commented 6 years ago
Fatal Python error: Segmentation fault

Current thread 0x00007f5557142b48 (most recent call first):
  File "/usr/lib/python3.6/ipaddress.py", line 1142 in _parse_octet
  File "/usr/lib/python3.6/ipaddress.py", line 1121 in _ip_int_from_string
  File "/usr/lib/python3.6/ipaddress.py", line 1284 in __init__
  File "/usr/lib/python3.6/ipaddress.py", line 44 in ip_address
  File "/src/ipdata-japronto.py", line 48 in lookup_other_ipdata
  File "/usr/lib/python3.6/site-packages/japronto-0.1.1-py3.6-linux-x86_64.egg/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 249 in _bootstrap
  File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 74 in _launch
  File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 20 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-0.1.1-py3.6-linux-x86_64.egg/japronto/app/__init__.py", line 228 in _run
  File "/usr/lib/python3.6/site-packages/japronto-0.1.1-py3.6-linux-x86_64.egg/japronto/app/__init__.py", line 264 in run
  File "/src/ipdata-japronto.py", line 66 in <module>
Worker crashed on signal SIGSEGV!

Have a small japronto microservice that checks if an ipaddress is valid.

Crashed with this error when I tried to loadtest it (1500 reqs)

squeaky-pl commented 6 years ago

Hi @jonathan-kosgei, is there a chance you can share source code with me and precise reproduction steps so I can debug and fix it?