[Bug 40285] Re: libgcc_s.so.1 must be installed for pthread_cancel to work

2013-10-25 Thread Juergen Perlinger
I finally tracked it down, I think. The pthread code tries to load libgcc_s on pthread_exit(), and this dos not work when the effective user was changed -- many daemons switch from root to a restricted user, and that's one way to end up in this problem. If the library is loaded globally for the pro

[Bug 1243353] [NEW] ntpd crashes with 'libgcc_s.so.1 must be installed...'

2013-10-22 Thread Juergen Perlinger
Public bug reported: After a few minutes, ntpd crashes with the infamous "libgcc_s.so.1 must be installed for pthread_cancel to work" message. System Info: jnperlin@hydra:~$ lsb_release -rd Description:Ubuntu 13.10 Release:13.10 jnperlin@hydra:~$ apt-cache policy ntp ntp: Installe

[Bug 40285] Re: libgcc_s.so.1 must be installed for pthread_cancel to work

2013-10-20 Thread Juergen Perlinger
I was probably wrong -- it seems this is not related to running as restricted user per se. Using ldd shows no reference to libgcc_s in the binary, even if I build from source and explicitly add '-lgcc_s' to the linker command line. strace shows no signs of using libgcc_s unless put into the preloa

[Bug 40285] Re: libgcc_s.so.1 must be installed for pthread_cancel to work

2013-10-20 Thread Juergen Perlinger
I have/had trouble with ntpd on saucy, it simly stopped working after a while with he mentioned error message. Running directly as root works fine; running with a reduced user account does not. Setting LD_PRELOAD works. It seems that the user separation / priviledge dropping interferes with the de