Multiple stat system calls for the same library files with the same relative path, return Err#2 ENOENT (Doc ID 1611686.1)

Last updated on JULY 29, 2016

Applies to:

Solaris Operating System - Version 8.0 and later
Information in this document applies to any platform.

Symptoms

 Multiple stat system calls for the same library files with the same relative path,  all returning Err#2 ENOENT, 

 For example: 

$ LD_LIBRARY_PATH=. truss -tstat ls -ald . > /dev/null
stat64("/usr/bin/ls", 0xF5317920)               = 0
stat64("./libc.so.1", 0xF5317088)               Err#2 ENOENT
stat64("/lib/libc.so.1", 0xF5317088)            = 0
stat64("/usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3", 0xF5316B90) = 0
stat64("./libc.so.1", 0xF5316A40)               Err#2 ENOENT
stat64("/usr/lib/locale/en_US.UTF-8/libc.so.1", 0xF5316A40) Err#2 ENOENT
stat64("./methods_unicode.so.3", 0xF5316740)    Err#2 ENOENT
stat64("/usr/lib/locale/en_US.UTF-8/methods_unicode.so.3", 0xF5316740) = 0
stat64("./libc.so.1", 0xF5316658)               Err#2 ENOENT
lstat64(".", 0xF5317C48)                        = 0
stat64("./libsec.so.1", 0xF5315FD8)             Err#2 ENOENT
stat64("/lib/libsec.so.1", 0xF5315FD8)          = 0
stat64("./libc.so.1", 0xF5315EF0)               Err#2 ENOENT
stat64(".", 0xF5316A20)                         = 0
fstat64(1, 0xF5317A70)                          = 0
fstat64(1, 0xF5317910)                          = 0
fstat64(4, 0xF53179D8)                          = 0

 

 

Changes

 Possibly different system or changes in environment variables.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms