From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199610171847.LAA26793@netcom13.netcom.com> Date: Thu, 17 Oct 1996 11:47:10 -0700 (PDT) From: Marc Singer Subject: strace's on Install Buggy In-Reply-To: > > On Wed, 16 Oct 1996, Marc Singer wrote: > > > The command that hangs the system is > > > > route add default gw ${GATEWAY} > > Somewhat. An "strace" of that command running would be nice as well. OK. This is the trace for the route command: It seems that it is having problems with the nameserver. Oddly, I can use nslookup just fine. I can ping, and I can hum a short melody. (?!) I did an strace, not included here, on the command ifconfig sl0 127.0.0.1 which hangs, too. I'm not sure what is going on with the domain name service, but I'd guess that this is a request for IP to name translation. When I look at the nslookup command's strace I notice that it does not load libnss_dns.so.1 nor does it use libresolv.so.2. I have no man page for nsswitch.conf and I've not encountered it before. BTW, strace is cool. Enough already? ---------------------------------------------------------------------- execve("/sbin/route", ["route", "add", "default", "gw", "10.1.2.10"], [/* 22 vars */]) = 0 brk(0) = 0x12010a610 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=3451, ...}) = 0 mmap(0, 4831836144, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555570000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555572000 munmap(0x15555572000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555672000 mprotect(0x15555720000, 1308928, PROT_NONE) = 0 mmap(0x15555772000, 1308928, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555772000 mmap(0x15555828000, 1308928, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555828000 close(3) = 0 personality(PER_LINUX) = 0 osf_getsysinfo(0x2d, 0x11ffffc48, 0x11ffffcc8, 0, 0x2) = 0 osf_setsysinfo(0xe, 0x11ffffc48, 0x11ffffcc8, 0, 0x2) = 0 getxpid() = 66 brk(0) = 0x12010a610 brk(0x120110610) = 0x120110610 brk(0x120111000) = 0x120111000 brk(0x120112000) = 0x120112000 open("/etc/nsswitch.conf", O_RDONLY) = -1 ENOENT (No such file or directory) brk(0x120113000) = 0x120113000 brk(0x120114000) = 0x120114000 open("/usr/lib/libnss_dns.so.1", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555572000 brk(0x120115000) = 0x120115000 munmap(0x15555572000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555860000 mprotect(0x15555864000, 1045656, PROT_NONE) = 0 mmap(0x15555960000, 1045656, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555960000 close(3) = 0 open("/usr/lib/libresolv.so.2", O_RDONLY) = 3 mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555572000 munmap(0x15555572000, 8192) = 0 mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555964000 mprotect(0x15555974000, 1062083, PROT_NONE) = 0 mmap(0x15555a64000, 1062083, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555a64000 mmap(0x15555a76000, 1062083, PROT_NONE, 0 /* MAP_??? */, 2, 0) = 0x15555a76000 close(3) = 0 gettimeofday({845552245, 581456}, NULL) = 0 getxpid() = 66 brk(0x120116000) = 0x120116000 open("/etc/resolv.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=43, ...}) = 0 brk(0x120118000) = 0x120118000 read(3, "search straylight.com\nnameserve"..., 8192) = 43 read(3, "", 8192) = 0 close(3) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.1.2.10")}, 16) = 0 send(3, "\305h\1\0\0\1\0\0\0\0\0\0\00210\001"..., 27, 0) = 27 select(4, [3], NULL, NULL, {5, 0}) = 0 (Timeout) close(3) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.1.2.10")}, 16) = 0 send(3, "\305h\1\0\0\1\0\0\0\0\0\0\00210\001"..., 27, 0) = 27 select(4, [3], NULL, NULL, {10, 0} ---------------------------------------------------------------------- -- Marc Singer -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null