[Libevent-users] libevent (svn revision 651) segfaults on linux
2.6.12, ARM little endian architecture
Frank Schaeckermann
6622n8e02 at sneakemail.com
Fri Feb 22 04:54:57 EST 2008
I have installed transmission-daemon (a Bittorrent client) svn revision
5051 on my Maxtor Shared Storage II (ARM little endian) with Linux
2.6.12. Very soon after starting the daemon it segfaults.
I have re-compiled and re-installed transmission-daemon with debug
information and ran it in gdb. The segfault happens in epoll.c line 217
(libevent svn revision 651) in epoll_dispatch. Apparently an event comes
in that does not have its data pointer set properly. I fixed the problem
by adding a check for a valid data pointer before doing anything with it
and now transmission does not segfault anymore.
But the event that is to be dispatched now does not do anything anymore.
Which means I have cured the symptoms but not the cause. Somebody needs
to figure out, why and from where invalid events get to epoll_dispatch.
Or maybe it is okay if that happens, but then epoll.c needs to be
patched accordingly.
If there is anything I can help with, please let me know!
Regards, Frank
P.S. I have already posted this in the transmissionbt forum but was
asked by the developers to report it upstream to libevent as well.
More information about the Libevent-users
mailing list