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

Bug#58432: found problem with ldd segfaulting



retitle 58432 ldd segfaults on missing libraries
thanks

A quick test shows where ldd segfaults: it doesn't handle a missing
library properly. In this case we run ldd on a binary that needs
libncp.so.2.3, which isn't installed yet. So ldd fails to find
it and segfaults:

alpha-quadrant% ldd ncopy
/usr/bin/ldd: line 1: 16047 Segmentation fault      LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= LD_VERBOSE= ${RTLD} "$file"

If we set the LD_LIBRARY_PATH environment variable by hand things
work properly:

alpha-quadrant% export LD_LIBRARY_PATH=/extra/home/debian/wichert/ncpfs-2.2.0.17/lib
alpha-quadrant% ldd ncopy
        libncp.so.2.3 => /extra/home/debian/wichert/ncpfs-2.2.0.17/lib/libncp.so.2.3 (0x0000020000002000)
        libc.so.6.1 => /lib/libc.so.6.1 (0x0000020000144000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020001000000)

Wichert.

-- 
  _________________________________________________________________
 / Generally uninteresting signature - ignore at your convenience  \
| wichert@liacs.nl                    http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |

Attachment: pgpePlNSbCDFV.pgp
Description: PGP signature


Reply to: