st0rm

Member
Jun 27, 2014
12
0
1
cPanel Access Level
Root Administrator
Hello all ,

Here's my setup , apache + fcgid , on cPanel/WHM 11.48

While i was monitoring fcgid child processes using strace like the following :

Code:
strace -o fcgid -ff -tt -p $FCGID_PARENT
i got some data to play with , while plaing with the data on the files i found the following repeatedly occurs , much practically on every library fcgid's child is trying to access

Here is a snippet :

Code:
04:12:26.369504 open("/opt/libmcrypt/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369527 open("/opt/pcre/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369548 open("/opt/curlssl/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369571 open("/opt/xml2/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369592 open("/opt/pcre/lib64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369614 open("/opt/curlssl//lib64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369636 open("/opt/php_with_imap_client//lib64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369666 open("/opt/libmcrypt//lib64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369691 open("/usr/lib64/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
04:12:26.369716 open("/usr/lib64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
[COLOR="#FF0000"]04:12:26.369738 open("/lib64/libpthread.so.0", O_RDONLY) = 3
[/COLOR]
Notice that it found it in the last system call ?

This happens to all of the libraries , here's another snippet :

Code:
grep -i "no such file or directory" fcgid.8373 | grep lib | cut -d '"' -f2 | awk -F"/" '{print $(NF)}' | sort | uniq

libaudit.so.1
libcom_err.so.2
libcrypto.so.10
libcrypt.so.1
libc.so.6
libcurl.so.4
libdl.so.2
libexpat.so.1
libfreebl3.so
libfreetype.so.6
libgssapi_krb5.so.2
libidn.so.11
libjpeg.so.62
libk5crypto.so.3
libkeyutils.so.1
libkrb5.so.3
libkrb5support.so.0
libltdl.so.7
libm.so.6
libmysqlclient.so.18
libnsl.so.1
libnss_dns.so.2
libnss_files.so.2
libpam.so.0
libpcre.so.1
libpng12.so.0
libpthread.so.0
libresolv.so.2
librt.so.1
libselinux.so.1
libssl.so.10
libX11.so.6
libXau.so.6
libxcb.so.1
libxml2.so.2
libXpm.so.4
libz.so.1
php-cgi-fcgi.ini
Does any one have an idea why is this happening ? And how to prevent it ? how can i specify the exact location of libraries to prevent this from happening

Thank you
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello :)

I've removed your additional posts, as bumping a thread is not an appropriate action. Feel free to open a support ticket using the link in my signature if you want us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.