Date: Fri, 28 May 2010 23:35:16 +0300 From: Dimitar Vassilev <dimitar.vassilev@gmail.com> To: FreeBSD Questions <questions@freebsd.org> Subject: Re: NANOBSD dhclient freeze Message-ID: <AANLkTimP9oViLZ0NIfhLI341huXm53yDCTcQcbU4Ilhd@mail.gmail.com> In-Reply-To: <AANLkTikUumMCZzYeRoAZueLG0vhfqgyrmqDEDb12of6v@mail.gmail.com> References: <AANLkTikUumMCZzYeRoAZueLG0vhfqgyrmqDEDb12of6v@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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-=08=1B[K0 __sysctl(0xbfbfe5a4,0x2,0xbfbfe5ac,0xbfbfe5b0,0x0,0x0) =3D 0 (0x0) mmap(0x0,328,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) =3D 671764480 (0x280a500= 0) munmap(0x280a5000,328) =3D 0 (0x0) __sysctl(0xbfbfe608,0x2,0x2809be3c,0xbfbfe610,0x0,0x0) =3D 0 (0x0) mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D 671764480 (0x280a5000) issetugid(0x28094867,0xbfbfeadc,0x104,0x0,0x0,0x0) =3D 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) =3D 2 (0x2) read(2,"Ehnt\^A\0\0\0\M^@\0\0\0\M^O\0\0"...,128) =3D 128 (0x80) lseek(2,0x80,SEEK_SET) =3D 128 (0x80) read(2,"/lib:/usr/lib:/usr/lib/compat:/u"...,143) =3D 143 (0x8f) close(2) =3D 0 (0x0) access("/lib/libc.so.7",0) =3D 0 (0x0) open("/lib/libc.so.7",O_RDONLY,00) =3D 2 (0x2) fstat(2,{ mode=3D-r--r--r-- ,inode=3D218,size=3D1369196,blksize=3D16384 }) = =3D 0 (0x0) pread(0x2,0x2809ad80,0x1000,0x0,0x0,0x0) =3D 4096 (0x1000) mmap(0x0,1376256,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) =3D 671797248 (0x280ad000) mmap(0x280ad000,1257472,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCOR= E,2,0x0) =3D 671797248 (0x280ad000) mmap(0x281e0000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,2,0x133000= ) =3D 673054720 (0x281e0000) mprotect(0x281e6000,94208,PROT_READ|PROT_WRITE) =3D 0 (0x0) close(2) =3D 0 (0x0) sysarch(0xa,0xbfbfe670,0x2805d89b,0x2809a2f8,0x28072929,0x2809a2f8) =3D 0 (= 0x0) mmap(0x0,736,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) =3D 673173504 (0x281fd00= 0) munmap(0x281fd000,736) =3D 0 (0x0) mmap(0x0,21896,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) =3D 673173504 (0x281fd= 000) munmap(0x281fd000,21896) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) =3D 0 (0x0) __sysctl(0xbfbfe624,0x2,0x805c520,0xbfbfe62c,0x0,0x0) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) =3D 0 (0x0) socket(PF_LOCAL,SOCK_DGRAM,0) =3D 2 (0x2) fcntl(2,F_SETFD,FD_CLOEXEC) =3D 0 (0x0) connect(2,{ AF_UNIX "/var/run/logpriv" },106) =3D 0 (0x0) __sysctl(0xbfbfe754,0x2,0x281ec400,0xbfbfe75c,0x0,0x0) =3D 0 (0x0) __sysctl(0xbfbfe644,0x2,0xbfbfe5dc,0xbfbfe64c,0x281d7c34,0xc) =3D 0 (0x0) __sysctl(0xbfbfe5dc,0x2,0x281ec4f8,0xbfbfe6a8,0x0,0x0) =3D 0 (0x0) readlink("/etc/malloc.conf",0xbfbfe763,1024) ERR#2 'No such file or direct= ory' issetugid(0x281d6951,0xbfbfe763,0x400,0xbfbfe75c,0x0,0x0) =3D 0 (0x0) break(0x8100000) =3D 0 (0x0) __sysctl(0xbfbfe9e4,0x2,0xbfbfe9ec,0xbfbfe9f0,0x0,0x0) =3D 0 (0x0) mmap(0x0,1048576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D 673173504 (0x281fd000) mmap(0x282fd000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D 674222080 (0x282fd000) munmap(0x281fd000,12288) =3D 0 (0x0) access("/etc/localtime",4) =3D 0 (0x0) open("/etc/localtime",O_RDONLY,00) =3D 3 (0x3) fstat(3,{ mode=3D-r--r--r-- ,inode=3D49456,size=3D751,blksize=3D16384 }) = =3D 0 (0x0) read(3,"TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,29000) =3D 751 (0x2ef) close(3) =3D 0 (0x0) clock_gettime(13,{1275078174.000000000 }) =3D 0 (0x0) open("/etc/dhclient.conf",O_RDONLY,0666) =3D 3 (0x3) fstat(3,{ mode=3D-rw-r--r-- ,inode=3D49370,size=3D277,blksize=3D16384 }) = =3D 0 (0x0) read(3,"# $FreeBSD: src/etc/dhclient.con"...,16384) =3D 277 (0x115) read(3,0x2820d000,16384) =3D 0 (0x0) close(3) =3D 0 (0x0) socket(PF_INET,SOCK_DGRAM,0) =3D 3 (0x3) ioctl(3,SIOCGIFMEDIA,0xbfbfebb0) =3D 0 (0x0) close(3) =3D 0 (0x0) open("/dev/null",O_RDWR,00) =3D 3 (0x3) stat("/etc/nsswitch.conf",{ mode=3D-rw-r--r-- ,inode=3D49408,size=3D327,blksize=3D16384 }) =3D 0 (0x0) open("/etc/nsswitch.conf",O_RDONLY,0666) =3D 4 (0x4) ioctl(4,TIOCGETA,0xbfbfe920) ERR#25 'Inappropriate ioctl for device' fstat(4,{ mode=3D-rw-r--r-- ,inode=3D49408,size=3D327,blksize=3D16384 }) = =3D 0 (0x0) read(4,"#\n# nsswitch.conf(5) - name ser"...,16384) =3D 327 (0x147) read(4,0x28234000,16384) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 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 directo= ry' access("/usr/local/lib/nss_compat.so.1",0) ERR#2 'No such file or director= y' 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) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 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 directo= ry' 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) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 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 director= y' 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 direc= tory' 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) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 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 directo= ry' 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) =3D 0 (0x0) ioctl(4,TIOCGETA,0xbfbfe920) ERR#25 'Inappropriate ioctl for device' close(4) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) =3D 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM= |SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXF= SZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) =3D 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) =3D 0 (0x0) geteuid() =3D 0 (0x0) open("/etc/spwd.db",O_RDONLY,00) =3D 4 (0x4) fcntl(4,F_SETFD,FD_CLOEXEC) =3D 0 (0x0) fstat(4,{ mode=3D-rw------- ,inode=3D49406,size=3D40960,blksize=3D16384 }) = =3D 0 (0x0) read(4,"\0\^F\^Ua\0\0\0\^B\0\0\^D\M-R\0"...,260) =3D 260 (0x104) pread(0x4,0x28235000,0x1000,0x6000,0x0,0x28235000) =3D 4096 (0x1000) pread(0x4,0x28236000,0x1000,0x4000,0x0,0x0) =3D 4096 (0x1000) pread(0x4,0x28237000,0x1000,0x5000,0x0,0x0) =3D 4096 (0x1000) pread(0x4,0x28246000,0x1000,0x7000,0x0,0x0) =3D 4096 (0x1000) pread(0x4,0x28247000,0x1000,0x8000,0x0,0x0) =3D 4096 (0x1000) pread(0x4,0x28248000,0x1000,0x1000,0x0,0x0) =3D 4096 (0x1000) pread(0x4,0x28249000,0x1000,0x2000,0x0,0x0) =3D 4096 (0x1000) pread(0x4,0x2824a000,0x1000,0x3000,0x0,0x0) =3D 4096 (0x1000) close(4) =3D 0 (0x0) pipe(0xbfbfec10) =3D 0 (0x0) fork() =3D 4769 (0x12a1) close(4) =3D 0 (0x0) open("/var/db/dhclient.leases.wlan0",O_EXLOCK|O_CREAT,00) =3D 4 (0x4) open("/var/db/dhclient.leases.wlan0",O_RDONLY,0666) =3D 6 (0x6) fstat(6,{ mode=3D---------- ,inode=3D106,size=3D1269,blksize=3D16384 }) =3D= 0 (0x0) read(6,"lease {\n interface "wlan0";\n "...,16384) =3D 1269 (0x4f5) read(6,0x28234000,16384) =3D 0 (0x0) close(6) =3D 0 (0x0) open("/var/db/dhclient.leases.wlan0",O_WRONLY|O_CREAT|O_TRUNC,0666) =3D 6 (= 0x6) fstat(6,{ mode=3D---------- ,inode=3D106,size=3D0,blksize=3D16384 }) =3D 0 = (0x0) issetugid(0x280b93f4,0x280bcb1c,0x28063178,0x280a9200,0x2809a2f8,0xbfbf4604= ) =3D 0 (0x0) open("/usr/share/zoneinfo/UTC",O_RDONLY,05001430570) ERR#2 'No such file or directory' issetugid(0x280b65c4,0x280bd344,0x28063178,0x280a9200,0x2809a2f8,0xbfbf4574= ) =3D 0 (0x0) open("/usr/share/zoneinfo/posixrules",O_RDONLY,05001430570) =3D 7 (0x7) fstat(7,{ mode=3D-r--r--r-- ,inode=3D733891,size=3D3519,blksize=3D16384 }) = =3D 0 (0x0) read(7,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,29000) =3D 3519 (0xdbf) close(7) =3D 0 (0x0) write(6,"lease {\n interface "wlan0";\n "...,423) =3D 423 (0x1a7) write(6,"lease {\n interface "wlan0";\n "...,423) =3D 423 (0x1a7) lseek(6,0x0,SEEK_CUR) =3D 846 (0x34e) ftruncate(6,846,0x280a700000000000) =3D 0 (0x0) fsync(0x6,0x34e,0x0,0x806d220,0x4,0x281eca80) =3D 0 (0x0) close(4) =3D 0 (0x0) clock_gettime(13,{1275078174.000000000 }) =3D 0 (0x0) fork() =3D 4770 (0x12a2) wait4(0xffffffff,0xbfbfebc8,0x0,0x0,0x2811e319,0x12a2) =3D 4770 (0x12a2) socket(PF_ROUTE,SOCK_RAW,0) =3D 4 (0x4) __sysctl(0xbfbfeb60,0x6,0x0,0xbfbfeb78,0x0,0x0) =3D 0 (0x0) __sysctl(0xbfbfeb60,0x6,0x2824b600,0xbfbfeb78,0x0,0x0) =3D 0 (0x0) open("/dev/bpf0",O_RDWR,00) =3D 7 (0x7) ioctl(7,BIOCSETIF,0x2824b020) =3D 0 (0x0) ioctl(7,BIOCVERSION,0xbfbfeb7c) =3D 0 (0x0) ioctl(7,BIOCIMMEDIATE,0xbfbfeb78) =3D 0 (0x0) ioctl(7,BIOCGBLEN,0xbfbfeb74) =3D 0 (0x0) ioctl(7,BIOCSETF,0xbfbfeb6c) =3D 0 (0x0) ioctl(7,BIOCSETWF,0xbfbfeb6c) =3D 0 (0x0) ioctl(7,BIOCLOCK,0x0) =3D 0 (0x0) socket(PF_INET,SOCK_RAW,17) =3D 8 (0x8) setsockopt(0x8,0x0,0x2,0xbfbfeb7c,0x4,0x11) =3D 0 (0x0) chroot("/var/empty") =3D 0 (0x0) chdir("/") =3D 0 (0x0) process exit, rval =3D 0 [=1B[1msamovar=1B[m]:=1B[7m/tmp=1B[27m# exit exit The only difference is that I get process exit, rval =3D 0. Any idea what should I do to pinpoint dhclient freezing? Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimP9oViLZ0NIfhLI341huXm53yDCTcQcbU4Ilhd>