< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] Assertion failed with FdPollImplEpoll::modPollItem


I ensure that I have adjusted the FD limits to 65535.


On Thu, Dec 19, 2019 at 11:06 PM Scott Godin <sgodin@xxxxxxxxxxxxxxx> wrote:
Looking at our code in FdPoll.cxx we do specifically catch EINTR and retry epoll_wait as suggested here:
https://stackoverflow.com/questions/6870158/epoll-wait-fails-due-to-eintr-how-to-remedy-this 
Other error paths abort() the process.

I wonder if the socket creation is triggering this.  The logs show that we just tried to create a new TCP socket before this happened.  Then we get a Bad file descriptor error. 

I wonder if this is what would occur if the user / system hit the linux max fd limit?
https://www.99ideas.in/blog-post/increasing-file-descriptors-and-open-files-limit-in-centos-7/ 

Great to hear from you Alan!  :)  

Scott

On Thu, Dec 19, 2019 at 5:29 AM Hawrylyshen, Alan <alan@xxxxxxxxxxxx> wrote:
Hey Karlsson (and other resip folks) 

Based on the log it looks like (guess as I haven’t check the code) this might be a bug where epoll() returned -1 and the errno was EINTR which isn’t abnormal of a signal delivery causes the epoll to exit. 

The code might need to be changed to restart the epoll or read the assertion and handle this gracefully. 

Alternatively something propagated through the epoll family of syscalls that caused the error but less likely. 

Someone who has been in the epoll code more recently should opine. 

HTH,

After a long silence,
Alan

On Thu, 19 Dec 2019 at 06:54, Karlsson <boost.regex@xxxxxxxxx> wrote:
There log is here:

sigcomp id=
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | TcpBaseTransport.cxx:330 | Processing write for [ V4 59.152.243.242:3256 TCP targetDomain=59.152.243.242 transportKey=1 ]
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | ConnectionManager.cxx:93 | Could not find a connection for [ V4 59.152.243.242:3256 TCP targetDomain=59.152.243.242 transportKey=1 ]
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | InternalTransport.cxx:121 | Creating fd=0 V4/TCP
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | TcpBaseTransport.cxx:262 | Opening new connection to [ V4 59.152.243.242:3256 TCP targetDomain=59.152.243.242 transportKey=1 ]
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | ConnectionBase.cxx:72 | ConnectionBase::ConnectionBase, who: [ V4 59.152.243.242:3256 TCP targetDomain=59.152.243.242 transportKey=1 ] 0x7f00d411b260
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | ConnectionBase.cxx:85 | No compression library available: 0x7f00d411b260
INFO | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | Connection.cxx:45 | Connection::Connection: new connection created to who: [ V4 59.152.243.242:3256 TCP targetDomain=59.152.243.242 transportKey=1 ], is server = 0
DEBUG | 20191219-083530.008 | Proxy Server | RESIP:TRANSPORT | 139641676072704 | TcpConnection.cxx:18 | Creating TCP connection [ V4 59.152.243.242:3256 TCP targetDomain=59.152.243.242 transportKey=1 ] on 0
CRIT | 20191219-083530.009 | Proxy Server | RESIP | 139641676072704 | FdPoll.cxx:987 | epoll_ctl(MOD) failed: Bad file descriptor
CRIT | 20191219-083530.009 | Proxy Server | RESIP | 139641676072704 | FdPoll.cxx:987 | epoll_ctl(MOD) failed: Bad file descriptor
DEBUG | 20191219-083530.285 | Proxy Server | RESIP | 139641667680000 | FdPoll.cxx:1180 | epoll_wait() broken by EINTR
DEBUG | 20191219-083530.286 | Proxy Server | RESIP | 139641692858112 | FdPoll.cxx:1180 | epoll_wait() broken by EINTR
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/
--
a l a n a t p o l y p h a s e d o t c a
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/