Date: Wed, 19 Sep 2001 02:23:28 +0200 From: Dennis Berger <Dennis.Berger@nipsi.de> To: freebsd-hackers@freebsd.org Subject: problem: FreeBSD iplog tun-device Message-ID: <3BA7E580.9CFE9EBD@nipsi.de>
next in thread | raw e-mail | index | archive | help
For some reason iplog doesn't work for tun-devices I don't know why, I think it happens after forking a new process, then a resource is not available. note this happens only if I run "iplog -i tun0", "iplog -i xl0" for example works fine. Maybe it happens because tun-device is opened by user-ppp. But a few month ago iplog works fine with tun-device although the device was opened. I added two ifconfigs and one processtrace of iplog. ------------------------------- Nipsi# ifconfig tun0 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492 inet6 fe80::210:4bff:feb3:ecd5%tun0 prefixlen 64 scopeid 0xc inet 213.23.32.65 --> 145.253.1.164 netmask 0xffffff00 Opened by PID 204 -------------------------------- -------------------------------- xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 172.16.1.1 netmask 0xffff0000 broadcast 172.16.255.255 inet6 fe80::210:4bff:feb3:ecd5%xl0 prefixlen 64 scopeid 0x1 ether 00:10:4b:b3:ec:d5 media: Ethernet autoselect (100baseTX) status: active ------------------------------- -------------------------------------- Nipsi# truss -S iplog -i tun0 __sysctl(0xbfbffad0,0x2,0x28068c08,0xbfbffacc,0x0,0x0) = 0 (0x0) mmap(0x0,32768,0x3,0x1002,-1,0x0) = 671522816 (0x2806a000) geteuid() = 0 (0x0) getuid() = 0 (0x0) getegid() = 0 (0x0) getgid() = 0 (0x0) open("/var/run/ld-elf.so.hints",0,00) = 3 (0x3) read(0x3,0xbfbffab0,0x80) = 128 (0x80) lseek(3,0x80,0) = 128 (0x80) read(0x3,0x2806e000,0x51) = 81 (0x51) close(3) = 0 (0x0) access("/usr/lib/libpcap.so.2",0) = 0 (0x0) open("/usr/lib/libpcap.so.2",0,027757775450) = 3 (0x3) fstat(3,0xbfbffaf8) = 0 (0x0) read(0x3,0xbfbfeac8,0x1000) = 4096 (0x1000) mmap(0x0,106496,0x5,0x2,3,0x0) = 671555584 (0x28072000) mmap(0x2808a000,4096,0x3,0x12,3,0x17000) = 671653888 (0x2808a000) mmap(0x2808b000,4096,0x3,0x1012,-1,0x0) = 671657984 (0x2808b000) close(3) = 0 (0x0) access("/usr/lib/libc_r.so.4",0) = 0 (0x0) open("/usr/lib/libc_r.so.4",0,027757775450) = 3 (0x3) fstat(3,0xbfbffaf8) = 0 (0x0) read(0x3,0xbfbfeac8,0x1000) = 4096 (0x1000) mmap(0x0,745472,0x5,0x2,3,0x0) = 671662080 (0x2808c000) mmap(0x28122000,24576,0x3,0x12,3,0x95000) = 672276480 (0x28122000) mmap(0x28128000,106496,0x3,0x1012,-1,0x0) = 672301056 (0x28128000) close(3) = 0 (0x0) sigaction(SIGILL,0xbfbffb50,0xbfbffb38) = 0 (0x0) sigprocmask(0x1,0x0,0x28068b3c) = 0 (0x0) sigaction(SIGILL,0xbfbffb38,0x0) = 0 (0x0) getpid() = 16306 (0x3fb2) fcntl(0x0,0x3,0x0) = 2 (0x2) fcntl(0x1,0x3,0x0) = 2 (0x2) fcntl(0x2,0x3,0x0) = 2 (0x2) pipe() = 3 (0x3) fcntl(0x3,0x3,0x0) = 2 (0x2) fcntl(0x3,0x4,0x6) = 0 (0x0) fcntl(0x4,0x3,0x0) = 2 (0x2) fcntl(0x4,0x4,0x6) = 0 (0x0) readlink("/etc/malloc.conf",0xbfbff9a4,63) ERR#2 'No such file or directory' mmap(0x0,4096,0x3,0x1002,-1,0x0) = 672407552 (0x28142000) break(0x8059000) = 0 (0x0) break(0x805a000) = 0 (0x0) break(0x805b000) = 0 (0x0) break(0x805c000) = 0 (0x0) mmap(0xbfaff000,4096,0x0,0x1000,-1,0x0) = -1078988800 (0xbfaff000) gettimeofday(0x28124188,0x0) = 0 (0x0) break(0x8066000) = 0 (0x0) sigaltstack(0x2813fd40,0x0) = 0 (0x0) sigaction(SIGHUP,0x0,0x2813c5c0) = 0 (0x0) sigaction(SIGINT,0x0,0x2813c5d8) = 0 (0x0) sigaction(SIGQUIT,0x0,0x2813c5f0) = 0 (0x0) sigaction(SIGILL,0x0,0x2813c608) = 0 (0x0) sigaction(SIGTRAP,0x0,0x2813c620) = 0 (0x0) sigaction(SIGABRT,0x0,0x2813c638) = 0 (0x0) sigaction(SIGEMT,0x0,0x2813c650) = 0 (0x0) sigaction(SIGFPE,0x0,0x2813c668) = 0 (0x0) sigaction(SIGBUS,0x0,0x2813c698) = 0 (0x0) sigaction(SIGSEGV,0x0,0x2813c6b0) = 0 (0x0) sigaction(SIGSYS,0x0,0x2813c6c8) = 0 (0x0) sigaction(SIGPIPE,0x0,0x2813c6e0) = 0 (0x0) sigaction(SIGALRM,0x0,0x2813c6f8) = 0 (0x0) sigaction(SIGTERM,0x0,0x2813c710) = 0 (0x0) sigaction(SIGURG,0x0,0x2813c728) = 0 (0x0) sigaction(SIGTSTP,0x0,0x2813c758) = 0 (0x0) sigaction(SIGCONT,0x0,0x2813c770) = 0 (0x0) sigaction(SIGCHLD,0x0,0x2813c788) = 0 (0x0) sigaction(SIGTTIN,0x0,0x2813c7a0) = 0 (0x0) sigaction(SIGTTOU,0x0,0x2813c7b8) = 0 (0x0) sigaction(SIGIO,0x0,0x2813c7d0) = 0 (0x0) sigaction(SIGXCPU,0x0,0x2813c7e8) = 0 (0x0) sigaction(SIGXFSZ,0x0,0x2813c800) = 0 (0x0) sigaction(SIGVTALRM,0x0,0x2813c818) = 0 (0x0) sigaction(SIGPROF,0x0,0x2813c830) = 0 (0x0) sigaction(SIGWINCH,0x0,0x2813c848) = 0 (0x0) sigaction(SIGINFO,0x0,0x2813c860) = 0 (0x0) sigaction(SIGUSR1,0x0,0x2813c878) = 0 (0x0) sigaction(SIGUSR2,0x0,0x2813c890) = 0 (0x0) sigaction(SIGPROF,0xbfbffa88,0x0) = 0 (0x0) sigaction(SIGINFO,0xbfbffa88,0x0) = 0 (0x0) sigaction(SIGCHLD,0xbfbffa88,0x0) = 0 (0x0) sigprocmask(0x3,0x0,0x281241f8) = 0 (0x0) __sysctl(0xbfbffa80,0x2,0xbfbffaa0,0xbfbffa7c,0x0,0x0) = 0 (0x0) getdtablesize() = 32768 (0x8000) break(0x8086000) = 0 (0x0) break(0x80c6000) = 0 (0x0) break(0x80c7000) = 0 (0x0) fcntl(0x0,0x4,0x6) = 0 (0x0) fcntl(0x1,0x4,0x6) = 0 (0x0) fcntl(0x2,0x4,0x6) = 0 (0x0) break(0x80c8000) = 0 (0x0) sigprocmask(0x1,0x28068b00,0xbfbffb78) = 0 (0x0) sigprocmask(0x3,0x28068b10,0x0) = 0 (0x0) open("/usr/local/etc/iplog.conf",0,00) ERR#2 'No such file or directory' break(0x80c9000) = 0 (0x0) socket(0x1,0x2,0x0) = 5 (0x5) fcntl(0x5,0x3,0x0) = 2 (0x2) fcntl(0x5,0x4,0x6) = 0 (0x0) fcntl(0x5,0x2,0x1) = 0 (0x0) connect(0x5,0xbfbffac8,0x6a) = 0 (0x0) gettimeofday(0xbfbfee5c,0x0) = 0 (0x0) access("/etc/localtime",4) = 0 (0x0) open("/etc/localtime",0,00) = 6 (0x6) fcntl(0x6,0x3,0x0) = 0 (0x0) fcntl(0x6,0x4,0x4) = 0 (0x0) fstat(6,0xbfbfece4) = 0 (0x0) read(0x6,0xbfbfc9d8,0x1f08) = 837 (0x345) fstat(6,0xbfbfc924) = 0 (0x0) fcntl(0x6,0x3,0x0) = 4 (0x4) fcntl(0x6,0x4,0x0) = 0 (0x0) close(6) = 0 (0x0) getpid() = 16306 (0x3fb2) sendto(0x5,0xbfbff2e4,0x30,0x0,0x0,0x0) = 48 (0x30) fork() = 16307 (0x3fb3) sigreturn(0x8065e7c) = 16307 (0x3fb3) read(0x3,0x805bf38,0x80) ERR#35 'Resource temporarily unavailable' fcntl(0x0,0x4,0x6) = 0 (0x0) fcntl(0x1,0x4,0x6) = 0 (0x0) fcntl(0x2,0x4,0x6) = 0 (0x0) fcntl(0x5,0x4,0x6) = 0 (0x0) setitimer(0x2,0xbfbffb74,0x0) = 0 (0x0) close(3) = 0 (0x0) close(4) = 0 (0x0) fcntl(0x0,0x3,0x0) = 6 (0x6) fcntl(0x0,0x4,0x2) = 0 (0x0) fcntl(0x1,0x3,0x0) = 2 (0x2) fcntl(0x1,0x4,0x2) = 0 (0x0) fcntl(0x2,0x3,0x0) = 2 (0x2) fcntl(0x2,0x4,0x2) = 0 (0x0) fcntl(0x5,0x3,0x0) = 6 (0x6) fcntl(0x5,0x4,0x2) = 0 (0x0) exit(0x0) process exit, rval = 0 ----------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA7E580.9CFE9EBD>