Open weedy opened 7 years ago
What is your Linux version (the kernel, not the distribution)?
4.8.6
This is going to sound funny, but I believe this problem happens on recent versions of Linux.
So far, I have been able to determine that 3.16 is fine, but 4.7 is not.
This does not seem to be a Limnoria-specific issue, so I forwarded it to CPython's bugtracker: https://bugs.python.org/issue28663
However, this bug does affect Limnoria, so I'm keeping this issue open, and will try to find a solution.
You made the bug for 3.x versions. I'm running 2.7.
That's because Python 2.7 no longer receives updates.
Why file a bug against python if it's clearly a kernel regression?
It may be a bad behavior of CPython. If not, they can forward the bug to Linux.
So. This bug is caused by the “sandbox” feature of Limnoria, which prevents process from eating all of the memory. The Web plugin uses this sandbox in case a web server to which the bot connects from flooding the bot with HTTP headers.
However, I just looked at Python's HTTP library, and it fixed this vulnerability in 2014.
I just pushed a commit (9c57199838ed167ff4d810a91f489eb32bd717f0) to testing
, so that if your Python version is not vulnerable (see the list of vulnerable versions), then the sandbox will not be used, and you will not have this bug.
However, this does not completely fixes the bug, because there may be other use cases of this sandbox. So I would like to keep this issue open.