Sie sind auf Seite 1von 1

Linux troubleshooting Environmental settings Allowing core files Linux disallows core files by default by setting their maximum

size to 0. This can be changed to be unlimited:

#ulimit c unlimited
LD_ASSUME_KERNEL This setting is related to the library implementation in Linux c lib, clib or glibc. glibc contains the thread implementation in the system. The environmental variable LD_ASSUME_KERNEL is used to equate to the Linux kernel version which is in turn tightly bound to glibc. For a correctly written app, there is no reason to set this variable. But some legacy app might require to use an older version of glibc. Some common uses:

LD_ASSUME_KERNEL=2.4.20 for use of the NPTL thread library (Native Posix Thread Library) LD_ASSUME_KERNEL=2.4.1 for use of the implementation in /lib/i686 (newer Linux threads) LD_ASSUME_KERNEL=2.2.5 for use of the implementation in /lib (older Linux threads)
For an app that needs an older version of the kernel:

LD_ASSUME_KERNEL=2.2.5 ./some-old-app
Explaining LD_ASSUME_KERNEL 1. It is handled by a dynamic linker. 2. The behavior of a specific value of this variable is not hardcoded in the linker. 3. Every DSO can tell the dynamic linker in glibc which minimum OS ABI versions are required. Dynamic linkers other than those in glibc do not have this feature. The information about the minimum OS ABI version is mentioned in a ELF (Executable and Linkable Format) usually named .note.ABI-tag. This note is referenced in the DSOs program header by a PT_NOTE entry. 4. Applications may have the following values of LD_ASSUME_KERNEL set: a. http://www.akkadia.org/drepper/assumekernel.html b. http://people.redhat.com/alikins/troubleshooting/

Das könnte Ihnen auch gefallen