NANOBSD dhclient freeze
Dimitar Vassilev
dimitar.vassilev at gmail.com
Fri May 28 20:35:18 UTC 2010
I did again the same build with include generic option and all binaries.
same results.
Did truss on the build host
Here is the result
truss /sbin/dhclient wlan-[K0
__sysctl(0xbfbfe5a4,0x2,0xbfbfe5ac,0xbfbfe5b0,0x0,0x0) = 0 (0x0)
mmap(0x0,328,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 671764480 (0x280a5000)
munmap(0x280a5000,328) = 0 (0x0)
__sysctl(0xbfbfe608,0x2,0x2809be3c,0xbfbfe610,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
671764480 (0x280a5000)
issetugid(0x28094867,0xbfbfeadc,0x104,0x0,0x0,0x0) = 0 (0x0)
open("/etc/libmap.conf",O_RDONLY,0666) ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",O_RDONLY,00) = 2 (0x2)
read(2,"Ehnt\^A\0\0\0\M^@\0\0\0\M^O\0\0"...,128) = 128 (0x80)
lseek(2,0x80,SEEK_SET) = 128 (0x80)
read(2,"/lib:/usr/lib:/usr/lib/compat:/u"...,143) = 143 (0x8f)
close(2) = 0 (0x0)
access("/lib/libc.so.7",0) = 0 (0x0)
open("/lib/libc.so.7",O_RDONLY,00) = 2 (0x2)
fstat(2,{ mode=-r--r--r-- ,inode=218,size=1369196,blksize=16384 }) = 0 (0x0)
pread(0x2,0x2809ad80,0x1000,0x0,0x0,0x0) = 4096 (0x1000)
mmap(0x0,1376256,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) =
671797248 (0x280ad000)
mmap(0x280ad000,1257472,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE,2,0x0)
= 671797248 (0x280ad000)
mmap(0x281e0000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,2,0x133000)
= 673054720 (0x281e0000)
mprotect(0x281e6000,94208,PROT_READ|PROT_WRITE) = 0 (0x0)
close(2) = 0 (0x0)
sysarch(0xa,0xbfbfe670,0x2805d89b,0x2809a2f8,0x28072929,0x2809a2f8) = 0 (0x0)
mmap(0x0,736,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673173504 (0x281fd000)
munmap(0x281fd000,736) = 0 (0x0)
mmap(0x0,21896,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673173504 (0x281fd000)
munmap(0x281fd000,21896) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
__sysctl(0xbfbfe624,0x2,0x805c520,0xbfbfe62c,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
socket(PF_LOCAL,SOCK_DGRAM,0) = 2 (0x2)
fcntl(2,F_SETFD,FD_CLOEXEC) = 0 (0x0)
connect(2,{ AF_UNIX "/var/run/logpriv" },106) = 0 (0x0)
__sysctl(0xbfbfe754,0x2,0x281ec400,0xbfbfe75c,0x0,0x0) = 0 (0x0)
__sysctl(0xbfbfe644,0x2,0xbfbfe5dc,0xbfbfe64c,0x281d7c34,0xc) = 0 (0x0)
__sysctl(0xbfbfe5dc,0x2,0x281ec4f8,0xbfbfe6a8,0x0,0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbfe763,1024) ERR#2 'No such file or directory'
issetugid(0x281d6951,0xbfbfe763,0x400,0xbfbfe75c,0x0,0x0) = 0 (0x0)
break(0x8100000) = 0 (0x0)
__sysctl(0xbfbfe9e4,0x2,0xbfbfe9ec,0xbfbfe9f0,0x0,0x0) = 0 (0x0)
mmap(0x0,1048576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
673173504 (0x281fd000)
mmap(0x282fd000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0)
= 674222080 (0x282fd000)
munmap(0x281fd000,12288) = 0 (0x0)
access("/etc/localtime",4) = 0 (0x0)
open("/etc/localtime",O_RDONLY,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=49456,size=751,blksize=16384 }) = 0 (0x0)
read(3,"TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,29000) = 751 (0x2ef)
close(3) = 0 (0x0)
clock_gettime(13,{1275078174.000000000 }) = 0 (0x0)
open("/etc/dhclient.conf",O_RDONLY,0666) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=49370,size=277,blksize=16384 }) = 0 (0x0)
read(3,"# $FreeBSD: src/etc/dhclient.con"...,16384) = 277 (0x115)
read(3,0x2820d000,16384) = 0 (0x0)
close(3) = 0 (0x0)
socket(PF_INET,SOCK_DGRAM,0) = 3 (0x3)
ioctl(3,SIOCGIFMEDIA,0xbfbfebb0) = 0 (0x0)
close(3) = 0 (0x0)
open("/dev/null",O_RDWR,00) = 3 (0x3)
stat("/etc/nsswitch.conf",{ mode=-rw-r--r--
,inode=49408,size=327,blksize=16384 }) = 0 (0x0)
open("/etc/nsswitch.conf",O_RDONLY,0666) = 4 (0x4)
ioctl(4,TIOCGETA,0xbfbfe920) ERR#25 'Inappropriate ioctl for device'
fstat(4,{ mode=-rw-r--r-- ,inode=49408,size=327,blksize=16384 }) = 0 (0x0)
read(4,"#\n# nsswitch.conf(5) - name ser"...,16384) = 327 (0x147)
read(4,0x28234000,16384) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
access("/lib/nss_compat.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_compat.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_compat.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/nss_compat.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/compat/pkg/nss_compat.so.1",0) ERR#2 'No such
file or directory'
access("/usr/local/lib/gcc-lib/i386-portbld-freebsd7.0/3.3.6/nss_compat.so.1",0)
ERR#2 'No such file or directory'
access("/usr/local/lib/qt4/nss_compat.so.1",0) ERR#2 'No such file or
directory'
access("/lib/nss_compat.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_compat.so.1",0) ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
access("/lib/nss_nis.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_nis.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_nis.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/nss_nis.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/compat/pkg/nss_nis.so.1",0) ERR#2 'No such file
or directory'
access("/usr/local/lib/gcc-lib/i386-portbld-freebsd7.0/3.3.6/nss_nis.so.1",0)
ERR#2 'No such file or directory'
access("/usr/local/lib/qt4/nss_nis.so.1",0) ERR#2 'No such file or directory'
access("/lib/nss_nis.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_nis.so.1",0) ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
access("/lib/nss_files.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_files.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_files.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/nss_files.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/compat/pkg/nss_files.so.1",0) ERR#2 'No such
file or directory'
access("/usr/local/lib/gcc-lib/i386-portbld-freebsd7.0/3.3.6/nss_files.so.1",0)
ERR#2 'No such file or directory'
access("/usr/local/lib/qt4/nss_files.so.1",0) ERR#2 'No such file or directory'
access("/lib/nss_files.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_files.so.1",0) ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
access("/lib/nss_dns.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_dns.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/compat/nss_dns.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/nss_dns.so.1",0) ERR#2 'No such file or directory'
access("/usr/local/lib/compat/pkg/nss_dns.so.1",0) ERR#2 'No such file
or directory'
access("/usr/local/lib/gcc-lib/i386-portbld-freebsd7.0/3.3.6/nss_dns.so.1",0)
ERR#2 'No such file or directory'
access("/usr/local/lib/qt4/nss_dns.so.1",0) ERR#2 'No such file or directory'
access("/lib/nss_dns.so.1",0) ERR#2 'No such file or directory'
access("/usr/lib/nss_dns.so.1",0) ERR#2 'No such file or directory'
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
ioctl(4,TIOCGETA,0xbfbfe920) ERR#25 'Inappropriate ioctl for device'
close(4) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
= 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
geteuid() = 0 (0x0)
open("/etc/spwd.db",O_RDONLY,00) = 4 (0x4)
fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0)
fstat(4,{ mode=-rw------- ,inode=49406,size=40960,blksize=16384 }) = 0 (0x0)
read(4,"\0\^F\^Ua\0\0\0\^B\0\0\^D\M-R\0"...,260) = 260 (0x104)
pread(0x4,0x28235000,0x1000,0x6000,0x0,0x28235000) = 4096 (0x1000)
pread(0x4,0x28236000,0x1000,0x4000,0x0,0x0) = 4096 (0x1000)
pread(0x4,0x28237000,0x1000,0x5000,0x0,0x0) = 4096 (0x1000)
pread(0x4,0x28246000,0x1000,0x7000,0x0,0x0) = 4096 (0x1000)
pread(0x4,0x28247000,0x1000,0x8000,0x0,0x0) = 4096 (0x1000)
pread(0x4,0x28248000,0x1000,0x1000,0x0,0x0) = 4096 (0x1000)
pread(0x4,0x28249000,0x1000,0x2000,0x0,0x0) = 4096 (0x1000)
pread(0x4,0x2824a000,0x1000,0x3000,0x0,0x0) = 4096 (0x1000)
close(4) = 0 (0x0)
pipe(0xbfbfec10) = 0 (0x0)
fork() = 4769 (0x12a1)
close(4) = 0 (0x0)
open("/var/db/dhclient.leases.wlan0",O_EXLOCK|O_CREAT,00) = 4 (0x4)
open("/var/db/dhclient.leases.wlan0",O_RDONLY,0666) = 6 (0x6)
fstat(6,{ mode=---------- ,inode=106,size=1269,blksize=16384 }) = 0 (0x0)
read(6,"lease {\n interface "wlan0";\n "...,16384) = 1269 (0x4f5)
read(6,0x28234000,16384) = 0 (0x0)
close(6) = 0 (0x0)
open("/var/db/dhclient.leases.wlan0",O_WRONLY|O_CREAT|O_TRUNC,0666) = 6 (0x6)
fstat(6,{ mode=---------- ,inode=106,size=0,blksize=16384 }) = 0 (0x0)
issetugid(0x280b93f4,0x280bcb1c,0x28063178,0x280a9200,0x2809a2f8,0xbfbf4604)
= 0 (0x0)
open("/usr/share/zoneinfo/UTC",O_RDONLY,05001430570) ERR#2 'No such
file or directory'
issetugid(0x280b65c4,0x280bd344,0x28063178,0x280a9200,0x2809a2f8,0xbfbf4574)
= 0 (0x0)
open("/usr/share/zoneinfo/posixrules",O_RDONLY,05001430570) = 7 (0x7)
fstat(7,{ mode=-r--r--r-- ,inode=733891,size=3519,blksize=16384 }) = 0 (0x0)
read(7,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,29000) = 3519 (0xdbf)
close(7) = 0 (0x0)
write(6,"lease {\n interface "wlan0";\n "...,423) = 423 (0x1a7)
write(6,"lease {\n interface "wlan0";\n "...,423) = 423 (0x1a7)
lseek(6,0x0,SEEK_CUR) = 846 (0x34e)
ftruncate(6,846,0x280a700000000000) = 0 (0x0)
fsync(0x6,0x34e,0x0,0x806d220,0x4,0x281eca80) = 0 (0x0)
close(4) = 0 (0x0)
clock_gettime(13,{1275078174.000000000 }) = 0 (0x0)
fork() = 4770 (0x12a2)
wait4(0xffffffff,0xbfbfebc8,0x0,0x0,0x2811e319,0x12a2) = 4770 (0x12a2)
socket(PF_ROUTE,SOCK_RAW,0) = 4 (0x4)
__sysctl(0xbfbfeb60,0x6,0x0,0xbfbfeb78,0x0,0x0) = 0 (0x0)
__sysctl(0xbfbfeb60,0x6,0x2824b600,0xbfbfeb78,0x0,0x0) = 0 (0x0)
open("/dev/bpf0",O_RDWR,00) = 7 (0x7)
ioctl(7,BIOCSETIF,0x2824b020) = 0 (0x0)
ioctl(7,BIOCVERSION,0xbfbfeb7c) = 0 (0x0)
ioctl(7,BIOCIMMEDIATE,0xbfbfeb78) = 0 (0x0)
ioctl(7,BIOCGBLEN,0xbfbfeb74) = 0 (0x0)
ioctl(7,BIOCSETF,0xbfbfeb6c) = 0 (0x0)
ioctl(7,BIOCSETWF,0xbfbfeb6c) = 0 (0x0)
ioctl(7,BIOCLOCK,0x0) = 0 (0x0)
socket(PF_INET,SOCK_RAW,17) = 8 (0x8)
setsockopt(0x8,0x0,0x2,0xbfbfeb7c,0x4,0x11) = 0 (0x0)
chroot("/var/empty") = 0 (0x0)
chdir("/") = 0 (0x0)
process exit, rval = 0
[[1msamovar[m]:[7m/tmp[27m# exit
exit
The only difference is that I get process exit, rval = 0.
Any idea what should I do to pinpoint dhclient freezing?
Thanks.
More information about the freebsd-questions
mailing list