Bug 441695 - ftp client segfaults - aborts with memory issue
ftp client segfaults - aborts with memory issue
Status: CLOSED DUPLICATE of bug 426085
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: krb5 (Show other bugs)
x86_64 Linux
low Severity medium
: rc
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2008-04-09 11:04 EDT by Kevin B. Hendricks
Modified: 2008-04-09 15:13 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-09 15:13:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
text log of gdb session (11.61 KB, text/plain)
2008-04-09 11:04 EDT, Kevin B. Hendricks
no flags Details

  None (edit)
Description Kevin B. Hendricks 2008-04-09 11:04:59 EDT
Description of problem:

The ftp client on my Redhat Enterprise 5 machines segfaults/aborts when transferring multiple files.

Linux localhost.localdomain 2.6.18-53.1.13.el5xen #1 SMP Mon Feb 11 13:41:50 EST 2008 x86_64 
x86_64 x86_64 GNU/Linux

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

The machine has been yum updated to today.

How reproducible:

This is repeatable given the ftp site I am trying to download from.  I therefore ran ftp in gdb and saved 
what info I could from the crash.  Unfortunately, it appears the executable had been stripped of 
debugging symbols.

See the attachment for the backtrace and other info.  I don't run any ftpd servers locally so I can not set 
up a machine for you to use to replicate this.

Using another ftp client (such as ncftp) works like a charm with this site.  Also ftp clients on my Mac 
OSX system works just fine with this site.

Steps to Reproduce:
1. (see above)
Actual results:
glibc aborts

Expected results:
files are transfered

Additional info: Here is the main backtrace

*** glibc detected *** /usr/kerberos/bin/ftp: free(): invalid next size (fast): 0x0000555566613170 ***
(no debugging symbols found)
======= Backtrace: =========

(gdb) where
#0  0x00002aaaac673055 in raise () from /lib64/libc.so.6
#1  0x00002aaaac674af0 in abort () from /lib64/libc.so.6
#2  0x00002aaaac6ab24b in __libc_message () from /lib64/libc.so.6
#3  0x00002aaaac6b24f4 in _int_free () from /lib64/libc.so.6
#4  0x00002aaaac6b5b1c in free () from /lib64/libc.so.6
#5  0x00002aaaab9d5d47 in krb5int_mutex_free () from /usr/lib64/libkrb5support.so.0
#6  0x00002aaaab9d6074 in krb5int_labeled_fopen () from /usr/lib64/libkrb5support.so.0
#7  0x0000555555563a88 in ?? () from /usr/kerberos/bin/ftp
#8  0x000055555555ec62 in ?? () from /usr/kerberos/bin/ftp
#9  0x0000555555566ef3 in main () from /usr/kerberos/bin/ftp

Please see the attachment for the log of the entire gdb session.

I would be happy to test a new version of ftp on this same ftp site if a test case is available.
Comment 1 Kevin B. Hendricks 2008-04-09 11:04:59 EDT
Created attachment 301823 [details]
text log of gdb session
Comment 2 Martin Nagy 2008-04-09 11:36:29 EDT
How did you manage to use kerberos with ftp for authentication?
Comment 3 Kevin B. Hendricks 2008-04-09 11:52:36 EDT

I am not sure I understand the question?  I did not intentionally use "kerberos". 
All I did was ssh into my EL5 machine and then issue the ftp ftp.spcompustat.com command and tried 
to retrieve the files.

It then crashed so I tried again and it crashed again.

So I tried while running under gdb and produced the log file I put as an attachment.

I have a pretty vanilla install of EL5 (we are just in the process of developing a website on that machine 
to house the data I was trying to download to that machine).   Everything on that machine was install via 
yum except for the ncftp package I just added to see if it segfaulted as well.

Would you like me to query the rpm database on the machine for any specific packages?

Just let me know what additional info you need.


Comment 4 Kevin B. Hendricks 2008-04-09 11:59:30 EDT
[kbhend@localhost ~]$ rpm -qa | grep krb5

and the krb5-workstation package includes

[kbhend@localhost ~]$ rpm -ql krb5-workstation-1.6.1-17.el5_1.1 


[kbhend@localhost ~]$ which ftp

[kbhend@localhost ~]$ whereis ftp
ftp: /usr/bin/ftp /usr/share/man/man1/ftp.1.gz
[kbhend@localhost ~]$ 

So it appears that the krb5 el5 workstation package installed a version of ftp which appears in my path 
before the /usr/bin/ftp version.

So my bug report should be against the version of ftp installed by krb5-workstation package.

Sorry for not picking up on that earlier.


Comment 5 Kevin B. Hendricks 2008-04-09 12:25:47 EDT
Do you want me to change the Component to krb5 instead of ftp?

Comment 6 Martin Nagy 2008-04-09 15:04:54 EDT
Yes, this binary belongs to kerberos. Changing component to krb5.
Comment 7 Nalin Dahyabhai 2008-04-09 15:13:59 EDT
Looks like a duplicate of bug #426085, which should be fixed by the current
beta.  Marking as a duplicate.

*** This bug has been marked as a duplicate of 426085 ***

Note You need to log in before you can comment on or make changes to this bug.