qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Springer <rsprin...@etinternational.com>
Subject Possible EPollPoller issue?
Date Wed, 25 Jul 2012 13:39:43 GMT
Hey all - there's an unchecked error condition in EpollPoller.cpp that we ran 
into, but I wanted to check in here before opening a bug, since as far as I 
can tell, it can only be triggered if another error is present elsewhere.

To keep a long story short, there was a bug in one of our programs wherein a 
thread could call close() on what was effectively a random socket. 
Occasionally, it would happen to call close() on the alwaysReadableFd 
registered in the PollerPrivate constructor, which would result in an epoll 
event for that FD to be returned in the call to epoll_wait() on line 568. It'd 
then try to dereference the event's "ptr" element (which was set to 0x1 on 
registration for that FD), which would lead to a segfault.

Since the root problem is absolutely in our software, and not in Qpid, I 
wasn't sure if you [the maintainers] wanted an issue opened to perhaps catch 
the error condition and log a message, rather than throwing a segfault. IMO, 
either answer makes sense.


To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message