Bug 252146 - glibc-2.6.90-9 looks ignoring /etc/ld.so.conf.d/*.conf
glibc-2.6.90-9 looks ignoring /etc/ld.so.conf.d/*.conf
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
i686 Linux
low Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-08-14 06:01 EDT by kanagawa jigorou
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 2.6.90-10
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-15 20:30:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
ldc.log (374.24 KB, application/octet-stream)
2007-08-14 11:42 EDT, kanagawa jigorou
no flags Details
ldc2.log (24.11 KB, application/octet-stream)
2007-08-14 11:43 EDT, kanagawa jigorou
no flags Details
ldc3 (46.99 KB, application/octet-stream)
2007-08-14 14:25 EDT, kanagawa jigorou
no flags Details

  None (edit)
Description kanagawa jigorou 2007-08-14 06:01:20 EDT
Description of problem:

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

How reproducible:
upgrade glibc to glibc-2.6.90-9

Steps to Reproduce:
1.only upgrading glibc to glibc-2.6.90-9

Actual results:
can't run programs using libraries in /etc/ld.so.conf.d/*.conf.
ex. Qt/KDE, octave, etc...
console said that
[jigorou ~]$ konqueror
konqueror: error while loading shared libraries: libqt-mt.so.3: cannot open
shared object file: No such file or directory
[jigorou ~]$ octave
octave: error while loading shared libraries: liblapack.so.3: cannot open shared
object file: No such file or directory

Expected results:
use /etc/ld.so.conf.d/*.conf and load libraries correctly.
Comment 1 Jakub Jelinek 2007-08-14 10:22:54 EDT
Can't reproduce.
Can you:
cat /etc/ld.so.conf
strace -o /tmp/ldc.log /sbin/ldconfig -v | tee /tmp/ldc2.log
cat /tmp/ldc.log
cat /tmp/ldc2.log
and check if you don't get any SELinux audit messages?
Comment 2 kanagawa jigorou 2007-08-14 11:41:03 EDT
with glibc-2.6.90-9,
[jigorou ~]$ cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
[jigorou ~]$ strace -o /tmp/ldc.log /sbin/ldconfig -v | tee /tmp/ldc2.log
Comment 3 kanagawa jigorou 2007-08-14 11:42:12 EDT
Created attachment 161275 [details]
Comment 4 kanagawa jigorou 2007-08-14 11:43:02 EDT
Created attachment 161276 [details]
Comment 5 kanagawa jigorou 2007-08-14 11:46:15 EDT
> and check if you don't get any SELinux audit messages?
Because I disabled both SELinux and auditd.
Comment 6 Jakub Jelinek 2007-08-14 14:14:25 EDT
Both /usr/lib/octave-2.9.13/ and /usr/lib/qt-3.3/lib/ directories were clearly
scanned though and libraries in it read.
Can you /sbin/ldconfig -p | tee /tmp/ldc3.log
Comment 7 kanagawa jigorou 2007-08-14 14:25:00 EDT
Created attachment 161291 [details]

and 'grep qt' output here

[root@localhost tmp]# cat ldc3.log |grep qt
	libqui.so.1 (libc6) => /usr/lib/qt-3.3/lib/libqui.so.1
	libqui.so (libc6) => /usr/lib/qt-3.3/lib/libqui.so
	libqtmcop.so.1 (libc6) => /usr/lib/libqtmcop.so.1
	libqtmcop.so (libc6) => /usr/lib/libqtmcop.so
	libqt-mt.so.3 (libc6) => /usr/lib/qt-3.3/lib/libqt-mt.so.3
	libqt-mt.so.3 (libc6) => /usr/lib/libqt-mt.so.3
	libqt-mt.so (libc6) => /usr/lib/qt-3.3/lib/libqt-mt.so
	libkdevqtimporter.so (libc6) => /usr/lib/libkdevqtimporter.so
	libdbus-qt-1.so.1 (libc6) => /usr/lib/libdbus-qt-1.so.1

>	 libqt-mt.so.3 (libc6) => /usr/lib/libqt-mt.so.3
cause this problem?(...only for me?)
Comment 8 Jakub Jelinek 2007-08-14 14:34:22 EDT
The problem is actually not in ldconfig at all, but in a recent ld.so change:
Apparently O_NOATIME is allowed only for the file owner or fsuid user.
Comment 9 kanagawa jigorou 2007-08-14 15:09:57 EDT

And now, I discovered that
this problem doesn't happen if I'm root.
(Qt,octave run without problem.)


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