<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><div id="main_MSGC13531__body" class="MsgBody MsgBody-text" data-mce-tabindex="0"><div>Hello,<br><br>we are using openRTSP tool to record IP cameras stream into file.<br>Recently we have discovered, that sometimes ( maeby because of some<br>network issues ? ) some of the processes stucks at 100% cpu and stops<br>recording.<br>We are running multiple instances of openRTSP. I have not found the real<br>cause of this behavior, sometimes stucks one process per day, sometimes<br>10 per day...<br>Cameras are some low cost ebay style linux devices, running rtsp server<br>only via TCP.<br><br>I am running self compiled version live555-2019.03.06, on Centos7.<br>I have built debug symbols package so i can somehow trace this loop with<br>gdb if needed<br><br>Command, which I am running for recording is<br>/usr/bin/openRTSP -4 -V -t -w 1920 -h 1080 -P 900 -b 500000 -F /records/<br>-f 15 -D 5 rtsp://usename:password@192.168.1.5:80/0<br><br><br>If i attach strace to the stucked process i can see calling only two<br>syscalls calls forever:<br>recvfrom(-1, 0x1953260, 65520, 0, 0x7ffc9866bc10, 0x7ffc9866baa4) = -1<br>EBADF (Bad file descriptor)<br>select(7, [3], [], [3], {0, 2274}) = 1 (in [3], left {0, 2273})<br>recvfrom(-1, 0x1953260, 65520, 0, 0x7ffc9866bc10, 0x7ffc9866baa4) = -1<br>EBADF (Bad file descriptor)<br>select(7, [3], [], [3], {0, 2215}) = 1 (in [3], left {0, 2214})<br>recvfrom(-1, 0x1953260, 65520, 0, 0x7ffc9866bc10, 0x7ffc9866baa4) = -1<br>EBADF (Bad file descriptor)<br>select(7, [3], [], [3], {0, 2156}) = 1 (in [3], left {0, 2155})<br>.<br>.<br>.<br><br><br>Do you have any ideas why this loop happens, and why process is NOT<br>killed when no data were received after few seconds? (-d, -D switches)?<br>Because I am not very familliar with internal structure of this tool maeby </div><div>I can provide gdb logs for you. Any help appreciated!<br><br>Regards,<br>matus2</div></div><div class="footer" id="main_MSGC13531__footer" style="opacity: 1;" data-mce-style="opacity: 1;"><br data-mce-bogus="1"></div></div></div></body></html>