Bug #62849 | Memory leak using SELECT statements in a multi-threaded application. | ||
---|---|---|---|
Submitted: | 20 Oct 2011 16:59 | Modified: | 24 Jan 2013 18:20 |
Reporter: | Edwin Vandamme | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S2 (Serious) |
Version: | 5.0.45, 5.0.77, 5.5.16 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | memory leak, multi threaded |
If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.
To split a large file:
- On *nix platforms use the split command e.g.
split -b 50MB <my_large_archive> <my_split_archive_prefix>
- On windows use WinZip or a similar utility to split the large file
[20 Oct 2011 17:02]
Edwin Vandamme
[22 Oct 2011 17:58]
Edwin Vandamme
Some logs from a recent test
Attachment: mysql.error.report.logs.tar.gz (application/x-gzip, text), 3.84 KiB.
[5 Nov 2011 9:47]
Edwin Vandamme
Logs and code as mentioned above (minus log files as they are to big)
Attachment: mysql.error.report.002.tar.gz (application/x-gzip, text), 27.63 KiB.
[16 Nov 2011 7:01]
Edwin Vandamme
1st run with valgrind as mentioned above.
Attachment: mysql.error.report.003.tar.gz (application/x-gzip, text), 194.31 KiB.
[16 Nov 2011 7:02]
Edwin Vandamme
2th run with valgrind as mentioned above.
Attachment: mysql.error.report.004.tar.gz (application/x-gzip, text), 290.09 KiB.
[24 Sep 2012 11:21]
Edwin Vandamme
Last test results with valgrind errors reported.
Attachment: mysql.error.report.005.tar.gz (application/x-gzip, text), 26.62 KiB.
[24 Sep 2012 13:31]
Shane Bester
whoops, does this program leak memory ?
Attachment: bug62849.c (text/plain), 5.85 KiB.
[29 Sep 2012 11:18]
Edwin Vandamme
bug62849 results after 72 hours
Attachment: stat.tot (application/octet-stream, text), 624 bytes.
[30 Sep 2012 16:35]
Edwin Vandamme
Modified bug62849.c to read memory usage from stat file.
Attachment: bug62849_1.c (application/octet-stream, text), 10.85 KiB.
[3 Oct 2012 5:24]
Shane Bester
5.5.27 client libs, 480 million queries, no leaking seen.
Attachment: no_leaks.txt (text/plain), 9.16 KiB.