|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1229810 ] Memory leak in curl_easy_perform method
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 04 Aug 2005 01:01:58 -0700
Bugs item #1229810, was opened at 2005-06-29 18:18
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
I am currently using the libcurl library to perform file
I have found memory leaks while using the
I attach the report summary generated by Insure tool.
On the other hand, I indicate the libcurl version (curl -V) I
************************ curl -V ********************************
Could anybody tell me if this bug is fixed in the latest
Thanks in advance for all your support.
Julio Garvía
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
Thanks for your report, your details and your hard work. I
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
According to your comments I think the subject is also
I will investigate if the problem is in 'libc' or even
Anyways, it has been a pleasure to work with you and
Thanks a lot for all your work.
Best wishes,
Julio Garvía.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I know you've reported ps uax outputs. But you did this in
That may not suit you, but that is as far as my effort goes.
I would suggest that your libc version has a memory leak or
But as far as this bug tracker and libcurl goes, this is not
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
As I mentioned in previous messages, the key to alert us
That is, after running the command line process (in UNIX)
Moreover, running the process in UNIX and compiling with
Additionally, Insure also points the following line as
No more reports are generated by Insure.
Julio Garvía
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Thanks for your work on making test programs!
I made it iterate three times with a full source dir each
I didn't detect any leak in libcurl (using the built-in
I then re-ran it with valgrind with the same three
So, whatever you see I can't see that libcurl is to blame
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
O.K.
If you use '-i' command line option, you could specify the
PS: You can terminate the program (in a controlled way) by
Regards,
Julio Garvía
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Can't you make the example run for a limited number of
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Hello,
After a long time, I am here again with the memory leak
Well, I have prepared another command line program to
If you execute this process (in UNIX) you will see how 'ps
I have check it with the following scenario:
2. Inserts entries to be trasnferred in the source path.
3. Checks the memory reports with 'ps axu'.
PS: I have run MyFtp process during two days.
PS: Affected files are attached in MyFtp_01.tar.gz
Hopefully, it could help us to determine if there is a
With best regards,
Julio Garvía
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Certainly, the points mentioned by valgrind are not reported
Anyways, I continue trying to know why the memory is
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Certainly, the points mentioned by valgrind are not reported
Anyways, I continue trying to know why the memory is
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Certainly, the points mentioned by valgrind are not reported
Anyways, I continue trying to know why the memory is
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Your program never ends so whenever it is stopped of course
If you make it loop only N laps, does it still show those
But feel free to prove me wrong!
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Just one appointment:
Executing the program I attached (in Linux) using 'valgrind'
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Just one appointment:
Executing the program I attached (in Linux) using 'valgrind'
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Yes it certainly sounds like a leak. I just can't see
I'm puzzled why your insure tool reports a leak when my
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Not so far,
but 'ps axu' is telling that memory is increasing ...
I will continue investigating.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Any news?
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Ok, I modified the while(1) to become a counter=10;
Not a single byte leaks...
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Hi again,
I have prepared an example for uploading the same file in an
You could just modify the Makefile (LIBCURLDIR and
When you execute 'MyFtp' application the same file wil be
Then if you execute periodically a 'ps' (I have also attach
Best regards,
Julio Garvía
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
but I should mention that I don't think any fixes related to
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Daily snapshots:
(and my recent tru64-related memdebug things will be
http://cool.haxx.se/curl-daily/
How to get it off CVS:
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
O.K.
I will do what you said, but, Could you tell me where can I
Hopefully we wil solve this "trouble" soon :-)
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
built just now:
$ ./src/curl -V
This is curl on tru64, with --enable-debug (I've just made
It shows _no_ leak at all. When getting a file over FTP, I
I guess now is the time where you show me exactly what you
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
libcurl features a DNS cache where all successful name
The call to Curl_cache_addr() adds the resolved data to the
If the entry remains in the cache until the handle is
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
Yes, I call 'curl_easy_cleanup()' as well as
Well, let me show where I guess there is a memory leak
Ciao,
Julio Garvía
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Did you really call curl_easy_cleanup() too?
----------------------------------------------------------------------
Comment By: jgarvia (jgarvia)
Message:
I have just installed the new library version and the same
Regarding the Insure report, I attach the new one.
So, analyzing the second reported chunk (in the latest
Please, if you still need an example, tell me and I will
Thanks.
Julio Garvía
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
First, I must admit I don't understand the report. What
Can't you simply build 7.14.0 and test to see if the leak is
Can you show us an example program (that leaks this memory)
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info