Hang in fd_ebadf function

Marc-André Cournoyer macournoyer at gmail.com
Wed May 28 19:41:58 CEST 2008


Hi everybody!

I'm playing w/ libev to make (yet another) Ruby web server and I got  
some random issues. Sometimes the server hangs and when I attach to  
the process w/ gdb to get the backtrace here's what I get:

0x9004a7c6 in fcntl$UNIX2003 ()
(gdb) backtrace
#0  0x9004a7c6 in fcntl$UNIX2003 ()
#1  0x003676e7 in fd_ebadf (loop=0x371100) at ev.c:761
#2  0x0036792b in select_poll (loop=0x371100,  
timeout=0.7430000000000021) at ev_select.c:169
#3  0x00368a67 in ev_loop (loop=0x371100, flags=<value temporarily  
unavailable, due to optimizations>) at ev.c:1995
#4  0x003632df in backend_loop (self=19344520) at backend.c:118
...

I updated to the latest libev version, 3.41.
Here's my full code, if that's of any use: http://github.com/macournoyer/thin-turbo/tree/master/ext/thin_backend

Anyone seen this before? You think this is an issue in libev code or  
mine?

thx a lot!
Marc



More information about the libev mailing list