locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
25.06k stars 3k forks source link

Segmentation Fault (core dumped) under python 3.7 #839

Closed DanielHilton closed 6 years ago

DanielHilton commented 6 years ago

Description of issue / feature request

When running my script under python version 3.7 (in my case within Docker), setting the user count to 100+ approximately, I receive a segfault and some of my slave containers crash. I'm running 6 slaves and 1 master.

Expected behavior

No segfault.

Actual behavior

Segfault after approximately 30 seconds of load testing at 100~ users on 3-4 slaves out of 6.

Environment settings (for bug reports)

Steps to reproduce (for bug reports)

5 @tasks, each weighted differently, each of which is sending data via HttpLocust. Our system uses a HATEOAS architecture that means when we create a resource, Link headers are returned from which we can perform HEAD requests on to retrieve HTTP URIs in the Link header.

My suspicion is that this is a bug with one of locust's dependencies or Python 3.7 itself, however I thought it pertinent to raise it here. Currently have worked around this by downgrading my container to python 3.6.

cgoldberg commented 6 years ago

not enough info given to investigate or diagnose.

aldenpeterson-wf commented 6 years ago

Locust isn't currently tested against 3.7 https://github.com/locustio/locust/blob/master/tox.ini#L2 - it's possible there's an inherent incompatibility there with either Locust or some of its dependencies.