<div dir="ltr"><div>Hello,</div><div><br></div><div>While running testOnDemandRTSPServer from live.2023.05.10 in Ubuntu 20.04, we found one use-after-free. The following is the bug report from the address sanitizer:</div><div><br></div><div>==90==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fffe6494810 at pc 0x000000497a95 bp 0x7ffff35dd380 sp 0x7ffff35dcb48                           <br>WRITE of size 270 at 0x7fffe6494810 thread T0                                                                                                         <br>    #0 0x497a94 in __asan_memmove (/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x497a94)                                           <br>    #1 0x6066a0 in StreamParser::testBytes(unsigned char*, unsigned int) /home/ubuntu/experiments/live/liveMedia/./StreamParser.hh:96:5               <br>    #2 0x6066a0 in StreamParser::getBytes(unsigned char*, unsigned int) /home/ubuntu/experiments/live/liveMedia/./StreamParser.hh:90:5                <br>    #3 0x6066a0 in MatroskaFileParser::deliverFrameBytes() /home/ubuntu/experiments/live/liveMedia/MatroskaFileParser.cpp:1251:7                      <br>    #4 0x5fa759 in MatroskaFileParser::parse() /home/ubuntu/experiments/live/liveMedia/MatroskaFileParser.cpp:184:4                                   <br>    #5 0x5f8fda in MatroskaFileParser::continueParsing() /home/ubuntu/experiments/live/liveMedia/MatroskaFileParser.cpp:111:10                        <br>    #6 0x5cf7b4 in MultiFramedRTPSink::packFrame() /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:223:14                              <br>    #7 0x5ceea4 in MultiFramedRTPSink::buildAndSendPacket(unsigned char) /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:199:3         <br>    #8 0x5ceea4 in MultiFramedRTPSink::continuePlaying() /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:159:3                         <br>    #9 0x5ebb9e in StreamState::startPlaying(Destinations*, unsigned int, void (*)(void*), void*, void (*)(void*, unsigned char), void*) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:575:17 <br>    #10 0x5eb216 in OnDemandServerMediaSubsession::startStream(unsigned int, void*, void (*)(void*), void*, unsigned short&, unsigned int&, void (*)(void*, unsigned char), void*) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:229:18                                                   <br>    #11 0x4e3aa0 in RTSPServer::RTSPClientSession::handleCmd_PLAY(RTSPServer::RTSPClientConnection*, ServerMediaSubsession*, char const*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1943:36<br>    #12 0x4e1b7e in RTSPServer::RTSPClientSession::handleCmd_withinSession(RTSPServer::RTSPClientConnection*, char const*, char const*, char const*, char const*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp                                                                                              <br>    #13 0x4dc30d in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:996:22           <br>    #14 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #15 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #16 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #17 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #18 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #19 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #20 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #21 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #22 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #23 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #24 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #25 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #26 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #27 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #28 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #29 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #30 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #31 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #32 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #33 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #34 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #35 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #36 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #37 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #38 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #39 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #40 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #41 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #42 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #43 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #44 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #45 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #46 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #47 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #48 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #49 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #50 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #51 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #52 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #53 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #54 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #55 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #56 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #57 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #58 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #59 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #60 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #61 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #62 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #63 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #64 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #65 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #66 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #67 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #68 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #69 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #70 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #71 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #72 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #73 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #74 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #75 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #76 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #77 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #78 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #79 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #80 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #81 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #82 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #83 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #84 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #85 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #86 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #87 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #88 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #89 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #90 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #91 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #92 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #93 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #94 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #95 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #96 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #97 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #98 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #99 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #100 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #101 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #102 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #103 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #104 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #105 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #106 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #107 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #108 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #109 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #110 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #111 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #112 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #113 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #114 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #115 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #116 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #117 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #118 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #119 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #120 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #121 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #122 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #123 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #124 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #125 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #126 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #127 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #128 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #129 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #130 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #131 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #132 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #133 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #134 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #135 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #136 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22 <br>    #137 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #138 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #139 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #140 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #141 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #142 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #143 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #144 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #145 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #146 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #147 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #148 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #149 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #150 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #151 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #152 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #153 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #154 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #155 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #156 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #157 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #158 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #159 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #160 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #161 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #162 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #163 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #164 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #165 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #166 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #167 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #168 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #169 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #170 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #171 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #172 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #173 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #174 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #175 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #176 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #177 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #178 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #179 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #180 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #181 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #182 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #183 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #184 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #185 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #186 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #187 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #188 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #189 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #190 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #191 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #192 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #193 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #194 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #195 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #196 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #197 0x4ccec4 in main /home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer.cpp:462:24<br><br>0x7fffe6494810 is located 16 bytes inside of 300564-byte region [0x7fffe6494800,0x7fffe64dde14)<br>freed by thread T0 here:<br>    #0 0x4c81fd in operator delete[](void*) (/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x4c81fd)<br>    #1 0x5ce366 in MultiFramedRTPSink::~MultiFramedRTPSink() /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:60:3<br>    #2 0x5a198b in MPEG4GenericRTPSink::~MPEG4GenericRTPSink() /home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:79:1<br>    #3 0x5a198b in MPEG4GenericRTPSink::~MPEG4GenericRTPSink() /home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:74:45<br>    #4 0x5edd33 in StreamState::reclaim() /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:640:3<br>    #5 0x5ee06f in StreamState::~StreamState() /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:519:3<br>    #6 0x5ee06f in StreamState::~StreamState() /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:518:29<br>    #7 0x5ecd51 in OnDemandServerMediaSubsession::deleteStream(unsigned int, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:363:7<br>    #8 0x4df034 in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1511:19<br>    #9 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #10 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #11 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #12 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #13 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #14 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #15 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #16 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #17 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #18 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #19 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #20 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #21 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #22 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #23 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #24 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #25 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #26 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #27 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #28 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #29 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #30 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #31 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #32 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #33 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #34 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br><br>previously allocated by thread T0 here:<br>    #0 0x4c79ad in operator new[](unsigned long) (/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x4c79ad)<br>    #1 0x4cea73 in OutPacketBuffer::OutPacketBuffer(unsigned int, unsigned int, unsigned int) /home/ubuntu/experiments/live/liveMedia/MediaSink.cpp:122:10<br>    #2 0x5ce23a in MultiFramedRTPSink::setPacketSizes(unsigned int, unsigned int) /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:33:17<br>    #3 0x5ce23a in MultiFramedRTPSink::MultiFramedRTPSink(UsageEnvironment&, Groupsock*, unsigned char, unsigned int, char const*, unsigned int) /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:56:3<br>    #4 0x5a0d44 in MPEG4GenericRTPSink::MPEG4GenericRTPSink(UsageEnvironment&, Groupsock*, unsigned char, unsigned int, char const*, char const*, char const*, unsigned int) /home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:32:5<br>    #5 0x5a1a30 in MPEG4GenericRTPSink::createNew(UsageEnvironment&, Groupsock*, unsigned char, unsigned int, char const*, char const*, char const*, unsigned int) /home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:88:14<br>    #6 0x5f3987 in MatroskaFile::createRTPSinkForTrackNumber(unsigned int, Groupsock*, unsigned char) /home/ubuntu/experiments/live/liveMedia/MatroskaFile.cpp:623:16<br>    #7 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #8 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #9 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #10 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #11 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #12 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #13 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #14 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #15 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #16 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #17 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #18 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #19 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #20 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #21 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #22 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #23 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #24 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #25 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #26 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #27 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #28 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #29 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #30 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #31 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #32 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #33 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22                                                     <br>    #34 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6                                              <br>                                                                                                                                                                <br>previously allocated by thread T0 here:                                                                                                                         <br>    #0 0x4c79ad in operator new[](unsigned long) (/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x4c79ad)                            <br>    #1 0x4cea73 in OutPacketBuffer::OutPacketBuffer(unsigned int, unsigned int, unsigned int) /home/ubuntu/experiments/live/liveMedia/MediaSink.cpp:122:10                           <br>    #2 0x5ce23a in MultiFramedRTPSink::setPacketSizes(unsigned int, unsigned int) /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:33:17<br>    #3 0x5ce23a in MultiFramedRTPSink::MultiFramedRTPSink(UsageEnvironment&, Groupsock*, unsigned char, unsigned int, char const*, unsigned int) /home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:56:3                                         <br>    #4 0x5a0d44 in MPEG4GenericRTPSink::MPEG4GenericRTPSink(UsageEnvironment&, Groupsock*, unsigned char, unsigned int, char const*, char const*, char const*, unsigned int) /home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:32:5  <br>    #5 0x5a1a30 in MPEG4GenericRTPSink::createNew(UsageEnvironment&, Groupsock*, unsigned char, unsigned int, char const*, char const*, char const*, unsigned int) /home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:88:14  <br>    #6 0x5f3987 in MatroskaFile::createRTPSinkForTrackNumber(unsigned int, Groupsock*, unsigned char) /home/ubuntu/experiments/live/liveMedia/MatroskaFile.cpp:623:16   <br>    #7 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6                                                                                     <br>    #8 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17                            <br>    #9 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19            <br>    #10 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3   <br>    #11 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2     <br>    #12 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5 <br>    #13 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41                 <br>    #14 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14                      <br>    #15 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #16 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #17 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #18 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #19 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #20 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #21 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #22 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #23 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #24 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22<br>    #25 0x5ea403 in OnDemandServerMediaSubsession::getStreamParameters(unsigned int, sockaddr_storage const&, Port const&, Port const&, int, unsigned char, unsigned char, TLSState*, sockaddr_storage&, unsigned char&, unsigned char&, Port&, Port&, void*&) /home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:177:6<br>    #26 0x4e008d in RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17<br>    #27 0x4dc0a8 in RTSPServer::RTSPClientConnection::handleRequestBytes(int) /home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19<br>    #28 0x5e695a in GenericMediaServer::ClientConnection::incomingRequestHandler() /home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3<br>    #29 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2<br>    #30 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*) /home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5<br>    #31 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41<br>    #32 0x598cb5 in AC3AudioStreamFramer::samplingRate() /home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14<br>    #33 0x5283f6 in AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*) /home/ubuntu/experiments/live/liveMe<br>dia/AC3AudioFileServerMediaSubsession.cpp:60:22<br><br>SUMMARY: AddressSanitizer: heap-use-after-free (/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x497a94) in __asan_memmove<br>Shadow bytes around the buggy address:<br>  0x10007cc8a8b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa<br>  0x10007cc8a8c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa<br>  0x10007cc8a8d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa<br>  0x10007cc8a8e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa<br>  0x10007cc8a8f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa<br>=>0x10007cc8a900: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd<br>  0x10007cc8a910: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd<br>  0x10007cc8a920: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd<br>  0x10007cc8a930: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd<br>  0x10007cc8a940: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd<br>  0x10007cc8a950: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd<br>Shadow byte legend (one shadow byte represents 8 application bytes):<br>  Addressable:           00<br>  Partially addressable: 01 02 03 04 05 06 07 <br>  Heap left redzone:       fa<br>  Freed heap region:       fd<br>  Stack left redzone:      f1<br>  Stack mid redzone:       f2<br>  Stack right redzone:     f3<br>  Stack after return:      f5<br>  Stack use after scope:   f8<br>  Global redzone:          f9<br>  Global init order:       f6<br>  Poisoned by user:        f7<br>  Container overflow:      fc<br>  Array cookie:            ac<br>  Intra object redzone:    bb<br>  ASan internal:           fe<br>  Left alloca redzone:     ca<br>  Right alloca redzone:    cb<br>  Shadow gap:              cc<br>==90==ABORTING<br></div><div><br></div>--<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kind Regards,</div><div>Jerry Testing</div></div></div></div></div>