Bug 159334

Summary: [RHEL4] gftp crashes when file download attempt is made
Product: Red Hat Enterprise Linux 4 Reporter: David Lehman <dlehman>
Component: gftpAssignee: Matthias Clasen <mclasen>
Status: CLOSED ERRATA QA Contact: Mike McLean <mikem>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: bert.heise, dani.gleser, tao, whamblen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0468 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:40:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181409    
Attachments:
Description Flags
gftp-64-bit-fixes.patch none

Description David Lehman 2005-06-01 18:23:13 UTC
+++ This bug was initially created as a clone of Bug #140567 +++

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5)
Gecko/20041110 Firefox/1.0

Description of problem:
I attempted a file transfer from a remote ftp to my system.  I
selected the folder I wanted the file to go in the left pane of the
program, and selected the file I wanted to transfer on the right.  I
clicked the right arrow signifying the transfer and the program crashed.

I tried this again but instead dragged the fil from the right pane to
the left, with the same results.

Version-Release number of selected component (if applicable):
gftp-2.0.17-3

How reproducible:
Always

Steps to Reproduce:
1. Login to a FTP
2. Click a file on the right pane to download
3. Click the bottom arrow pointing left or drag the file to left pane
    

Actual Results:  Gftp crashed.

Expected Results:  For the file to transfer to the specified folder.

Additional info:
I started looking for the relevant patch by looking at 2.0.18 but it occurs to
me you may be able to do it much faster. Let me know if you need me to try
tracking it down and I'll post the patch here.

Comment 2 Caner Baydemir 2005-06-09 08:44:15 UTC
it's not a bug actually, it has to be x86_64 but redhat gives just i386 version
that's why... just get the gftp source rpm and rebuild with "--target x86_64"
option like this:

rpmbuild --rebuild gftp-foo.src.rpm --target x86_64

and then, remove i386 one and install new x86_64 package...

Comment 3 Dani Gleser 2005-08-31 16:47:11 UTC
I have the same issue and I tried your sollution and it still does not work. 
x86_64 platform, Dell, REL 4 WS.  Every time I try and download it crashes.

Comment 4 Bastien Nocera 2005-11-04 10:08:20 UTC
Created attachment 120719 [details]
gftp-64-bit-fixes.patch

Fix backported from upstream

Comment 11 William D. Hamblen 2006-04-20 14:04:32 UTC
I'm seeing this same behaviour in gftp-2.0.17-5.x86_64.  I tried several ftp
sites (including the bookmark to RH Updates) and while it connects okay, every
time I try a transfer (in either direction) gftp immediately segfaults after
creating an empty file.  I can however rename and delete files without problem
(locally and remotely) - just transfers are a problem.  

Building from the source RPM (I tried both 2.0.17-3 and 2.0.17-5) made no
difference.  This is RHEL WS 4, fully patched as of 4/20/2006.

Comment 12 Bert Heise 2006-04-20 21:11:23 UTC
I can confirm this bug -  I also see it on our RHEL WS 4 x86_64 using even the
updated 2.0.17-5 version. Are we supposed to do anything with the
"gftp-64-bit-fixes.patch" attachment of Bastien and if so, what?

Comment 13 Bert Heise 2006-04-20 21:52:22 UTC
After a bit more digging, I found that the guys at Fedora (actually the gftp
programmer) solved it with version 2.0.18 of gftp (see www.gftp.org): 

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=140567

I downloaded and built it from the source - runs fine! Curiously enough, that
version 2.0.18 dates from January 2005 - before this RHEL bug appeared... %-)

Comment 14 Matthias Clasen 2006-04-28 16:53:58 UTC
Patch has been included in gftp-2.0.17-6

Comment 19 Red Hat Bugzilla 2006-08-10 21:40:57 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0468.html