Public bug reported:
=== Ubuntu release ===
$lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
=== Version ===
$apt-cache policy inspircd
inspircd:
Installed: 1.1.22+dfsg-4ubuntu2
Candidate: 1.1.22+dfsg-4ubuntu2
Version table:
*** 1.1.22+dfsg-4ubuntu2 0
500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
100 /var/lib/dpkg/status
=== 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://github.com/inspircd/inspircd/issues/34, which seems to have had
this fix https://github.com/inspircd/inspircd/pull/62/commits (which
seems like a security fix that happens to fix this bug).
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.
** Affects: inspircd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1003196
Title:
inspircd consumes all cpu
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/inspircd/+bug/1003196/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs