[Live-devel] UAF-live.2023.05.10

jerry testing jerrytstng at gmail.com
Tue Jun 6 19:36:52 PDT 2023


Hello,

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:

==90==ERROR: AddressSanitizer: heap-use-after-free on address
0x7fffe6494810 at pc 0x000000497a95 bp 0x7ffff35dd380 sp 0x7ffff35dcb48

WRITE of size 270 at 0x7fffe6494810 thread T0

    #0 0x497a94 in __asan_memmove
(/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x497a94)

    #1 0x6066a0 in StreamParser::testBytes(unsigned char*, unsigned int)
/home/ubuntu/experiments/live/liveMedia/./StreamParser.hh:96:5

    #2 0x6066a0 in StreamParser::getBytes(unsigned char*, unsigned int)
/home/ubuntu/experiments/live/liveMedia/./StreamParser.hh:90:5

    #3 0x6066a0 in MatroskaFileParser::deliverFrameBytes()
/home/ubuntu/experiments/live/liveMedia/MatroskaFileParser.cpp:1251:7

    #4 0x5fa759 in MatroskaFileParser::parse()
/home/ubuntu/experiments/live/liveMedia/MatroskaFileParser.cpp:184:4

    #5 0x5f8fda in MatroskaFileParser::continueParsing()
/home/ubuntu/experiments/live/liveMedia/MatroskaFileParser.cpp:111:10

    #6 0x5cf7b4 in MultiFramedRTPSink::packFrame()
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:223:14

    #7 0x5ceea4 in MultiFramedRTPSink::buildAndSendPacket(unsigned char)
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:199:3

    #8 0x5ceea4 in MultiFramedRTPSink::continuePlaying()
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:159:3

    #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

    #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

    #11 0x4e3aa0 in
RTSPServer::RTSPClientSession::handleCmd_PLAY(RTSPServer::RTSPClientConnection*,
ServerMediaSubsession*, char const*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1943:36
    #12 0x4e1b7e in
RTSPServer::RTSPClientSession::handleCmd_withinSession(RTSPServer::RTSPClientConnection*,
char const*, char const*, char const*, char const*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp

    #13 0x4dc30d in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:996:22
    #14 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #15 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #16 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #17 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #18 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #19 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #21 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #22 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #23 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #24 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #25 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #26 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #27 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #28 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #30 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #31 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #32 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #33 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #34 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #35 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #36 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #37 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #39 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #40 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #41 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #42 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #43 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #44 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #45 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #46 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #48 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #49 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #50 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #51 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #52 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #53 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #54 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #55 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #57 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #58 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #59 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #60 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #61 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #62 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #63 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #64 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #66 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #67 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #68 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #69 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #70 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #71 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #72 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #73 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #75 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #76 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #77 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #78 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #79 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #80 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #81 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #82 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #84 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #85 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #86 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #87 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #88 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #89 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #90 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #91 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #93 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #94 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #95 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #96 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #97 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #98 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #99 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #100 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #102 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #103 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #104 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #105 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #106 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #107 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #108 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #109 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #111 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #112 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #113 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #114 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #115 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #116 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #117 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #118 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #120 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #121 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #122 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #123 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #124 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #125 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #126 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #127 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #129 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #130 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #131 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #132 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #133 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #134 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #135 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #136 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22

    #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
    #138 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #139 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #140 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #141 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #142 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #143 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #144 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #145 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #147 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #148 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #149 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #150 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #151 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #152 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #153 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #154 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #156 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #157 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #158 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #159 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #160 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #161 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #162 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #163 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #165 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #166 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #167 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #168 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #169 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #170 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #171 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #172 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #174 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #175 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #176 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #177 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #178 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #179 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #180 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #181 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #183 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #184 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #185 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #186 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #187 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #188 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #189 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #190 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #192 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #193 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #194 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #195 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #196 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #197 0x4ccec4 in main
/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer.cpp:462:24

0x7fffe6494810 is located 16 bytes inside of 300564-byte region
[0x7fffe6494800,0x7fffe64dde14)
freed by thread T0 here:
    #0 0x4c81fd in operator delete[](void*)
(/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x4c81fd)
    #1 0x5ce366 in MultiFramedRTPSink::~MultiFramedRTPSink()
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:60:3
    #2 0x5a198b in MPEG4GenericRTPSink::~MPEG4GenericRTPSink()
/home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:79:1
    #3 0x5a198b in MPEG4GenericRTPSink::~MPEG4GenericRTPSink()
/home/ubuntu/experiments/live/liveMedia/MPEG4GenericRTPSink.cpp:74:45
    #4 0x5edd33 in StreamState::reclaim()
/home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:640:3
    #5 0x5ee06f in StreamState::~StreamState()
/home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:519:3
    #6 0x5ee06f in StreamState::~StreamState()
/home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:518:29
    #7 0x5ecd51 in OnDemandServerMediaSubsession::deleteStream(unsigned
int, void*&)
/home/ubuntu/experiments/live/liveMedia/OnDemandServerMediaSubsession.cpp:363:7
    #8 0x4df034 in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1511:19
    #9 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #10 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #11 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #12 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #13 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #14 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #15 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #17 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #18 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #19 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #20 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #21 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #22 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #23 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #24 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #26 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #27 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #28 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #29 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #30 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #31 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #32 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #33 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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

previously allocated by thread T0 here:
    #0 0x4c79ad in operator new[](unsigned long)
(/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x4c79ad)
    #1 0x4cea73 in OutPacketBuffer::OutPacketBuffer(unsigned int, unsigned
int, unsigned int)
/home/ubuntu/experiments/live/liveMedia/MediaSink.cpp:122:10
    #2 0x5ce23a in MultiFramedRTPSink::setPacketSizes(unsigned int,
