[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#502189: libc6: ldd on a static prog: unknown exit code (126)



Aurelien Jarno a écrit :
Unreproducible here. Please prode the output of "sh -x /usr/bin/ldd
helloworld".

$ sh -x /usr/bin/ldd helloworld
+ TEXTDOMAIN=libc
+ TEXTDOMAINDIR=/usr/share/locale
+ RTLDLIST='/lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2'
+ warn=
+ bind_now=
+ verbose=
+ filename_magic_regex='((^|/)lib|.so$)'
+ test 1 -gt 0
+ case "$1" in
+ break
+ add_env='LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW='
+ add_env='LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= LD_LIBRARY_VERSION=$verify_out' + add_env='LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= LD_LIBRARY_VERSION=$verify_out LD_VERBOSE='
+ test '' = yes
+ set -o pipefail
+ case $# in
+ single_file=t
+ result=0
+ for file in '"$@"'
+ test t = t
+ case $file in
+ file=./helloworld
+ test '!' -e ./helloworld
+ test '!' -f ./helloworld
+ test -r ./helloworld
+ test '!' -x ./helloworld
+ RTLD=
+ ret=1
+ for rtld in '${RTLDLIST}'
+ test -x /lib/ld-linux.so.2
++ /lib/ld-linux.so.2 --verify ./helloworld
+ verify_out=
+ ret=1
+ case $ret in
+ for rtld in '${RTLDLIST}'
+ test -x /lib64/ld-linux-x86-64.so.2
++ /lib64/ld-linux-x86-64.so.2 --verify ./helloworld
+ verify_out=
+ ret=126
+ case $ret in
+ case $ret in
+ echo ldd: 'exited with unknown exit code' '(126)'
ldd: exited with unknown exit code (126)
+ exit 1




Reply to: