Bug 913519 - login fails with message "libgcc_s.so.1 must be installed for pthread_cancel to work" when using pam_mysql
Summary: login fails with message "libgcc_s.so.1 must be installed for pthread_cancel ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vsftpd
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-21 12:17 UTC by Artur
Modified: 2014-11-09 22:36 UTC (History)
4 users (show)

Fixed In Version: vsftpd-3.0.2-2.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-30 00:43:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Artur 2013-02-21 12:17:29 UTC
Description of problem:

When pam_mysql module is eanbled in /etc/pam.d/vsftpd, authentication fails with the message "libgcc_s.so.1 must be installed for pthread_cancel to work".

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

vsftpd-3.0.2-1.fc18.x86_64


How reproducible:


Steps to Reproduce:
1. yum install vsftpd
2. use the following /etc/vsftpd/vsftpd.conf contents:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


3. use the following /etc/pam.d/vsftpd contents:
#%PAM-1.0
auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_mysql.so user=vsftpd passwd=qwerty host=localhost db=vsftpd table=accounts usercolumn=user passwdcolumn=password crypt=2
account required pam_mysql.so user=vsftpd passwd=qwerty host=localhost db=vsftpd table=accounts usercolumn=user passwdcolumn=password crypt=2


4. create mysql database and test user:

create database vsftpd;
grant select on vsftpd.* to 'vsftpd'@'localhost' identified by 'qwerty';
create table accounts (id int not null auto_increment,user varchar(64) not null,password varchar(64) not null,primary key (id));
insert into accounts (user,password) values ('test',PASSWORD('test'));

5. let pam interact with mysql by modyfying selinux policies
6. start vsftpd service
7. try to ftp to localhost


Actual results:
Connected to localhost (127.0.0.1).
220 (vsFTPd 3.0.2)
Name (localhost:user): test
331 Please specify the password.
Password:
libgcc_s.so.1 must be installed for pthread_cancel to work
Login failed.


Expected results:

Connected to localhost (127.0.0.1).
220 (vsFTPd 3.0.2)
Name (localhost:user): test
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.


Additional info:
The problem is caused by too low value of VSFTP_AS_LIMIT in file defs.h. The patch vsftpd-2.3.5-aslim.patch increases it from "100UL * 1024 * 1024" to "200UL * 1024 * 1024", but it is still not enough. After setting it to "400UL * 1024 * 1024" vsftpd works like expected.

I have seen the same report on Ubuntu bugtracker.

Comment 1 Jiri Skala 2013-02-25 08:36:01 UTC
Hi & thanks for your report.

I've increased the size of VSFTP_AS_LIMIT in the rawhide. I'll backport it later to F18.

Comment 2 Fedora Update System 2013-09-10 07:38:45 UTC
vsftpd-3.0.2-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/vsftpd-3.0.2-2.fc18

Comment 3 Fedora Update System 2013-09-11 01:52:21 UTC
Package vsftpd-3.0.2-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing vsftpd-3.0.2-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-16330/vsftpd-3.0.2-2.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-09-30 00:43:36 UTC
vsftpd-3.0.2-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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