unsigned int)
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:33:17
    #3 0x5ce23a in
MultiFramedRTPSink::MultiFramedRTPSink(UsageEnvironment&, Groupsock*,
unsigned char, unsigned int, char const*, unsigned int)
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:56:3
    #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
    #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
    #6 0x5f3987 in MatroskaFile::createRTPSinkForTrackNumber(unsigned int,
Groupsock*, unsigned char)
/home/ubuntu/experiments/live/liveMedia/MatroskaFile.cpp:623:16
    #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
    #8 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #9 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #10 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #11 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #12 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #13 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #14 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #15 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #17 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #18 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #19 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #20 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #21 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #22 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #23 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #24 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #26 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #27 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #28 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #29 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #30 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #31 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #32 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #33 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22

    #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




previously allocated by thread T0 here:


    #0 0x4c79ad in operator new[](unsigned long)
(/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x4c79ad)

    #1 0x4cea73 in OutPacketBuffer::OutPacketBuffer(unsigned int, unsigned
int, unsigned int)
/home/ubuntu/experiments/live/liveMedia/MediaSink.cpp:122:10

    #2 0x5ce23a in MultiFramedRTPSink::setPacketSizes(unsigned int,
unsigned int)
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:33:17
    #3 0x5ce23a in
MultiFramedRTPSink::MultiFramedRTPSink(UsageEnvironment&, Groupsock*,
unsigned char, unsigned int, char const*, unsigned int)
/home/ubuntu/experiments/live/liveMedia/MultiFramedRTPSink.cpp:56:3

    #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
    #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
    #6 0x5f3987 in MatroskaFile::createRTPSinkForTrackNumber(unsigned int,
Groupsock*, unsigned char)
/home/ubuntu/experiments/live/liveMedia/MatroskaFile.cpp:623:16
    #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


    #8 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17

    #9 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #10 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #11 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2

    #12 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5

    #13 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41

    #14 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14

    #15 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #17 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #18 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #19 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #20 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #21 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #22 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #23 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #24 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*)
/home/ubuntu/experiments/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp:60:22
    #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
    #26 0x4e008d in
RTSPServer::RTSPClientSession::handleCmd_SETUP_afterLookup2(ServerMediaSession*)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:1585:17
    #27 0x4dc0a8 in
RTSPServer::RTSPClientConnection::handleRequestBytes(int)
/home/ubuntu/experiments/live/liveMedia/RTSPServer.cpp:887:19
    #28 0x5e695a in
GenericMediaServer::ClientConnection::incomingRequestHandler()
/home/ubuntu/experiments/live/liveMedia/GenericMediaServer.cpp:324:3
    #29 0x649f55 in BasicTaskScheduler::SingleStep(unsigned int)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler.cpp:171:2
    #30 0x6524aa in BasicTaskScheduler0::doEventLoop(char volatile*)
/home/ubuntu/experiments/live/BasicUsageEnvironment/BasicTaskScheduler0.cpp:82:5
    #31 0x598cb5 in AC3AudioStreamParser::readAndSaveAFrame()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:314:41
    #32 0x598cb5 in AC3AudioStreamFramer::samplingRate()
/home/ubuntu/experiments/live/liveMedia/AC3AudioStreamFramer.cpp:112:14
    #33 0x5283f6 in
AC3AudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned
char, FramedSource*) /home/ubuntu/experiments/live/liveMe
dia/AC3AudioFileServerMediaSubsession.cpp:60:22

SUMMARY: AddressSanitizer: heap-use-after-free
(/home/ubuntu/experiments/live/testProgs/testOnDemandRTSPServer+0x497a94)
in __asan_memmove
Shadow bytes around the buggy address:
  0x10007cc8a8b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x10007cc8a8c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x10007cc8a8d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x10007cc8a8e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x10007cc8a8f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x10007cc8a900: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x10007cc8a910: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x10007cc8a920: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x10007cc8a930: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x10007cc8a940: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x10007cc8a950: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==90==ABORTING

--
Kind Regards,
Jerry Testing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20230607/d81f0284/attachment-0001.htm>


More information about the live-devel mailing list