bugzilla-daemon at bugzilla.mindrot.org
2010-May-14 14:53 UTC
[Bug 1771] New: sftp heap memory leak
https://bugzilla.mindrot.org/show_bug.cgi?id=1771 Summary: sftp heap memory leak Product: Portable OpenSSH Version: 5.5p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: sftp AssignedTo: unassigned-bugs at mindrot.org ReportedBy: anicka at suse.cz Created attachment 1849 --> https://bugzilla.mindrot.org/attachment.cgi?id=1849 fix for sftp memory leak sftp client has a memory leak, steps to reproduce: 1. echo "" | awk '{for(i=0; i <1000000;i++) print "-cd an_not_exist_directory"}' > sftp.cmd (run on server) 2. sftp -b sftp.cmd root at server (run on client) 3. watch heap growing (ie. "pmap pid | grep heap" on Linux): 555555668000 441368K 441368K 441368K rw-p [heap] 555555668000 468480K 468464K 468464K rw-p [heap] 555555668000 486600K 486484K 486484K rw-p [heap] 555555668000 657764K 657764K 657764K rw-p [heap] 555555668000 699912K 699912K 699912K rw-p [heap] 555555668000 751312K 751260K 751260K rw-p [heap] 555555668000 788448K 788448K 788448K rw-p [heap] 555555668000 838304K 838188K 838188K rw-p [heap] 555555668000 916176K 916176K 916176K rw-p [heap] 555555668000 946888K 946876K 946876K rw-p [heap] 555555668000 972972K 972960K 972960K rw-p [heap] 555555668000 995076K 995076K 995076K rw-p [heap] 555555668000 1021032K 1020940K 1020940K rw-p [heap] 555555668000 1044804K 1044804K 1044804K rw-p [heap] 555555668000 1337784K 1337784K 1337784K rw-p [heap] 555555668000 1389828K 1389828K 1389828K rw-p [heap] I am attaching patch that fixes the problem. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jun-18 04:43 UTC
[Bug 1771] sftp heap memory leak
https://bugzilla.mindrot.org/show_bug.cgi?id=1771 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org Blocks| |1708 Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Damien Miller <djm at mindrot.org> --- Fix applied, this will be in OpenSSH-5.6. Thanks for the nice testcase and patch. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Jan-24 01:33 UTC
[Bug 1771] sftp heap memory leak
https://bugzilla.mindrot.org/show_bug.cgi?id=1771 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Damien Miller <djm at mindrot.org> 2011-01-24 12:33:38 EST --- Move resolved bugs to CLOSED after 5.7 release -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.