curl-library
libcurl memleak
Date: Mon, 28 Oct 2002 15:49:34 -0500
Hi,
I'm the same person asking about compiling from CVS earlier today (get back
to that later). For now, I just downloaded curl-7.10.2-pre1 and compiled
it. I compiled like so:
$ CFLAGS="-g -O2 -march=i686" ./configure --enable-debug
$ make
$ make install
Recompiled my program using the curl_memdebug call. I found that the
library installed with make install did not include this call so I linked
my program against memdebug.o from the curl source tree. Is this correct?
After running my program, I analyzed the dump and here is the beginning
(too big to send to list):
Not recognized prefix line:
Not recognized prefix line: = 0x815621c
Not recognized prefix line: http.c:163 free(0x816b7dc)
Not recognized prefix line:
Not recognized prefix line: 0x810124c
Not recognized prefix line: list.c:49 malloc(16) = 0x83be474
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x83e8c54)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x83e8964)
Close without open: FD url.c:1140 sclose(91)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x83e8cb4)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x83e83ac)
Not recognized prefix line: url.c:1140 sclose(107)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8492b14)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x849220c)
FREE ERROR: No memory allocated: MEM getinfo.c:64 free(0x8af682c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8140da4)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x8140ab4)
Close without open: FD url.c:1140 sclose(27)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8140e04)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x81404fc)
FREE ERROR: No memory allocated: MEM getinfo.c:64 free(0x80d6b1c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8140d14)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x812b77c)
Close without open: FD url.c:1140 sclose(25)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8140d74)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x812b1c4)
FREE ERROR: No memory allocated: MEM getinfo.c:64 free(0x80d6abc)
Not recognized prefix line: free(0x8a37454)
FREE ERROR: No memory allocated: MEM http.c:162 free(0x8a374e4)
FREE ERROR: No memory allocated: MEM http.c:163 free(0x8a37244)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8492a24)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x847d48c)
Close without open: FD url.c:1140 sclose(105)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8492a84)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x847ced4)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x84bd244)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x84bcf54)
Close without open: FD url.c:1140 sclose(111)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x84bd2a4)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x84bc99c)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x8468014)
Close without open: FD url.c:1140 sclose(103)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x8467a5c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x84e79d4)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x84e76e4)
Close without open: FD url.c:1140 sclose(115)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x84e7a34)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x84e712c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x84133e4)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x84130f4)
Close without open: FD url.c:1140 sclose(95)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8413444)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x8412b3c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8468324)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x808193c)
Close without open: FD url.c:1140 sclose(9)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8468384)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x8081384)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x8116444)
Close without open: FD url.c:1140 sclose(23)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x8115e8c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x84bd1b4)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x84a7c1c)
Close without open: FD url.c:1140 sclose(109)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x84bd214)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x84a7664)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x82aa42c)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x82aa13c)
Close without open: FD url.c:1140 sclose(61)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x82aa48c)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x82a9b84)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x833ec44)
Close without open: FD url.c:1140 sclose(75)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x833e68c)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x816b74c)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x816b3ac)
Close without open: FD url.c:1140 sclose(31)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x816b7ac)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x816adf4)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x815621c)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x80d685c)
Close without open: FD url.c:1140 sclose(17)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x80d62a4)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x816b6bc)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x80ebcb4)
Close without open: FD url.c:1140 sclose(19)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x816b71c)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x80eb6fc)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8195edc)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x8195bec)
Close without open: FD url.c:1140 sclose(35)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x8195f3c)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x8195634)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8413354)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x83fddbc)
Close without open: FD url.c:1140 sclose(93)
FREE ERROR: No memory allocated: MEM url.c:1157 free(0x84133b4)
FREE ERROR: No memory allocated: MEM url.c:1162 free(0x83fd804)
FREE ERROR: No memory allocated: MEM url.c:1124 free(0x8195e4c)
FREE ERROR: No memory allocated: MEM url.c:1130 free(0x81808b4)
Close without open: FD url.c:1140 sclose(33)
and the end:
At 8b017cc, there's 160 bytes.
allocated by hostip.c:534
At 8b2739c, there's 160 bytes.
allocated by hostip.c:534
At 8779c3c, there's 160 bytes.
allocated by hostip.c:534
At 8b2405c, there's 160 bytes.
allocated by hostip.c:534
At 8b9144c, there's 160 bytes.
allocated by hostip.c:534
At 8bc5e9c, there's 160 bytes.
allocated by hostip.c:534
At 8b9e8fc, there's 160 bytes.
allocated by hostip.c:534
At 8bbbc6c, there's 160 bytes.
allocated by hostip.c:534
At 8b9b5bc, there's 160 bytes.
allocated by hostip.c:534
At 8b422dc, there's 160 bytes.
allocated by hostip.c:534
At 8bccccc, there's 160 bytes.
allocated by hostip.c:534
At 40303dd4, there's 160 bytes.
allocated by hostip.c:534
At 8afaafc, there's 160 bytes.
allocated by hostip.c:534
At 8b0387c, there's 160 bytes.
allocated by hostip.c:534
At 8bb2d9c, there's 160 bytes.
allocated by hostip.c:534
At 8610c84, there's 160 bytes.
allocated by hostip.c:534
At 8b94c1c, there's 160 bytes.
allocated by hostip.c:534
At 8b4372c, there's 160 bytes.
allocated by hostip.c:534
Open file descriptor created at connect.c:581
Open file descriptor created at connect.c:581
Open file descriptor created at connect.c:581
Open file descriptor created at connect.c:581
Open file descriptor created at connect.c:581
Open file descriptor created at connect.c:581
Open file descriptor created at connect.c:581
It looks like some of the lines got corrupted. Maybe is writing to this
file not serialized? My program is multithreaded.
Avery Fay
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-28