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

Segmentation Fault, Worker crashed on signal SIGSEGV ? #56

Open gwthm-in opened 7 years ago

gwthm-in commented 7 years ago

I'm using Japronto 0.1.1, Getting following error:


Fatal Python error: Segmentation fault

Current thread 0x00007fffb313d3c0 (most recent call first):
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 412 in _make_iterencode
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 256 in iterencode
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 199 in encode
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 238 in dumps
  File "/usr/local/lib/python3.6/site-packages/pydruid/client.py", line 409 in _post
  File "/usr/local/lib/python3.6/site-packages/pydruid/client.py", line 141 in timeseries
  File "japronto_visuG.py", line 50 in visuG
  File "/usr/local/lib/python3.6/site-packages/japronto/app/__init__.py", line 182 in serve
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/process.py", line 93 in run
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/process.py", line 249 in _bootstrap
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/popen_fork.py", line 74 in _launch
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/popen_fork.py", line 20 in __init__
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/context.py", line 277 in _Popen
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/context.py", line 223 in _Popen
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/process.py", line 105 in start
  File "/usr/local/lib/python3.6/site-packages/japronto/app/__init__.py", line 228 in _run
  File "/usr/local/lib/python3.6/site-packages/japronto/app/__init__.py", line 264 in run
  File "japronto_visuG.py", line 236 in <module>
Worker crashed on signal SIGSEGV!

Any help on this?

squeaky-pl commented 7 years ago

I need a reproducer. I mean the exact steps to reproduce.

dangerousfeng commented 7 years ago
Fatal Python error: Segmentation fault

Current thread 0x00007f42015f0740 (most recent call first):
  File "/home/py3.6-env/lib/python3.6/site-packages/japronto/app/__init__.py", line 182 in serve
  File "/usr/local/lib/python3.6/multiprocessing/process.py", line 93 in run
  File "/usr/local/lib/python3.6/multiprocessing/process.py", line 249 in _bootstrap
  File "/usr/local/lib/python3.6/multiprocessing/popen_fork.py", line 74 in _launch
  File "/usr/local/lib/python3.6/multiprocessing/popen_fork.py", line 20 in __init__
  File "/usr/local/lib/python3.6/multiprocessing/context.py", line 277 in _Popen
  File "/usr/local/lib/python3.6/multiprocessing/context.py", line 223 in _Popen
  File "/usr/local/lib/python3.6/multiprocessing/process.py", line 105 in start
  File "/home/py3.6-env/lib/python3.6/site-packages/japronto/app/__init__.py", line 228 in _run
  File "/home/py3.6-env/lib/python3.6/site-packages/japronto/app/__init__.py", line 264 in run
  File "japronto_server.py", line 34 in <module>
Worker crashed on signal SIGSEGV!
Worker crashed on signal SIGSEGV!
(py3.6-env) [root@localhost chaos_session]# 

I also got this error. when I run 3000 locust users,it was wrong,but when 1000 users ,it OK.

jonathan-kosgei commented 6 years ago

Also get this running japronto in alpine, with a simple API

traers commented 1 year ago

@squeaky-pl I also got this error,please take a look.