libev application stops responding and consumes 100% cpu

Kirill Timofeev kvt at hulu.com
Mon Apr 7 18:17:43 CEST 2014


Hi folks,

I've created libev based application, which works ok for some time, but 
at random moment it stops responding and consumes 100% cpu. Here is 
information on os and libev version:

kirill.timofeev at els-abacus-stage-01:~$ uname -a
Linux els-abacus-stage-01 3.8.0-37-generic #53~precise1-Ubuntu SMP Wed 
Feb 19 21:37:54 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
kirill.timofeev at els-abacus-stage-01:~$ dpkg -l|grep libev
ii  libev-dev                        1:4.11-1 static library, header 
files, and docs for libev
ii  libev4                           1:4.11-1 high-performance event 
loop library modelled after libevent
ii  libevent-2.0-5                   2.0.16-stable-1 Asynchronous event 
notification library
kirill.timofeev at els-abacus-stage-01:~$

I generated core file from frozen process. Unfortunately I'm not expert, 
so the only thing I see is that process got stuck in ev_run:

(gdb) bt
#0  0x00007f3337393583 in ev_run () from /usr/lib/libev.so.4
#1  0x000000000040142a in main ()
(gdb)

I noticed, that official already have version 4.15, while ubuntu 
repository still have 4.11.

Should I use latest code from official site or there is better way to 
resolve this issue?

Thanks,
Kirill.



More information about the libev mailing list