inspircd consumes all cpu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
inspircd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
=== Ubuntu release ===
$lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
=== Version ===
$apt-cache policy inspircd
inspircd:
Installed: 1.1.22+
Candidate: 1.1.22+
Version table:
*** 1.1.22+
500 http://
100 /var/lib/
=== What happened ===
When I ran inspircd like so:
> $inspircd --config inspircd.conf --nofork
It consumed an entire cpu (it also did this without nofork)
stracing the process with strace -p showed lots of the following
poll([{fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, {fd=0, events=0}, ...], 1024, 1000) = 1 ([...])
time(NULL) = 1337733367
=== What I expected to happen ===
It not to consume an entire cpu.
=== Speculation on the cause ===
This would appear to be this bug: https:/
This patch does not cleanly apply to the tree (however it will with minor tweaking). I'm not sure if this patch actually works because the version of inspircd shipped with pangolin does not build under pangolin due to the lack of libgnutls-config or similar.
=== Possible fix ===
Someone who can actually build inspircd on their machine might like to apply this patch and see if this fixes the problem.
Status changed to 'Confirmed' because the bug affects multiple users.