[Bug 40285] Re: libgcc_s.so.1 must be installed for pthread_cancel to work
ehcpdeveloper
info at ehcp.net
Mon Sep 10 14:28:31 UTC 2012
affects vsftpd too,
syslog:
kernel: do_general_protection: 33 callbacks suppressed
kernel: vsftpd general protection ip:7f881af02ac7 sp:7f8817cf8590 error:0 in libc-2.15.so[7f881aec9000+1b2000]
console:
ftp localhost
..
220 Welcome to vsFTPd Server
Name (localhost:ehcp): ftp
331 Please specify the password.
Password:
libgcc_s.so.1 must be installed for pthread_cancel to work
Login failed.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.4 in Ubuntu.
https://bugs.launchpad.net/bugs/40285
Title:
libgcc_s.so.1 must be installed for pthread_cancel to work
Status in “gcc-3.3” package in Ubuntu:
Fix Released
Status in “gcc-4.4” package in Ubuntu:
Confirmed
Status in “gcc-4.6” package in Ubuntu:
New
Status in “pound” package in Ubuntu:
Invalid
Bug description:
the error:
libgcc_s.so.1 must be installed for pthread_cancel to work
is printed by applications using pthreads and calling:
set the thread to check or cancel:
thread_setcancelstate (PTHREAD_CANCEL_ENABLE, NULL);
pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, NULL);
and then in a tight loop try to lock a mutex and call test cancel like:
while (pthread_mutex_trylock (&progress_lock) ==
EBUSY)
pthread_testcancel ();
if the thread is exited because the parent thread sent a pthread_exit
(NULL); for instance, you will see that error.
gcc thinks that this file is in:
$> gcc --print-file-name=libgcc_s.so.1
/lib/../lib/libgcc_s.so.1
and not /lib/libgcc_s.so.1. though the path should really point to the
same file in the end.
This error is fixed by adding /lib to /etc/ld.so.conf and running
ldconfig
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285/+subscriptions
More information about the foundations-bugs
mailing list