[Pkg-utopia-maintainers] Bug#392813: Happened to me, too (strace included)

Christian Ohm chr.ohm at gmx.net
Sat Oct 14 19:34:24 UTC 2006


Hello,

I got this problem yesterday, too. Happened after apt-get upgrade, all
newly started programs (restarted because of a crash in the case of
firefox) couldn't resolve the domain names anymore. After changing
/etc/nsswitch.conf as described in the original bug report things worked
again (but not for programs (firefox) started before the change).

I have attached an strace of a failing ping (ping from iputils-ping
20020927-3). I don't think there's anything special in my setup,
internet access through a router, /etc/resolv.conf pointing to my ISP's
nameservers (pinging them worked). I haven't consciously installed
libnss-mdns, from the description I guess it got installed as a
dependency of avahi or something like that some time ago (now apt-get
remove libnss-mdns doesn't want to remove anything else).

Hope that helps,
Christian Ohm
-------------- next part --------------
21:14:37.151940 execve("/bin/ping", ["ping", "-c3", "debian.org"], [/* 25 vars */]) = 0
21:14:37.152318 uname({sys="Linux", node="moongate", ...}) = 0
21:14:37.152451 brk(0)                  = 0x8063000
21:14:37.152503 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21:14:37.152563 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f17000
21:14:37.152606 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
21:14:37.152662 open("/etc/ld.so.cache", O_RDONLY) = 3
21:14:37.152702 fstat64(3, {st_mode=S_IFREG|0644, st_size=154946, ...}) = 0
21:14:37.152772 mmap2(NULL, 154946, PROT_READ, MAP_PRIVATE, 3, 0) = 0xa7ef1000
21:14:37.152805 close(3)                = 0
21:14:37.152839 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21:14:37.152888 open("/lib/tls/libresolv.so.2", O_RDONLY) = 3
21:14:37.152934 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260$\0"..., 512) = 512
21:14:37.152992 fstat64(3, {st_mode=S_IFREG|0644, st_size=67364, ...}) = 0
21:14:37.153051 mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7ede000
21:14:37.153088 mmap2(0xa7eed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xa7eed000
21:14:37.153137 mmap2(0xa7eef000, 6344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7eef000
21:14:37.153181 close(3)                = 0
21:14:37.153217 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21:14:37.153263 open("/lib/tls/libc.so.6", O_RDONLY) = 3
21:14:37.153304 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 512
21:14:37.153355 fstat64(3, {st_mode=S_IFREG|0644, st_size=1245676, ...}) = 0
21:14:37.153414 mmap2(NULL, 1251484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7dac000
21:14:37.153452 mmap2(0xa7ed4000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x128) = 0xa7ed4000
21:14:37.153499 mmap2(0xa7edb000, 10396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7edb000
21:14:37.153542 close(3)                = 0
21:14:37.153581 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7dab000
21:14:37.153629 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7daa000
21:14:37.153765 mprotect(0xa7ed4000, 20480, PROT_READ) = 0
21:14:37.153820 set_thread_area({entry_number:-1 -> 6, base_addr:0xa7daa6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
21:14:37.153863 munmap(0xa7ef1000, 154946) = 0
21:14:37.153928 socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
21:14:37.153980 getuid32()              = 0
21:14:37.154011 setuid32(0)             = 0
21:14:37.154100 brk(0)                  = 0x8063000
21:14:37.154132 brk(0x8084000)          = 0x8084000
21:14:37.154175 gettimeofday({1160853277, 154192}, NULL) = 0
21:14:37.154210 getpid()                = 24152
21:14:37.154251 open("/etc/resolv.conf", O_RDONLY) = 4
21:14:37.154301 fstat64(4, {st_mode=S_IFREG|0644, st_size=116, ...}) = 0
21:14:37.154361 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f16000
21:14:37.154396 read(4, "search local\nnameserver 217.237."..., 4096) = 116
21:14:37.154455 read(4, "", 4096)       = 0
21:14:37.154488 close(4)                = 0
21:14:37.154518 munmap(0xa7f16000, 4096) = 0
21:14:37.154563 socket(PF_FILE, SOCK_STREAM, 0) = 4
21:14:37.154600 fcntl64(4, F_GETFL)     = 0x2 (flags O_RDWR)
21:14:37.154634 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
21:14:37.154673 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
21:14:37.154743 close(4)                = 0
21:14:37.154780 socket(PF_FILE, SOCK_STREAM, 0) = 4
21:14:37.154814 fcntl64(4, F_GETFL)     = 0x2 (flags O_RDWR)
21:14:37.154845 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
21:14:37.154880 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
21:14:37.154940 close(4)                = 0
21:14:37.154996 open("/etc/nsswitch.conf", O_RDONLY) = 4
21:14:37.155041 fstat64(4, {st_mode=S_IFREG|0644, st_size=530, ...}) = 0
21:14:37.155097 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f16000
21:14:37.155132 read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 530
21:14:37.155194 read(4, "", 4096)       = 0
21:14:37.155227 close(4)                = 0
21:14:37.155257 munmap(0xa7f16000, 4096) = 0
21:14:37.155300 open("/etc/ld.so.cache", O_RDONLY) = 4
21:14:37.155340 fstat64(4, {st_mode=S_IFREG|0644, st_size=154946, ...}) = 0
21:14:37.155396 mmap2(NULL, 154946, PROT_READ, MAP_PRIVATE, 4, 0) = 0xa7ef1000
21:14:37.155430 close(4)                = 0
21:14:37.155462 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21:14:37.155511 open("/lib/tls/libnss_files.so.2", O_RDONLY) = 4
21:14:37.155557 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\33"..., 512) = 512
21:14:37.155612 fstat64(4, {st_mode=S_IFREG|0644, st_size=38372, ...}) = 0
21:14:37.155675 mmap2(NULL, 41620, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xa7d9f000
21:14:37.155712 mmap2(0xa7da8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x8) = 0xa7da8000
21:14:37.155761 close(4)                = 0
21:14:37.155812 munmap(0xa7ef1000, 154946) = 0
21:14:37.155851 open("/etc/host.conf", O_RDONLY) = 4
21:14:37.155890 fstat64(4, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
21:14:37.155946 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f16000
21:14:37.155981 read(4, "multi on\n", 4096) = 9
21:14:37.156028 read(4, "", 4096)       = 0
21:14:37.156060 close(4)                = 0
21:14:37.156090 munmap(0xa7f16000, 4096) = 0
21:14:37.156130 open("/etc/hosts", O_RDONLY) = 4
21:14:37.156173 fcntl64(4, F_GETFD)     = 0
21:14:37.156204 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
21:14:37.156238 fstat64(4, {st_mode=S_IFREG|0644, st_size=299, ...}) = 0
21:14:37.156294 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f16000
21:14:37.156328 read(4, "#216.157.140.2 www.realtimestrat"..., 4096) = 299
21:14:37.156389 read(4, "", 4096)       = 0
21:14:37.156422 close(4)                = 0
21:14:37.156452 munmap(0xa7f16000, 4096) = 0
21:14:37.156490 open("/etc/ld.so.cache", O_RDONLY) = 4
21:14:37.156529 fstat64(4, {st_mode=S_IFREG|0644, st_size=154946, ...}) = 0
21:14:37.156585 mmap2(NULL, 154946, PROT_READ, MAP_PRIVATE, 4, 0) = 0xa7ef1000
21:14:37.156617 close(4)                = 0
21:14:37.156648 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
21:14:37.156698 open("/usr/lib/libnss_mdns4_minimal.so.2", O_RDONLY) = 4
21:14:37.156743 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\26"..., 512) = 512
21:14:37.156799 fstat64(4, {st_mode=S_IFREG|0644, st_size=22164, ...}) = 0
21:14:37.156858 mmap2(NULL, 21024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xa7d99000
21:14:37.156894 mmap2(0xa7d9e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x5) = 0xa7d9e000
21:14:37.156937 close(4)                = 0
21:14:37.156981 munmap(0xa7ef1000, 154946) = 0
21:14:37.157026 open("/etc/resolv.conf", O_RDONLY) = 4
21:14:37.157071 fstat64(4, {st_mode=S_IFREG|0644, st_size=116, ...}) = 0
21:14:37.157127 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f16000
21:14:37.157161 read(4, "search local\nnameserver 217.237."..., 4096) = 116
21:14:37.157213 read(4, "", 4096)       = 0
21:14:37.157246 close(4)                = 0
21:14:37.157276 munmap(0xa7f16000, 4096) = 0
21:14:37.157329 socket(PF_FILE, SOCK_STREAM, 0) = 4
21:14:37.157371 fcntl64(4, F_GETFD)     = 0
21:14:37.157403 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
21:14:37.157445 connect(4, {sa_family=AF_FILE, path="/var/run/avahi-daemon/socket"}, 110) = 0
21:14:37.157517 fcntl64(4, F_GETFL)     = 0x2 (flags O_RDWR)
21:14:37.157553 fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
21:14:37.157610 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f16000
21:14:37.157663 _llseek(4, 0, 0xaf91fc40, SEEK_CUR) = -1 ESPIPE (Illegal seek)
21:14:37.157711 write(4, "RESOLVE-HOSTNAME-IPV4 debian.org"..., 39) = 39
21:14:37.157759 read(4, "-15 Timeout reached\n", 1024) = 20
21:14:42.158978 close(4)                = 0
21:14:42.159085 munmap(0xa7f16000, 4096) = 0
21:14:42.159201 write(2, "ping: unknown host debian.org\n", 30) = 30
21:14:42.159353 exit_group(2)           = ?


More information about the Pkg-utopia-maintainers mailing list