Bug 102103 - sftp connection fails with out of memory error
Summary: sftp connection fails with out of memory error
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: sftp (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dawit Alemayehu
URL:
Keywords:
: 104740 105114 105417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-21 16:56 UTC by Sebastian Strand
Modified: 2005-05-10 19:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
sftp34.diff (27.19 KB, text/x-diff)
2005-04-26 20:16 UTC, Dawit Alemayehu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Strand 2005-03-21 16:56:13 UTC
Version:           unknown (using KDE 3.4.0, Gentoo)
Compiler:          gcc version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
OS:                Linux (x86_64) release 2.6.11-ck2

When trying to open an sftp connection I get this error:

An error occurred while loading sftp://user@host:
Error. Out of memory.
Could not allocate memory for SFTP packet.

This is on an x86_64 system. It worked fine in KDE 3.3.2, but from 3.4.0-beta2 and onwards I get the above error. The fish protocol works and I am using that as a workaround.
Comment 1 Dawit Alemayehu 2005-04-26 20:16:49 UTC
Is there anyway you can try the attached patch and see if it fixes the problem 
for you ?


On Monday 21 March 2005 10:56, Sebastian Strand wrote:
[bugs.kde.org quoted mail]


Created an attachment (id=10803)
sftp34.diff
Comment 2 Sebastian Strand 2005-04-26 21:50:57 UTC
Yes! After applying the patch and recompiling I was able to log in and copy some files, so it appears to have solved the problem.
Comment 3 Dawit Alemayehu 2005-04-26 23:47:36 UTC
CVS commit by adawit: 

- Fix problem with symlinks not being clickable randomly.
- Fix the out of memory problem on x64 platforms.
- Fix wrong file size being reported for really large files.

BUGS:99928
BUGS:102103
BUGS:103729 


  M +290 -265  kio_sftp.cpp   1.65
  M +24 -23    sftpfileattr.cpp   1.16
  M +12 -14    sftpfileattr.h   1.12
Comment 4 Dawit Alemayehu 2005-05-05 13:50:14 UTC
*** Bug 105114 has been marked as a duplicate of this bug. ***
Comment 5 Dawit Alemayehu 2005-05-05 14:03:48 UTC
*** Bug 104740 has been marked as a duplicate of this bug. ***
Comment 6 Dawit Alemayehu 2005-05-10 19:55:21 UTC
*** Bug 105417 has been marked as a duplicate of this bug. ***