[Live-devel] Stack Overflow in FD_SET()

Ba Jinsheng bajinsheng at u.nus.edu
Tue Aug 3 17:39:51 PDT 2021


Hi,

Thanks for your reply!

Yes. Although it shows the " RTSP/1.0 454 Session Not Found" error, it does not affect the bug reproduction.

The bug exists in the "SETUP" command, running the poc.sh should reproduce the result. 

Best regards,
Jinsheng Ba

-----Original Message-----
From: live-devel <live-devel-bounces at us.live555.com> On Behalf Of Ross Finlayson
Sent: Tuesday, August 3, 2021 11:35 PM
To: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
Subject: Re: [Live-devel] Stack Overflow in FD_SET()

        - External Email -



Jinsheng,

Thank you for the report.

Unfortunately, I have not been able to reproduce the error that you saw, because your “command.rtsp” input (RTSP commands) will not work in reality, because the “Session:” headers in the “PLAY” and “TEARDOWN” commands are incorrect.  The “Session:” headers in “PLAY” and “TEARDOWN” commands need to contain the same ‘session id’ that was returned by the earlier “SETUP” command, otherwise  the server will return a
        RTSP/1.0 454 Session Not Found
error.

I.e., running
        nc -n 127.0.0.1 8554 < command.rtsp will not work.  (You can try this yourself.)

I am also puzzled by your description of the error as a ‘stack overflow’,  because the server should handle concurrent requests - even requests for the same file - as separate, sequential events within the event loop (“BasicTaskScheduler”, in this case).  So I don’t see where any excessive recursion (causing a stack overflow) could be happening.  It is true that operating systems place limits on the number of open files, and that this may cause the server to stop responding after receiving a large number of concurrent requests - but this should not be causing a stack overflow.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel



More information about the live-devel mailing list