-
Notifications
You must be signed in to change notification settings - Fork 3k
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
gc refcount related crash when loading web UI under Python 2.6.6 #49
Comments
That sounds really strange. We've run Locust fine for countless hours under different 2.6.x versions.
Since I haven't experienced this myself I did quick google and for some this issue is caused by too aggressive compilation options when building the Python interpreter. |
I was able to reproduce the problem using a minimal centos 6.3 installation on a VM. As well as using the python version that's shipped with it. It seems to be related to gevent. Updating gevent to 1.0rc2 seems to solve the problem. So that should be a work-around for now. |
I was able reproduce it as well. @Jahaja's fix works! Will close this issue as there is a short term workaround and it will be solved when gevent hits 1.0 (Locust will switch). |
Would you please provide some more details on the fix, I have tried this and it does not appear to help - here's what I've done: $ uname -a $ which python $ yum install c-ares-devel Also, from this post, it appears locust's use of gevent is not compatible with 1.0rc2: |
I've just pushed some changes which I think fixes the problems. Could you try to see if works and then I can push a new version to PyPI. Thanks for reporting! |
Yes this change seems to fix all the issues. Thanks for getting to it so fast! |
That's great to hear! The fix is now in a new 0.6.2 release on PyPI. |
Merge Develop to Master
Running under Python 2.6.6 (Centos 6.3) I get the following crash as soon as I try and load the web UI. This seems to work fine using Python 2.7.3 as an altinstall on the same host. I have seen this on two different Centos 6.3 hosts...
--snip--
$ /usr/bin/locust -f some_locust_script.py
/usr/lib/python2.6/site-packages/locust/rpc/init.py:7: UserWarning: WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq
warnings.warn("WARNING: Using pure Python socket RPC implementation instead of zmq. This will not affect you if your not running locust in distributed mode, but if you are, we recommend you to install the python packages: pyzmq and gevent-zeromq")
[2012-12-18 15:14:52,705] INFO/locust.main: Starting web monitor on port 8089
[2012-12-18 15:14:52,705] INFO/locust.main: Starting Locust 0.6.1
Modules/gcmodule.c:348: visit_decref: Assertion "gc->gc.gc_refs != 0" failed.
refcount was too small
object : <weakref at 0x15b1db8; to 'gevent.core.http_request' at 0x15b1d60>
type : weakref
refcount: 1
address : 0x15b1db8
Aborted
--snip--
The text was updated successfully, but these errors were encountered: