Re: [Live-devel] Memory leak in handleCmd_PLAY

2023-06-08 Thread Ross Finlayson
> On Jun 8, 2023, at 11:22 PM, Meng Ruijie wrote: > > We now show you where the memory leak happens as follows. We also attached > the reproduction steps, so that you can reproduce this bug based on the > README. > > > > ==2720== 96 bytes in 1 blocks are definitely lost in loss record

Re: [Live-devel] Memory leak in handleCmd_PLAY

2023-06-08 Thread Ross Finlayson
> On Jun 8, 2023, at 5:03 PM, Meng Ruijie wrote: > > Hi, > > We found one memory leak No you didn’t. You ran “valgrind” on an application that uses our RTSP server implementation. At one point in the program, you exited it (presumably by modifying the code). When you exited the program,

[Live-devel] Memory leak in handleCmd_PLAY

2023-06-08 Thread Meng Ruijie
Hi, We found one memory leak in the function handleCmd_PLAY in live.2023.05.10. Here is the bug report from the valgrind: --- ==1755== Invalid read of size 1 ==1755==at 0x483EF46: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==1755==by 0x4E2FD14: __v

Re: [Live-devel] Memory leak report

2023-05-10 Thread Ross Finlayson
Jie, Thanks for the report. I have just installed a new version (2023-05-10) of the code that fixes this. Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/m

[Live-devel] Memory leak report

2023-05-10 Thread zhudongjie2023
hi all, I found a memory leak in version 2023.0303. The following is my patch, please take a look. Best Regards, Jie diff --git a/liveMedia/RTSPServer.cpp b/liveMedia/RTSPServer.cpp index d649779..1210702 100644 --- a/liveMedia/RTSPServer.cpp +++ b/liveMedia/RTSPServer.cpp @@ -493,6

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-10 Thread Ba Jinsheng
Streaming Media - development & use Subject: Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession - External Email - > On Jan 10, 2022, at 9:18 PM, Ba Jinsheng wrote: > > Unfortunately, in my experimental environment, it looks unlikely that the > objects are delete

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-10 Thread Ross Finlayson
> On Jan 10, 2022, at 9:18 PM, Ba Jinsheng wrote: > > Unfortunately, in my experimental environment, it looks unlikely that the > objects are deleted, even after 60 seconds. If you are running the unmodified LIVE555 server code, then the function GenericMediaServer::ClientSession::liv

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-10 Thread Ba Jinsheng
: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession - External Email - > On Jan 10, 2022, at 7:54 PM, Ba Jinsheng > mailto:bajinsh...@u.nus.edu>> wrote: > > I am not sure if the design is

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ross Finlayson
> On Jan 10, 2022, at 7:54 PM, Ba Jinsheng wrote: > > I am not sure if the design is like this, but it does incur unstopping memory > increasing. > > > OnDemandServerMediaSubsession::getStreamParameters() in > liveMedia/OnDemandServerMediaSubsession.cpp > This function will allocate a new S

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ba Jinsheng
ive-devel On Behalf Of Ross Finlayson Sent: Monday, January 10, 2022 2:06 PM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession - External Email - Unfortunately, reports of memory leaks aren’t worthwhile fo

Re: [Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ross Finlayson
Unfortunately, reports of memory leaks aren’t worthwhile for me to investigate unless you can identify a specific object (class) that is allocated, and not later deallocated. Otherwise I can’t be sure that the heap isn’t just growing due to fragmentation - i.e., not a real memory leak. Ross F

[Live-devel] Memory leak in OnDemandServerMediaSubsession

2022-01-09 Thread Ba Jinsheng
To whom it may concern, I would like to report a memory leak issue in Live555. When sending multiple times of the content in 'command.rtsp' to the live555, the memory usage of live555 significantly increase, and never reduce. (In reality, need to update the session ID dynamically) The initial me

[Live-devel] Memory Leak in MPEGProgramStreamParser

2021-09-07 Thread Ba Jinsheng
Dear Ross Finlayson, I want to report an memory leak bug in the MPEGProgramStreamParser. Sorry, I don't provide poc this time because I can not reproduce it in single request. But in a long time running, the memory would always exceed 3GB and the memory leak is detected by Address Sanitizer an

Re: [Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-15 Thread Ross Finlayson
> On Aug 13, 2021, at 6:05 PM, Ba Jinsheng wrote: > > But would delete[] be better? Yes (although in this case it doesn’t really matter, because the ‘objects’ being allocated in an array are just ‘char’s). But I’ve released a new version (2021.08.14) that fixes this. Ross Finlayson Live Ne

Re: [Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-13 Thread Ba Jinsheng
- From: live-devel On Behalf Of Ross Finlayson Sent: Saturday, August 14, 2021 12:48 AM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory Leak in AC3AudioStreamFramer - External Email - Thanks again for the report. This bug has also been fixed in

Re: [Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-13 Thread Ross Finlayson
Thanks again for the report. This bug has also been fixed in the latest “LIVE555 Streaming Media” release (2021.08.13). Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com http://lists.

[Live-devel] Memory Leak in AC3AudioStreamFramer

2021-08-12 Thread Ba Jinsheng
Dear Ross Finlayson, Sorry for many emails and thanks for your reply. I want to report another memory leak bug in the AC3AudioStreamFramer. In liveMedia/AC3AudioStreamFramer.cpp:306, fSavedFrame pointer is assigned to a new allocated heap memory. There are two delete[] operations to free this

Re: [Live-devel] [live-devel] memory leak using scheduledelayedtask

2020-05-11 Thread Ross Finlayson
Once again, you’re going to have to figure this out yourself. In particular, you should check: - What happens if you use the unmodified “LIVE555 Proxy Server” code? - What happens if your application contains only the code that you’ve shown below (without *any* “LIVE555 Proxy Serv

[Live-devel] [live-devel] memory leak using scheduledelayedtask

2020-05-11 Thread Siddhant Agarwal
Hi, I am using scheduleDelayedTask to execute a function dummytask repeatedly. Code: void dummytask() { . . . env->taskScheduler().scheduleDelayedTask(uSecsToDelay, (TaskFunc*)dummyTask, NULL); } int main() { . . . dummytask(); env->taskScheduler().doEve

Re: [Live-devel] Memory Leak Occurs.

2018-02-26 Thread Ross Finlayson
There’s no memory leak here, because “setSDPLinesFromRTPSink()” is called (from "OnDemandServerMediaSubsession::sdpLines()”) only when “fSDPLines” is NULL. (Note line 60 of “OnDemandServerMediaSubsession.cpp”.) Ross Finlayson Live Networks, Inc. http://www.live555.com/ __

[Live-devel] Memory Leak Occurs.

2018-02-25 Thread 변규석
1. Case Description. Leaks occur when requesting the same rtsp token at the same time. (The same rtsp token means the same url.) 2. Modification code. original code. void OnDemandServerMediaSubsession ::setSDPLinesFromRTPSink(RTPSink* rtpSink, FramedSource* inputSource, unsigned estBitrate) { ..

Re: [Live-devel] Memory leak in ProxyServerMediaSession

2015-07-30 Thread Ross Finlayson
Thanks for the report. This is now fixed in the latest version (2015.07.31) of the “LIVE555 Streaming Media” code, released just now. Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com h

[Live-devel] Memory leak in ProxyServerMediaSession

2015-07-30 Thread Dnyanesh Gate
Hi, Found a memory leak in class ProxyServerMediaSession. This leak grows with more number of cameras registered to live555ProxyServer. class PresentationTimeSessionNormalizer is derived class of Medium. So that whenever object of class PresentationTimeSessionNormalizer is created, it creates its

Re: [Live-devel] Memory leak detected

2013-07-13 Thread Ross Finlayson
Jianliang, Thanks for the report. Yes, you're correct - this is a memory leak (because response handlers should be deleting the 'response string'). THis will be fixed in the next release of the software. Ross Finlayson Live Networks, Inc. http://www.live555.com/ _

[Live-devel] Memory leak detected

2013-07-12 Thread Jianliang Zhang
Memory leak detected at RTSPClient::responseHandlerForHTTP_GET1(int responseCode, char* responseString) for the latest release version (2013-07-03). The repsonseString isn't deleted. ___ live-devel mailing list live-devel@lists.live555.com http://list

Re: [Live-devel] memory leak in RTSPClient::handleRequestError()

2013-02-28 Thread Ross Finlayson
> I'm developing a RTSP client application. While testing I've found a possible > memory leak in RTSPClient::handleRequestError(). While calling the handler > there is a string duplication of the error string. No, there's no memory leak here. In *all* calls to a RTSP "responseHandler" (includi

[Live-devel] memory leak in RTSPClient::handleRequestError()

2013-02-28 Thread Schoenstedt, Holger
Hello, I'm developing a RTSP client application. While testing I've found a possible memory leak in RTSPClient::handleRequestError(). While calling the handler there is a string duplication of the error string. IMHO this string should be freed inside RTSPClient::handleRequestError() after the

Re: [Live-devel] memory leak in RTSPClient when SETUP is processed

2012-01-27 Thread Ross Finlayson
> When the RTSPClient execute SETUP request, the sessionId is stored in the > MediaSubSession. And it gets delete[]d later, when the RTSPClient does a "TEARDOWN". So this isn't really a memory leak. However, I can see why "valgrind" might get confused by this. The "sessionId" field in "Media

[Live-devel] memory leak in RTSPClient when SETUP is processed

2012-01-27 Thread PROMONET Michel
Hi Ross, When the RTSPClient execute SETUP request, the sessionId is stored in the MediaSubSession. 36 bytes in 4 blocks are definitely lost in loss record 469 of 573 (see: http://valgrind.org/docs/manual/mc-manual.html#mc-manual.leaks) at 0x4C27939: operator new[](unsign

Re: [Live-devel] Memory leak in BasicTaskScheduler0::scheduleDelayedTask

2011-01-03 Thread Ross Finlayson
It seems to be memory leak in BasicTaskScheduler0::scheduleDelayedTask. No there's not. AlarmHandler* alarmHandler = new AlarmHandler(proc, clientData, timeToDelay); // here! where is 'delete' It gets deleted later, when the handler gets called. (Note the "delete this" in the implement

[Live-devel] Memory leak in BasicTaskScheduler0::s cheduleDelayedTask

2011-01-03 Thread 정연철
Thanks for your good job. It seems to be memory leak in BasicTaskScheduler0::scheduleDelayedTask. just i guess, check it out. AlarmHandler* alarmHandler = new AlarmHandler(proc, clientData, timeToDelay); // here! where is 'delete' fDelayQueue.addEntry(alarmHandler);

Re: [Live-devel] memory leak

2010-11-02 Thread Ross Finlayson
and another question. what about MediaSubSession::sessionId. it was created was strDup. and where to delete it. This field is not managed by "MediSubsession" itself. Instead, it is assigned by "RTSPClient" while performing the RTSP "SETUP" command, and is deleted automatically later (again, b

Re: [Live-devel] memory leak

2010-11-02 Thread 44072429
:06 PM To: "LIVE555 Streaming Media - development & use"; Subject: Re: [Live-devel] memory leak >m_pUsageEnvironment = BasicUsageEnvironment::createNew(*m_pTaskScheduler); >if(m_pUsageEnvironment == NULL) >{ >service_error.init(service_error_type_failed,"BasicUsageE

Re: [Live-devel] memory leak

2010-11-02 Thread Ross Finlayson
m_pUsageEnvironment = BasicUsageEnvironment::createNew(*m_pTaskScheduler); if(m_pUsageEnvironment == NULL) { service_error.init(service_error_type_failed,"BasicUsageEnvironment::createNew failed"); return service_error; } and . how to delete this m_pUsageEnvironment; Objects of class "UsageEnv

Re: [Live-devel] memory leak

2010-11-02 Thread 44072429
nvironment; -- Original -- From: "Ross Finlayson"; Date: Tue, Nov 2, 2010 05:10 PM To: "LIVE555 Streaming Media - development & use"; Subject: Re: [Live-devel] memory leak >i don't know how to delete your variant. >and i saw ma

Re: [Live-devel] memory leak

2010-11-02 Thread Ross Finlayson
i don't know how to delete your variant. and i saw many strDup string.wouldn't delete at all. why are you doing this. or am i wrong usage? I'm sorry, but I don't really understand your question. Can you give a specific example of something that you think is a memory leak? -- Ross Finlayson Liv

[Live-devel] memory leak

2010-11-02 Thread 44072429
hi,dear friend. i don't know how to delete your variant. and i saw many strDup string.wouldn't delete at all. why are you doing this. or am i wrong usage?___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/list

Re: [Live-devel] memory leak using tcp

2010-06-11 Thread Ross Finlayson
Our simple solution for this is to prevent recreating the socket hash table in lookupSocketDescriptor when createIfNotFound is set to false and exiting with NULL before socketHashTable is called. OK, I think I have fixed this now in the latest release of the code (2010.06.11). -- Ross Finlay

Re: [Live-devel] memory leak using tcp

2010-06-11 Thread Alexandr Němec
Live-devel] memory leak using tcp Hi, i built a RTSP-client with the latest source codes based on the openRTSP-example to receive H.264, MPEG4 and MJPEG-Streams. Using UDP, everything works fine and without memory leaks, but using TCP, there are four small memory leaks as reported earlier by Kami

Re: [Live-devel] memory leak using tcp

2010-06-11 Thread Alexandr Němec
ail/live-devel/2005-September/003174.html issue I could not find any answer or solution neither. Best regards Alex __ Od: "Ross Finlayson" Komu: LIVE555 Streaming Media - development & use Datum: 11.06.2010 04:31 Předmět:

Re: [Live-devel] memory leak using tcp

2010-06-10 Thread Ross Finlayson
i built a RTSP-client with the latest source codes based on the openRTSP-example to receive H.264, MPEG4 and MJPEG-Streams. Using UDP, everything works fine and without memory leaks, but using TCP, there are four small memory leaks as reported earlier by Kamil in the following thread: http://l

[Live-devel] memory leak using tcp

2010-06-10 Thread danielda
Hi, i built a RTSP-client with the latest source codes based on the openRTSP-example to receive H.264, MPEG4 and MJPEG-Streams. Using UDP, everything works fine and without memory leaks, but using TCP, there are four small memory leaks as reported earlier by Kamil in the following thread: http

Re: [Live-devel] Memory leak on closing client and sessions

2009-10-23 Thread Ross Finlayson
I created simple video stream (mpeg4) and I'm using FileSink as default sink. Everything is fine until I try to end all sessions and streaming. Everything ends and every subsession and session is closed but there still apears to be memory leak somwhere. I'm opening the stream like this: 1. Get

[Live-devel] Memory leak on closing client and sessions

2009-10-23 Thread Dario
Hi. I created simple video stream (mpeg4) and I'm using FileSink as default sink. Everything is fine until I try to end all sessions and streaming. Everything ends and every subsession and session is closed but there still apears to be memory leak somwhere. I'm opening the stream like this: 1.

Re: [Live-devel] Memory leak

2009-07-26 Thread Ross Finlayson
In teardownMediaSubsession in RTSPClient, the subsession's sessionId variable is deleted and reset. However *only if* the teardown succeeds. If the teardown fails and the MediaSubsession is subsequently closed using the proper method, then the sessionId will not be freed. I suggest also del

[Live-devel] Memory leak

2009-07-25 Thread Rawling, Stuart
Hi Ross, In teardownMediaSubsession in RTSPClient, the subsession¹s sessionId variable is deleted and reset. However *only if* the teardown succeeds. If the teardown fails and the MediaSubsession is subsequently closed using the proper method, then the sessionId will not be freed. I suggest als

Re: [Live-devel] Memory Leak while exiting from doEventLoop

2008-10-09 Thread Soumya P N
exiting from that loop,,,it will be great... Thanks, Soumya -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ross Finlayson Sent: Wednesday, October 08, 2008 7:47 PM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Memory Leak w

Re: [Live-devel] Memory Leak while exiting from doEventLoop

2008-10-08 Thread Ross Finlayson
In the downloaded code the doEventLoop() was not exiting and it was a infinite loop. Now i changed the code so that it will exit on keyboard hit. Then also it is not exiting properly. What do you mean "not exiting properly"? Is "doEventLoop()" (when you add a 'watch variable' returning, or n

[Live-devel] Memory Leak while exiting from doEventLoop

2008-10-08 Thread Soumya P N
Hi, In the downloaded code the doEventLoop() was not exiting and it was a infinite loop. Now i changed the code so that it will exit on keyboard hit. Then also it is not exiting properly.I think it is because of some memory leaks. Can anyone give an idea about the resources to be freed while exitin

Re: [Live-devel] memory leak? some questions

2007-09-01 Thread Ross Finlayson
>1) why we have make sure the fRTPSink, fRTCPInstance, fRTPgs, >fRTCPgs is not NULL. After the SETUP, all of them must have been >allocated. No, not necessarily. If we are streaming via raw UDP (instead of via RTP/UDP), then "fRTPSink" and "fRTCPInstance" will be NULL (with "fUDPSink" being n

[Live-devel] memory leak? some questions

2007-09-01 Thread pan_xiaolei
I was puzzled when I'v read the following code: OnDemandServerMediaSubsession.cpp:447 StreamState::startPlaying() if (dests- >isTCP) { // Change RTP and RTCP to use the TCP socket instead of UDP: if (fRTPSink != NULL) { fRTPSink- >addStreamSocket(dests- >tcpSocketNum, dests- >