Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
/usr/bin/ldd segfaults
Hi,
On my -current systems (adm64 from overnight) ldd segfaults:
# file /bin/sh
/bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for NetBSD 7.99.1, not stripped
# ldd /bin/sh
Memory fault (core dumped)
# uname -a
NetBSD support6.delcam.local 7.99.1 NetBSD 7.99.1 (XEN3_DOMU) #10: Sun
Aug 31 00:52:24 BST 2014
sysbuild@support6.delcam.local:/home/sysbuild/Sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/XEN3_DOMU
amd64
(same on a DRMKMS kernel).
A trace follows:
----
22089 1 ktruss fcntl(0x4, 0x3, 0) = 4194305
22089 1 ktruss emul(netbsd)
22089 1 ktruss fcntl(0x4, 0x4, 0x400001) = 0
22089 1 ldd execve("/usr/bin/ldd", 0x7f7fffffdb28,
0x7f7fffffdb40) JUSTRETURN
22089 1 ldd emul(netbsd)
22089 1 ldd mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0)
= 0x7f7ff7ff8000
22089 1 ldd open("/etc/ld.so.conf", 0, 0x7f7ff7e12190) Err#2 ENOENT
22089 1 ldd open("/usr/lib/libgcc_s.so.1", 0, 0x735f63636762696c) = 3
22089 1 ldd __fstat50(0x3, 0x7f7fffffd298) = 0
22089 1 ldd mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7f7ff7ff7000
22089 1 ldd munmap(0x7f7ff7ff7000, 0x1000) = 0
22089 1 ldd mmap(0, 0x20c000, 0x5, 0x15000002, 0x3, 0, 0) =
0x7f7ff7800000
22089 1 ldd mmap(0x7f7ff7a0b000, 0x1000, 0x3, 0x12, 0x3, 0,
0xb000) = 0x7f7ff7a0b000
22089 1 ldd mmap(0x7f7ff7a0c000, 0, 0x3, 0x1012,
0xffffffff, 0, 0) = 0x7f7ff7a0c000
22089 1 ldd mprotect(0x7f7ff780c000, 0x1ff000, 0) = 0
22089 1 ldd close(0x3) = 0
22089 1 ldd open("/usr/lib/libc.so.12", 0, 0x2e6f732e6362696c) = 3
22089 1 ldd __fstat50(0x3, 0x7f7fffffd298) = 0
22089 1 ldd mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7f7ff7ff7000
22089 1 ldd munmap(0x7f7ff7ff7000, 0x1000) = 0
22089 1 ldd mmap(0, 0x36e000, 0x5, 0x15000002, 0x3, 0, 0) =
0x7f7ff7400000
22089 1 ldd mmap(0x7f7ff774f000, 0xc000, 0x3, 0x12, 0x3, 0,
0x14f000) = 0x7f7ff774f000
22089 1 ldd mmap(0x7f7ff775b000, 0x13000, 0x3, 0x1012,
0xffffffff, 0, 0) = 0x7f7ff775b000
22089 1 ldd mprotect(0x7f7ff754f000, 0x200000, 0) = 0
22089 1 ldd close(0x3) = 0
22089 1 ldd _lwp_setprivate(0x7f7ff7ffd0c0) = 0
22089 1 ldd _lwp_self() = 1
22089 1 ldd __sigprocmask14(0x1, 0x7f7fffffda50, 0x7f7fffffdac0) = 0
22089 1 ldd __sigprocmask14(0x3, 0x7f7fffffdac0, 0) = 0
22089 1 ldd __sysctl(0x7f7ff7521910, 0x2, 0x7f7ff776c360,
0x7f7fffffda08, 0, 0) = 0
22089 1 ldd _lwp_self() = 1
22089 1 ldd __sigprocmask14(0x1, 0x7f7fffffda10, 0x7f7fffffdac0) = 0
22089 1 ldd __sigprocmask14(0x3, 0x7f7fffffdac0, 0) = 0
22089 1 ldd _lwp_self() = 1
22089 1 ldd __sigprocmask14(0x1, 0x7f7fffffda10, 0x7f7fffffdac0) = 0
22089 1 ldd __sigprocmask14(0x3, 0x7f7fffffdac0, 0) = 0
22089 1 ldd open("/bin/sh", 0, 0x1) = 3
22089 1 ldd lseek(0x3, 0, 0, 0) = 0
22089 1 ldd __fstat50(0x3, 0x7f7fffffda00) = 0
22089 1 ldd __sysctl(0x7f7fffffd960, 0x2, 0x7f7ff776d308,
0x7f7fffffd968, 0, 0) = 0
22089 1 ldd mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0)
= 0x7f7ff7ff0000
22089 1 ldd open("/etc/ld.so.conf", 0, 0x60a9d8) Err#2 ENOENT
22089 1 ldd mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7f7ff7fef000
22089 1 ldd munmap(0x7f7ff7fef000, 0x1000) = 0
22089 1 ldd mmap(0, 0x226000, 0x5, 0x15000002, 0x3, 0, 0) =
0x7f7ff7000000
22089 1 ldd mmap(0x7f7ff7223000, 0x1000, 0x1, 0x12, 0x3, 0,
0x23000) = 0x7f7ff7223000
22089 1 ldd mmap(0x7f7ff7224000, 0x2000, 0x1, 0x1012,
0xffffffff, 0, 0) = 0x7f7ff7224000
22089 1 ldd mprotect(0x7f7ff7023000, 0x200000, 0) = 0
22089 1 ldd open("/lib/libedit.so.3", 0, 0x2e7469646562696c) = 4
22089 1 ldd __fstat50(0x4, 0x7f7fffffd210) = 0
22089 1 ldd mmap(0, 0x1000, 0x1, 0x1, 0x4, 0, 0) = 0x7f7ff7fef000
22089 1 ldd munmap(0x7f7ff7fef000, 0x1000) = 0
22089 1 ldd mmap(0, 0x231000, 0x5, 0x15000002, 0x4, 0, 0) =
0x7f7ff6c00000
22089 1 ldd mmap(0x7f7ff6e2b000, 0x3000, 0x1, 0x12, 0x4, 0,
0x2b000) = 0x7f7ff6e2b000
22089 1 ldd mmap(0x7f7ff6e2e000, 0x3000, 0x1, 0x1012,
0xffffffff, 0, 0) = 0x7f7ff6e2e000
22089 1 ldd mprotect(0x7f7ff6c2b000, 0x200000, 0) = 0
22089 1 ldd close(0x4) = 0
22089 1 ldd SIGSEGV SIG_DFL
----
Chavdar
--
----
Home |
Main Index |
Thread Index |
Old Index