Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 2010 09:32:09 +0300
From:      Dimitar Vassilev <dimitar.vassilev@gmail.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: NanoBSD weird startup messages
Message-ID:  <AANLkTikwzGeqT2ljrkMDj-ZaSBjpKSNENUhieXtmhOPL@mail.gmail.com>
In-Reply-To: <20100526052834.GC8866@dan.emsphone.com>
References:  <AANLkTilZm1uSdrskM0SxtUvjJ2CEs8d5axZrdus835ry@mail.gmail.com> <20100526052834.GC8866@dan.emsphone.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
> Did you maybe word-wrap a comment line in /etc/rc.conf so that "files" was
> the first word on a new line?  If that's not it, try setting RC_DEBUG=YES in
> /etc/rc.conf and see if you can pinpoint which startup script is causing you
> problems.
>
> --
>        Dan Nelson
>        dnelson@allantgroup.com
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>

Thanks a lot - I owe you a beer
When I pasted the stuff for dhcp the following stuff slipped
#dhcpd_includedir="<some_dir>"       # directory with config-
                                                  files to include

so rc.conf tries to start files and this kills the child in the beast.
What I'm left to cope with is troubleshoot why dhclient freezes on
getting the dhcpd  offer.
Log attached.
This behaviour has probably something to do with the stuff that I have
not compiled  needed NIS/libs and botched rc.conf.
Clues welcome
Thanks.
Dimitar

[-- Attachment #2 --]
Script started on Wed May 26 08:43:26 2010
FreeJak has logged on ttyv0 from local.
root has logged on ttyv1 from local.
root has logged on ttyv4 from local.
[samovar]:/usr/local# exitmake cleandir[23`pwdexitchsh/sbin/kldstattip ucom1

connected



FreeBSD/i386 (puffer.uxlab2.org) (ttyu0)



login: root
May 26 11:39:23 puffer login: ROOT LOGIN (root) ON ttyu0

Last login: Wed May 26 11:39:23 on ttyu0
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.

FreeBSD 8.1-PRERELEASE (ALIX4) #0: Wed May 26 05:24:26 EEST 2010

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.

puffer# truss /sbin/dhclient vr0

__sysctl(0xbfbfe684,0x2,0xbfbfe68c,0xbfbfe690,0x0,0x0) = 0 (0x0)
mmap(0x0,328,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 671698944 (0x28095000)
munmap(0x28095000,328)                           = 0 (0x0)
__sysctl(0xbfbfe6e8,0x2,0x2808be3c,0xbfbfe6f0,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 671698944 (0x28095000)
issetugid(0x280848a7,0xbfbfebac,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\^]\0\0\0"...,128) = 128 (0x80)
lseek(2,0x80,SEEK_SET)                           = 128 (0x80)
read(2,"/lib:/usr/lib:/usr/local/lib\0",29)      = 29 (0x1d)
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=155056,size=1114372,blksize=4096 }) = 0 (0x0)
pread(0x2,0x2808ad80,0x1000,0x0,0x0,0x0)         = 4096 (0x1000)
mmap(0x0,1126400,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 671731712 (0x2809d000)
mmap(0x2809d000,1007616,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE,2,0x0) = 671731712 (0x2809d000)
mmap(0x28193000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,2,0xf5000) = 672739328 (0x28193000)
mprotect(0x28199000,94208,PROT_READ|PROT_WRITE)  = 0 (0x0)
close(2)                                         = 0 (0x0)
sysarch(0xa,0xbfbfe750,0x2805b37b,0x2808a2f8,0x2806ddd9,0x2808a2f8) = 0 (0x0)
mmap(0x0,736,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 672858112 (0x281b0000)
munmap(0x281b0000,736)                           = 0 (0x0)
mmap(0x0,21512,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 672858112 (0x281b0000)
munmap(0x281b0000,21512)                         = 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(0xbfbfe704,0x2,0x805a520,0xbfbfe70c,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(0xbfbfe824,0x2,0x2819f0e0,0xbfbfe82c,0x0,0x0) = 0 (0x0)
__sysctl(0xbfbfe744,0x2,0xbfbfe6dc,0xbfbfe74c,0x2818b0b4,0xc) = 0 (0x0)
__sysctl(0xbfbfe6dc,0x2,0x2819f1d8,0xbfbfe788,0x0,0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbfe833,1024)     ERR#2 'No such file or directory'
issetugid(0x28189dd1,0xbfbfe833,0x400,0xbfbfe82c,0x0,0x0) = 0 (0x0)
break(0x8100000)                                 = 0 (0x0)
__sysctl(0xbfbfeab4,0x2,0xbfbfeabc,0xbfbfeac0,0x0,0x0) = 0 (0x0)
mmap(0x0,1048576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 672858112 (0x281b0000)
mmap(0x282b0000,327680,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 673906688 (0x282b0000)
munmap(0x281b0000,327680)                        = 0 (0x0)
access("/etc/localtime",4)                       = 0 (0x0)
open("/etc/localtime",O_RDONLY,00)               = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=236,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,{1274863163.000000000 })        = 0 (0x0)
open("/etc/dhclient.conf",O_RDONLY,0666)         = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=223,size=162,blksize=16384 }) = 0 (0x0)
read(3,"initial-interval 1;\nsend host-n"...,16384) = 162 (0xa2)
read(3,0x2820d000,16384)                         = 0 (0x0)
close(3)                                         = 0 (0x0)
socket(PF_INET,SOCK_DGRAM,0)                     = 3 (0x3)
ioctl(3,SIOCGIFMEDIA,0xbfbfec80)                 = 0 (0x0)
close(3)                                         = 0 (0x0)
open("/dev/null",O_RDWR,00)                      = 3 (0x3)
stat("/etc/nsswitch.conf",{ mode=-rw-r--r-- ,inode=162,size=323,blksize=16384 }) = 0 (0x0)
open("/etc/nsswitch.conf",O_RDONLY,0666)         = 4 (0x4)
ioctl(4,TIOCGETA,0xbfbfea10)                     ERR#25 'Inappropriate ioctl for device'
fstat(4,{ mode=-rw-r--r-- ,inode=162,size=323,blksize=16384 }) = 0 (0x0)
read(4,"#\n# nsswitch.conf(5) - name ser"...,16384) = 323 (0x143)
read(4,0x28236000,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/local/lib/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/local/lib/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/local/lib/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/local/lib/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,0xbfbfea10)                     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=203,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,0x28237000,0x1000,0x6000,0x0,0xc)      = 4096 (0x1000)
pread(0x4,0x28238000,0x1000,0x4000,0x0,0xbfbfe9e4) = 4096 (0x1000)
pread(0x4,0x28239000,0x1000,0x5000,0x0,0xbfbfe9e4) = 4096 (0x1000)
pread(0x4,0x28246000,0x1000,0x7000,0x0,0xbfbfe9e4) = 4096 (0x1000)
pread(0x4,0x28247000,0x1000,0x8000,0x0,0xbfbfe9e4) = 4096 (0x1000)
pread(0x4,0x28248000,0x1000,0x1000,0x0,0xbfbfe9e4) = 4096 (0x1000)
pread(0x4,0x28249000,0x1000,0x2000,0x0,0xbfbfe9e4) = 4096 (0x1000)
pread(0x4,0x2824a000,0x1000,0x3000,0x0,0xbfbfe9e4) = 4096 (0x1000)
close(4)                                         = 0 (0x0)
pipe(0xbfbfece0)                                 = 0 (0x0)
fork()                                           = 18782 (0x495e)
close(4)                                         = 0 (0x0)
open("/var/db/dhclient.leases.vr0",O_EXLOCK|O_CREAT,00) = 4 (0x4)
open("/var/db/dhclient.leases.vr0",O_RDONLY,0666) = 6 (0x6)
fstat(6,{ mode=---------- ,inode=37,size=0,blksize=16384 }) = 0 (0x0)
read(6,0x28236000,16384)                         = 0 (0x0)
close(6)                                         = 0 (0x0)
open("/var/db/dhclient.leases.vr0",O_WRONLY|O_CREAT|O_TRUNC,0666) = 6 (0x6)
lseek(6,0x0,SEEK_CUR)                            = 0 (0x0)
ftruncate(6,0,0x2809700000000000)                = 0 (0x0)
fsync(0x6,0x0,0x0,0x806b220,0x4,0x2819f420)      = 0 (0x0)
close(4)                                         = 0 (0x0)
clock_gettime(13,{1274863163.000000000 })        = 0 (0x0)
fork()                                           = 18889 (0x49c9)
wait4(0xffffffff,0xbfbfec98,0x0,0x0,0x280fa259,0x49c9) = 18889 (0x49c9)
socket(PF_ROUTE,SOCK_RAW,0)                      = 4 (0x4)
__sysctl(0xbfbfec30,0x6,0x0,0xbfbfec48,0x0,0x0)  = 0 (0x0)
__sysctl(0xbfbfec30,0x6,0x2823e200,0xbfbfec48,0x0,0x0) = 0 (0x0)
open("/dev/bpf0",O_RDWR,00)                      = 7 (0x7)
ioctl(7,BIOCSETIF,0x28236020)                    = 0 (0x0)
ioctl(7,BIOCVERSION,0xbfbfec4c)                  = 0 (0x0)
ioctl(7,BIOCIMMEDIATE,0xbfbfec48)                = 0 (0x0)
ioctl(7,BIOCGBLEN,0xbfbfec44)                    = 0 (0x0)
ioctl(7,BIOCSETF,0xbfbfec3c)                     = 0 (0x0)
ioctl(7,BIOCSETWF,0xbfbfec3c)                    = 0 (0x0)
ioctl(7,BIOCLOCK,0x0)                            = 0 (0x0)
socket(PF_INET,SOCK_RAW,17)                      = 8 (0x8)
setsockopt(0x8,0x0,0x2,0xbfbfec4c,0x4,0xbfbfecb8) = 0 (0x0)
chroot("/var/empty")                             = 0 (0x0)
chdir("/")                                       = 0 (0x0)
^C^C
^C^Z
Suspended
puffer# 

puffer# fg

truss /sbin/dhclient vr0
^C^Z
Suspended

^Z^C

puffer# fgtruss /sbin/dhclient vr0ps w-waux | grep devd

root  40165  0.0  0.2  1888   588  ??  Is   11:39AM   0:00.00 /sbin/devd
puffer# /etc/rc.d/devd stop

files: not found
Stopping devd.
puffer# /etc/rc.d/devd stoprttruss /etc/rc.d/devd start

__sysctl(0xbfbfe694,0x2,0xbfbfe69c,0xbfbfe6a0,0x0,0x0) = 0 (0x0)
mmap(0x0,328,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 671744000 (0x280a0000)
munmap(0x280a0000,328)                           = 0 (0x0)
__sysctl(0xbfbfe6f8,0x2,0x28096e3c,0xbfbfe700,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 671744000 (0x280a0000)
issetugid(0x2808f8a7,0xbfbfebbc,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\^]\0\0\0"...,128) = 128 (0x80)
lseek(2,0x80,SEEK_SET)                           = 128 (0x80)
read(2,"/lib:/usr/lib:/usr/local/lib\0",29)      = 29 (0x1d)
close(2)                                         = 0 (0x0)
access("/lib/libedit.so.7",0)                    = 0 (0x0)
open("/lib/libedit.so.7",O_RDONLY,00)            = 2 (0x2)
fstat(2,{ mode=-r--r--r-- ,inode=155078,size=88536,blksize=4096 }) = 0 (0x0)
pread(0x2,0x28095d80,0x1000,0x0,0x0,0x0)         = 4096 (0x1000)
mmap(0x0,86016,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 671776768 (0x280a8000)
mmap(0x280a8000,81920,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE,2,0x0) = 671776768 (0x280a8000)
mmap(0x280bc000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,2,0x14000) = 671858688 (0x280bc000)
close(2)                                         = 0 (0x0)
access("/lib/libncurses.so.8",0)                 = 0 (0x0)
open("/lib/libncurses.so.8",O_RDONLY,027757763354) = 2 (0x2)
fstat(2,{ mode=-r--r--r-- ,inode=155061,size=265620,blksize=4096 }) = 0 (0x0)
pread(0x2,0x28095d80,0x1000,0x0,0x0,0x0)         = 4096 (0x1000)
mmap(0x0,262144,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 671862784 (0x280bd000)
mmap(0x280bd000,249856,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE,2,0x0) = 671862784 (0x280bd000)
mmap(0x280fa000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,2,0x3d000) = 672112640 (0x280fa000)
close(2)                                         = 0 (0x0)
access("/lib/libc.so.7",0)                       = 0 (0x0)
open("/lib/libc.so.7",O_RDONLY,027757763354)     = 2 (0x2)
fstat(2,{ mode=-r--r--r-- ,inode=155056,size=1114372,blksize=4096 }) = 0 (0x0)
pread(0x2,0x28095d80,0x1000,0x0,0x0,0x0)         = 4096 (0x1000)
mmap(0x0,1126400,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 672124928 (0x280fd000)
mmap(0x280fd000,1007616,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE,2,0x0) = 672124928 (0x280fd000)
mmap(0x281f3000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,2,0xf5000) = 673132544 (0x281f3000)
mprotect(0x281f9000,94208,PROT_READ|PROT_WRITE)  = 0 (0x0)
close(2)                                         = 0 (0x0)
sysarch(0xa,0xbfbfe760,0x2806637b,0x280952f8,0x28078dd9,0x280952f8) = 0 (0x0)
mmap(0x0,1072,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673251328 (0x28210000)
munmap(0x28210000,1072)                          = 0 (0x0)
mmap(0x0,1024,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673251328 (0x28210000)
munmap(0x28210000,1024)                          = 0 (0x0)
mmap(0x0,5048,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673251328 (0x28210000)
munmap(0x28210000,5048)                          = 0 (0x0)
mmap(0x0,21512,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 673251328 (0x28210000)
munmap(0x28210000,21512)                         = 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(0xbfbfe714,0x2,0x8064aa0,0xbfbfe71c,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)
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)
getpid()                                         = 20610 (0x5082)
geteuid()                                        = 0 (0x0)
getppid()                                        = 20424 (0x4fc8)
__sysctl(0xbfbfe354,0x2,0x281ff0e0,0xbfbfe35c,0x0,0x0) = 0 (0x0)
__sysctl(0xbfbfe274,0x2,0xbfbfe20c,0xbfbfe27c,0x281eb0b4,0xc) = 0 (0x0)
__sysctl(0xbfbfe20c,0x2,0x281ff1d8,0xbfbfe2b8,0x0,0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbfe363,1024)     ERR#2 'No such file or directory'
issetugid(0x281e9dd1,0xbfbfe363,0x400,0xbfbfe35c,0x0,0x0) = 0 (0x0)
break(0x8100000)                                 = 0 (0x0)
__sysctl(0xbfbfe5e4,0x2,0xbfbfe5ec,0xbfbfe5f0,0x0,0x0) = 0 (0x0)
mmap(0x0,1048576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 673251328 (0x28210000)
mmap(0x28310000,983040,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 674299904 (0x28310000)
munmap(0x28210000,983040)                        = 0 (0x0)
getuid()                                         = 0 (0x0)
geteuid()                                        = 0 (0x0)
getgid()                                         = 0 (0x0)
getegid()                                        = 0 (0x0)
open("/etc/rc.d/devd",O_RDONLY,027757766520)     = 2 (0x2)
fcntl(2,F_DUPFD,0xa)                             = 10 (0xa)
close(2)                                         = 0 (0x0)
fcntl(10,F_SETFD,FD_CLOEXEC)                     = 0 (0x0)
sigaction(SIGINT,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGINT,{ 0x805da20 SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGINT,0x0,{ 0x805da20 SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGINT,{ 0x805da20 0x0 ss_t },0x0)     = 0 (0x0)
sigaction(SIGQUIT,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGQUIT,{ 0x805da20 SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGQUIT,0x0,{ 0x805da20 SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGQUIT,{ 0x805da20 0x0 ss_t },0x0)    = 0 (0x0)
sigaction(SIGTERM,0x0,{ SIG_DFL 0x0 ss_t })      = 0 (0x0)
sigaction(SIGTERM,{ SIG_DFL SA_RESTART ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigaction(SIGWINCH,0x0,{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGWINCH,{ SIG_DFL SA_RESTART ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
__getcwd("/root",256)                            = 0 (0x0)
read(10,"#!/bin/sh\n#\n# $FreeBSD: src/et"...,1023) = 456 (0x1c8)
open("/etc/rc.subr",O_RDONLY,027757765450)       = 2 (0x2)
fcntl(2,F_DUPFD,0xa)                             = 11 (0xb)
close(2)                                         = 0 (0x0)
fcntl(11,F_SETFD,FD_CLOEXEC)                     = 0 (0x0)
read(11,"# $NetBSD: rc.subr,v 1.67 2006/1"...,1023) = 1023 (0x3ff)
read(11,"d its contributors.\n# 4. Neithe"...,1023) = 1023 (0x3ff)
read(11,"nctions used by various rc scrip"...,1023) = 1023 (0x3ff)
read(11,"me}_enable\n\t\t;;\n\t1)\n\t\tec"...,1023) = 1023 (0x3ff)
read(11,"nd}, which will be forced to sta"...,1023) = 1023 (0x3ff)
read(11,"\n\n\tcase $1 in\n\t\t#\t"yes", "...,1023) = 1023 (0x3ff)
read(11,"tching PID upon success, nothing"...,1023) = 1023 (0x3ff)
read(11,"he output of ps generated by psa"...,1023) = 1023 (0x3ff)
read(11," _interp < $_script\t# read inte"...,1023) = 1023 (0x3ff)
read(11,""'\n\t\t\t\tif [ "$JID" -eq "$_j"...,1023) = 1023 (0x3ff)
read(11,"ument in the list of supported c"...,1023) = 1023 (0x3ff)
read(11,"ile $pidfile $command,\n#\t\t\t"...,1023) = 1023 (0x3ff)
read(11,"parated list of supplementary gr"...,1023) = 1023 (0x3ff)
read(11,"ally\n#\t\t\t\tdone after start_"...,1023) = 1023 (0x3ff)
read(11,"rc_pid\n#\t\t\t($sig_stop defaul"...,1023) = 1023 (0x3ff)
read(11,"as provided\n#\n#\nrun_rc_comman"...,1023) = 1023 (0x3ff)
read(11,"name=${procname:-${command}}\n\n"...,1023) = 1023 (0x3ff)
read(11,"{rc_pid} is not set, then run\n"...,1023) = 1023 (0x3ff)
read(11,"rt)\n\t\t\tif [ -z "$rc_fast" -a"...,1023) = 1023 (0x3ff)
read(11,"led to start ${name}"\n\t\t\t\tr"...,1023) = 1023 (0x3ff)
read(11," ${_rc_prefix}stop $rc_extra_arg"...,1023) = 1023 (0x3ff)
read(11,";\n\t\t\t\t\tesac\n\t\t\t\tdone"...,1023) = 1023 (0x3ff)
read(11,"rc_doit()\n{\n\tdebug "run_rc_co"...,1023) = 1023 (0x3ff)
read(11,"ra_commands pidfile procname \\"...,1023) = 1023 (0x3ff)
read(11,"bug "Sourcing /etc/defaults/rc.c"...,1023) = 1023 (0x3ff)
read(11,"$_msg"\n\t\t\t;;\n\t\tesac\n\tdo"...,1023) = 1023 (0x3ff)
read(11,"to stderr and log to the syslog."...,1023) = 1023 (0x3ff)
read(11,"n be one of the following:\n#\n#"...,1023) = 1023 (0x3ff)
read(11,"r current newer than archive\n\t"...,1023) = 1023 (0x3ff)
read(11,"$2"\n\tlinkdir="`dirname $link`""...,1023) = 1023 (0x3ff)
read(11,"tract rule number ($line)"\n\t\t"...,1023) = 1023 (0x3ff)
read(11,"ady initialized"\n\t\treturn\n\t"...,1023) = 1023 (0x3ff)
read(11,"5) file.  Returns 0 on success o"...,1023) = 1023 (0x3ff)
read(11,"warn "$_me: Unable to mount devf"...,1023) = 1023 (0x3ff)
read(11,"\nmount_md()\n{\n\tif [ -n "$3" "...,1023) = 1023 (0x3ff)
read(11,"ad kernel module $1"\n\t\t\tretu"...,1023) = 1023 (0x3ff)
read(11,"ontinue\n\t\t\tfi\n\t\t\tdevices"...,1023) = 1023 (0x3ff)
read(11,"="${local_rc} ${file}"\n\t\t\t\t"...,1023) = 1023 (0x3ff)
read(11,"_modules; do\n\t\t\tcase "${_f}""...,1023) = 293 (0x125)
pipe(0xbfbfd4bc)                                 = 0 (0x0)
fork()                                           = 20801 (0x5141)
close(3)                                         = 0 (0x0)
read(2,"FreeBSD\n",128)                          = 8 (0x8)
read(2,0xbfbfd5f8,128)                           = 0 (0x0)
close(2)                                         = 0 (0x0)
getpgrp()                                        = 20610 (0x5082)
wait4(0xffffffff,0xbfbfd4f8,0x2,0x0,0x213,0x1)   = 20801 (0x5141)
pipe(0xbfbfd63c)                                 = 0 (0x0)
fork()                                           = 20986 (0x51fa)
close(3)                                         = 0 (0x0)
read(2,"     0\n",128)                           = 7 (0x7)
read(2,0xbfbfd778,128)                           = 0 (0x0)
close(2)                                         = 0 (0x0)
getpgrp()                                        = 20610 (0x5082)
wait4(0xffffffff,0xbfbfd678,0x2,0x0,0x0,0x1)     = 20986 (0x51fa)
read(11,0x2830e400,1023)                         = 0 (0x0)
close(11)                                        = 0 (0x0)
pipe(0xbfbfe91c)                                 = 0 (0x0)
fork()                                           = 21027 (0x5223)
close(3)                                         = 0 (0x0)
read(2,"devd_enable\n",128)                      = 12 (0xc)
read(2,0xbfbfea58,128)                           = 0 (0x0)
close(2)                                         = 0 (0x0)
getpgrp()                                        = 20610 (0x5082)
wait4(0xffffffff,0xbfbfe958,0x2,0x0,0x2,0x1)     = 21027 (0x5223)
stat("/etc/defaults/rc.conf",{ mode=-r--r--r-- ,inode=2698,size=36853,blksize=16384 }) = 0 (0x0)
eaccess(0x283023a4,0x4,0x8066854,0xc010,0x28300000,0x28300768) = 0 (0x0)
open("/etc/defaults/rc.conf",O_RDONLY,027757763050) = 2 (0x2)
fcntl(2,F_DUPFD,0xa)                             = 11 (0xb)
close(2)                                         = 0 (0x0)
fcntl(11,F_SETFD,FD_CLOEXEC)                     = 0 (0x0)
read(11,"#!/bin/sh\n\n# This is rc.conf -"...,1023) = 1023 (0x3ff)
read(11,"from rc.d\nrc_info="NO"\t\t# Ena"...,1023) = 1023 (0x3ff)
read(11,"path=""\t# Override kern.module_"...,1023) = 1023 (0x3ff)
read(11,"evices="NO" \t# Devices to autom"...,1023) = 1023 (0x3ff)
read(11,"sck -y if the initial preen fail"...,1023) = 1023 (0x3ff)
read(11,"r fxp0 only\nbackground_dhclient"...,1023) = 1023 (0x3ff)
read(11,"/24" # IPv4 Network address for "...,1023) = 1023 (0x3ff)
read(11,"allowservices=""\t# List of IPs "...,1023) = 1023 (0x3ff)
read(11," flags for IKE daemon\nipsec_ena"...,1023) = 1023 (0x3ff)
read(11," the ipfilter monitor program li"...,1023) = 1023 (0x3ff)
read(11,"\t\t# IP address of pfsync peer "...,1023) = 1023 (0x3ff)
read(11,"face name from fxp0 to net0.\n#v"...,1023) = 1023 (0x3ff)
read(11,"g_gif0="10.1.1.1 10.1.2.1"\t# Ex"...,1023) = 1023 (0x3ff)
read(11," uses default ppp_mode and ppp_n"...,1023) = 1023 (0x3ff)
read(11,"ed_pidfile="/var/run/named/pid" "...,1023) = 1023 (0x3ff)
read(11,"erberos 5 admin daemon\nkpasswdd"...,1023) = 1023 (0x3ff)
read(11,"=""\t\t\t# Additional flags to s"...,1023) = 1023 (0x3ff)
read(11,".lockd (if enabled).\nrpc_statd_"...,1023) = 1023 (0x3ff)
read(11," if you want a different one.\nn"...,1023) = 1023 (0x3ff)
read(11,"boot time (or NO).\nnis_ypxfrd_f"...,1023) = 1023 (0x3ff)
read(11,"/mrouted"\t# Name of IPv4 multic"...,1023) = 1023 (0x3ff)
read(11,"address (or local).\n#atm_scspar"...,1023) = 1023 (0x3ff)
read(11,"for 'one'\n#rfcomm_pppd_server_o"...,1023) = 1023 (0x3ff)
read(11,"utes=""\t\t# Set to static route"...,1023) = 1023 (0x3ff)
read(11,"en 64"\t# Sample manual assign e"...,1023) = 1023 (0x3ff)
read(11,"addr for 6to4 IPv6 over IPv4\n\t"...,1023) = 1023 (0x3ff)
read(11,"stem console options  ##########"...,1023) = 1023 (0x3ff)
read(11,"sed_enable="NO"\t# Run the mouse"...,1023) = 1023 (0x3ff)
read(11,"/sbin/sendmail"\t\t# sendmail pr"...,1023) = 1023 (0x3ff)
read(11,"ss to the audit daemon.\ncron_en"...,1023) = 1023 (0x3ff)
read(11,"eck_quotas="YES"\t# Check quotas"...,1023) = 1023 (0x3ff)
read(11,"dconfig32_paths="/usr/lib32" # 3"...,1023) = 1023 (0x3ff)
read(11,""2048"\t# Size of the entropy ca"...,1023) = 1023 (0x3ff)
read(11,"Perform housekeeping for the vi("...,1023) = 1023 (0x3ff)
read(11,"ce 'example' with the jail's nam"...,1023) = 1023 (0x3ff)
read(11,"il_example_devfs_enable="NO"\t\t"...,1023) = 1023 (0x3ff)
read(11,"e\n\t}\nfi\nroot_rw_mount=NO\n",1023)   = 25 (0x19)
read(11,0x2830e400,1023)                         = 0 (0x0)
close(11)                                        = 0 (0x0)
stat("/etc/rc.conf",{ mode=-rw-r--r-- ,inode=238,size=2124,blksize=16384 }) = 0 (0x0)
eaccess(0x28302410,0x4,0x8066854,0xc010,0x28300000,0x28300768) = 0 (0x0)
open("/etc/rc.conf",O_RDONLY,027757761550)       = 2 (0x2)
fcntl(2,F_DUPFD,0xa)                             = 11 (0xb)
close(2)                                         = 0 (0x0)
fcntl(11,F_SETFD,FD_CLOEXEC)                     = 0 (0x0)
read(11,"# Enable network daemons for use"...,1023) = 1023 (0x3ff)
read(11," as\ndhcpd_chroot_enable="YES"  "...,1023) = 1023 (0x3ff)
stat("/sbin/files",0xbfbfe0f8)                   ERR#2 'No such file or directory'
stat("/bin/files",0xbfbfe0f8)                    ERR#2 'No such file or directory'
stat("/usr/sbin/files",0xbfbfe0f8)               ERR#2 'No such file or directory'
stat("/usr/bin/files",0xbfbfe0f8)                ERR#2 'No such file or directory'
stat("/usr/games/files",0xbfbfe0f8)              ERR#2 'No such file or directory'
stat("/usr/local/sbin/files",0xbfbfe0f8)         ERR#2 'No such file or directory'
stat("/usr/local/bin/files",0xbfbfe0f8)          ERR#2 'No such file or directory'
stat("/root/bin/files",0xbfbfe0f8)               ERR#2 'No such file or directory'
write(2,"files: not found\n",17)                 ERR#9 'Bad file descriptor'
read(11,"10.1/24 192.168.10.1"\nroute_clu"...,1023) = 78 (0x4e)
read(11,0x2830e400,1023)                         = 0 (0x0)
close(11)                                        = 0 (0x0)
stat("/etc/rc.conf.local",0xbfbfe2b8)            ERR#2 'No such file or directory'
stat("/etc/rc.conf.d/devd",0xbfbfe758)           ERR#2 'No such file or directory'
pipe(0xbfbfe65c)                                 = 0 (0x0)
fork()                                           = 21045 (0x5235)
close(3)                                         = 0 (0x0)
read(2,"\n",128)                                 = 1 (0x1)
read(2,0xbfbfe798,128)                           = 0 (0x0)
close(2)                                         = 0 (0x0)
getpgrp()                                        = 20610 (0x5082)
wait4(0xffffffff,0xbfbfe698,0x2,0x0,0x1,0x1)     = 21045 (0x5235)
pipe(0xbfbfe4bc)                                 = 0 (0x0)
fork()                                           = 21121 (0x5281)
close(3)                                         = 0 (0x0)
read(2,0xbfbfe5f8,128)                           = 0 (0x0)
close(2)                                         = 0 (0x0)
getpgrp()                                        = 20610 (0x5082)
wait4(0xffffffff,0xbfbfe4f8,0x2,0x0,0x2,0x1)     = 21121 (0x5281)
stat("/sbin/devd",{ mode=-r-xr-xr-x ,inode=140364,size=378804,blksize=4096 }) = 0 (0x0)
eaccess(0x28302434,0x1,0x80631e1,0x0,0x0,0x283024a4) = 0 (0x0)
geteuid()                                        = 0 (0x0)
Starting devd.
write(1,"Starting devd.\n",15)                   = 15 (0xf)
fork()                                           = 21293 (0x532d)
getpgrp()                                        = 20610 (0x5082)
wait4(0xffffffff,0xbfbfe138,0x2,0x0,0x283013c0,0x1) = 21293 (0x532d)
read(10,0x8066240,1023)                          = 0 (0x0)
process exit, rval = 0
puffer# more //etc/nsswitch.conf 

[?1h=
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1.10.1 2009/08/03 08:13:06 kensmith Exp $
#
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

[?1l>puffer# vi~.~.~exit

There are suspended jobs.
puffer# fg

truss /sbin/dhclient vr0
^C
^C^Z
Suspended
^C

puffer# ^D
There are suspended jobs.
puffer# ^Dlogout


FreeBSD/i386 (puffer.uxlab2.org) (ttyu0)



login: ~.  ~.  ~.  ~.  ~.  ~.  ~.  ~.  ~.


FreeBSD/i386 (puffer.uxlab2.org) (ttyu0)



login: ~
[EOT]
root has logged on ttyv2 from local.
[samovar]:/usr/local# exit

exit

Script done on Wed May 26 08:50:41 2010
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikwzGeqT2ljrkMDj-ZaSBjpKSNENUhieXtmhOPL>