Skip to content
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

Fatal Python error: Segmentation fault,Worker crashed on signal SIGSEGV! #192

Open
traers opened this issue Aug 1, 2023 · 1 comment
Open

Comments

@traers
Copy link

traers commented Aug 1, 2023

when I run 1000 locust users,it was wrong.

Fatal Python error: Segmentation fault

Current thread 0x00007f7a249a5080 (most recent call first):
File "/usr/local/lib/python3.7/site-packages/japronto/app/init.py", line 182 in serve
File "/usr/local/lib/python3.7/multiprocessing/process.py", line 99 in run
File "/usr/local/lib/python3.7/multiprocessing/process.py", line 297 in _bootstrap
File "/usr/local/lib/python3.7/multiprocessing/popen_fork.py", line 74 in _launch
File "/usr/local/lib/python3.7/multiprocessing/popen_fork.py", line 20 in init
File "/usr/local/lib/python3.7/multiprocessing/context.py", line 277 in _Popen
File "/usr/local/lib/python3.7/multiprocessing/context.py", line 223 in _Popen
File "/usr/local/lib/python3.7/multiprocessing/process.py", line 112 in start
File "/usr/local/lib/python3.7/site-packages/japronto/app/init.py", line 228 in _run
File "/usr/local/lib/python3.7/site-packages/japronto/app/init.py", line 264 in run
File "async.py", line 25 in
Worker crashed on signal SIGSEGV!

======================================

The code is as follows, please take a look:

import asyncio
from japronto import Application

async def asynchronous(request):
    await asyncio.sleep(0.01)
    return request.Response(text='0.01 seconds elapsed')

app = Application()

r = app.router
r.add_route('/async', asynchronous)

app.run()
@traers
Copy link
Author

traers commented Aug 3, 2023

core.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant