[Bug 531639] New: boot.ldconfig misses directories at shutdown time when performing a cache update
http://bugzilla.novell.com/show_bug.cgi?id=531639 Summary: boot.ldconfig misses directories at shutdown time when performing a cache update Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: berge@hitt.nl QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-1.2 Firefox/3.5.2 When the ldconfig cache is gone or needs a refresh (after 30 days) the first time ldconfig is run is at shutdown time. However, the ldconfig call in the boot.ldconfig script is ran in the background. A moment later the filesystems are being unmount. If there are shared libraries located on a partition other than the root, and if these libraries are being included in the ldconfig configuration (by using a file in /etc/ld.so.conf.d for example) it is possible that they are *not* being included in the ldconfig cache because the file system is being unmounted before ldconfig actually got the chance to scan the directory. Now this was hard to reproduce because it is very timing dependant, but you can easily reproduce it by placing a 'sleep 1;' before the call to 'ldconfig' in the boot.ldconfig script. Our current fix is very simple: remove the ampersand so that the the ldconfig call is finished before the shutdown process continues. Reproducible: Sometimes Steps to Reproduce: 1. put a shared library on a partition other than /root 2. put the path to this library in '/etc/ld.so.conf.d/ldconfigtest.conf' 3. put a 'sleep 1;' before 'ldconfig ...' in '/etc/boot.ldconfig' 4. remove '/etc/ld.so.cache' and reboot 5. perform a 'ldconfig -p' and grep for the path configured in step 2. Actual Results: the shared library is not present in the loader cache -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531639 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |nld10-bugs-qa@forge.provo.n |ovo.novell.com |ovell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com