Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 12:11:21 -0500 (EST)
From:      David Coder <dacoder@dcoder.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: gettimeofday
Message-ID:  <20021107113822.C6531-100000@porky.dcoder.com>
In-Reply-To: <20021107044635.GA19055@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 Nov 2002, Kris Kennaway wrote:

:Date: Wed, 6 Nov 2002 20:46:35 -0800
:From: Kris Kennaway <kris@obsecurity.org>
:To: David Coder <dacoder@dcoder.net>
:Cc: freebsd-stable@FreeBSD.ORG
:Subject: Re: gettimeofday
:
:On Wed, Nov 06, 2002 at 05:10:32PM -0500, David Coder wrote:
:>
:> the passwd command hangs on my 4.7-stable system.  truss shows that the
:> "gettimeofday()" call is not answered.  why would that happen?
:
:Can you please post the truss output?  It may be that the process is
:looping in userland, not hanging in the kernel via a system call (so
:truss wouldn't see it).
:
:Kris
:

Here's the output.  i don't know why the apparent call to yp.  it's not enabled.

thank you for your help.

david

mmap(0x0,1968,0x3,0x1000,-1,0x0)		 = 671498240 (0x28064000)
munmap(0x28064000,0x7b0)			 = 0 (0x0)
__sysctl(0xbfbffaa0,0x2,0x280629a8,0xbfbffa9c,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,0x3,0x1002,-1,0x0)		 = 671498240 (0x28064000)
geteuid()					 = 0 (0x0)
getuid()					 = 0 (0x0)
getegid()					 = 0 (0x0)
getgid()					 = 0 (0x0)
open("/var/run/ld-elf.so.hints",0x0,00)		 = 3 (0x3)
read(0x3,0xbfbffa80,0x80)			 = 128 (0x80)
lseek(3,0x80,0)					 = 128 (0x80)
read(0x3,0x28068000,0x37)			 = 55 (0x37)
close(3)					 = 0 (0x0)
access("/usr/lib/libcrypt.so.2",0)		 = 0 (0x0)
open("/usr/lib/libcrypt.so.2",0x0,027757775370)	 = 3 (0x3)
fstat(3,0xbfbffac8)				 = 0 (0x0)
read(0x3,0xbfbfea98,0x1000)			 = 4096 (0x1000)
mmap(0x0,102400,0x5,0x2,3,0x0)			 = 671531008 (0x2806c000)
mmap(0x28073000,4096,0x3,0x12,3,0x6000)		 = 671559680 (0x28073000)
mmap(0x28074000,69632,0x3,0x1012,-1,0x0)	 = 671563776 (0x28074000)
close(3)					 = 0 (0x0)
access("/usr/lib/librpcsvc.so.2",0)		 = 0 (0x0)
open("/usr/lib/librpcsvc.so.2",0x0,027757775370) = 3 (0x3)
fstat(3,0xbfbffac8)				 = 0 (0x0)
read(0x3,0xbfbfea98,0x1000)			 = 4096 (0x1000)
mmap(0x0,32768,0x5,0x2,3,0x0)			 = 671633408 (0x28085000)
mmap(0x2808c000,4096,0x3,0x12,3,0x6000)		 = 671662080 (0x2808c000)
close(3)					 = 0 (0x0)
access("/usr/lib/libutil.so.3",0)		 = 0 (0x0)
open("/usr/lib/libutil.so.3",0x0,027757775370)	 = 3 (0x3)
fstat(3,0xbfbffac8)				 = 0 (0x0)
read(0x3,0xbfbfea98,0x1000)			 = 4096 (0x1000)
mmap(0x0,36864,0x5,0x2,3,0x0)			 = 671666176 (0x2808d000)
mmap(0x28095000,4096,0x3,0x12,3,0x7000)		 = 671698944 (0x28095000)
close(3)					 = 0 (0x0)
access("/usr/lib/libc.so.4",0)			 = 0 (0x0)
open("/usr/lib/libc.so.4",0x0,027757775370)	 = 3 (0x3)
fstat(3,0xbfbffac8)				 = 0 (0x0)
read(0x3,0xbfbfea98,0x1000)			 = 4096 (0x1000)
mmap(0x0,622592,0x5,0x2,3,0x0)			 = 671703040 (0x28096000)
mmap(0x28117000,20480,0x3,0x12,3,0x80000)	 = 672231424 (0x28117000)
mmap(0x2811c000,73728,0x3,0x1012,-1,0x0)	 = 672251904 (0x2811c000)
close(3)					 = 0 (0x0)
mmap(0x0,1016,0x3,0x1000,-1,0x0)		 = 672325632 (0x2812e000)
munmap(0x2812e000,0x3f8)			 = 0 (0x0)
mmap(0x0,632,0x3,0x1000,-1,0x0)			 = 672325632 (0x2812e000)
munmap(0x2812e000,0x278)			 = 0 (0x0)
mmap(0x0,1616,0x3,0x1000,-1,0x0)		 = 672325632 (0x2812e000)
munmap(0x2812e000,0x650)			 = 0 (0x0)
mmap(0x0,1392,0x3,0x1000,-1,0x0)		 = 672325632 (0x2812e000)
munmap(0x2812e000,0x570)			 = 0 (0x0)
mmap(0x0,13272,0x3,0x1000,-1,0x0)		 = 672325632 (0x2812e000)
munmap(0x2812e000,0x33d8)			 = 0 (0x0)
sigaction(SIGILL,0xbfbffb20,0xbfbffb08)		 = 0 (0x0)
sigprocmask(0x1,0x0,0x280628dc)			 = 0 (0x0)
sigaction(SIGILL,0xbfbffb08,0x0)		 = 0 (0x0)
sigprocmask(0x1,0x280628a0,0xbfbffb48)		 = 0 (0x0)
sigprocmask(0x3,0x280628b0,0x0)			 = 0 (0x0)
getlogin(0x2811e884,0x11)			 = 0 (0x0)
geteuid()					 = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbff904,63)	 ERR#2 'No such file or directory'
mmap(0x0,4096,0x3,0x1002,-1,0x0)		 = 672325632 (0x2812e000)
break(0x8052000)				 = 0 (0x0)
break(0x8053000)				 = 0 (0x0)
stat("/etc/spwd.db",0xbfbff9d4)			 = 0 (0x0)
open("/etc/spwd.db",0x0,00)			 = 3 (0x3)
fcntl(0x3,0x2,0x1)				 = 0 (0x0)
read(0x3,0x8052000,0x104)			 = 260 (0x104)
break(0x8054000)				 = 0 (0x0)
break(0x8055000)				 = 0 (0x0)
break(0x8056000)				 = 0 (0x0)
lseek(3,0x6000,0)				 = 24576 (0x6000)
read(0x3,0x8055000,0x1000)			 = 4096 (0x1000)
break(0x8057000)				 = 0 (0x0)
close(3)					 = 0 (0x0)
stat("/etc/spwd.db",0xbfbffa44)			 = 0 (0x0)
open("/etc/spwd.db",0x0,0600)			 = 3 (0x3)
fcntl(0x3,0x2,0x1)				 = 0 (0x0)
read(0x3,0x8052000,0x104)			 = 260 (0x104)
lseek(3,0x5000,0)				 = 20480 (0x5000)
read(0x3,0x8055000,0x1000)			 = 4096 (0x1000)
__sysctl(0xbfbffa8c,0x2,0x28128920,0xbfbffa88,0x0,0x0) = 0 (0x0)
getpid()					 = 37399 (0x9217)
break(0x8058000)				 = 0 (0x0)
open("/var/yp/binding/NO.2",0x0,05003156554)	 ERR#2 'No such file or directory'
close(-1)					 ERR#9 'Bad file descriptor'
break(0x8059000)				 = 0 (0x0)
gettimeofday(0xbfbff4cc,0x0)			 = 0 (0x0)
getpid()					 = 37399 (0x9217)
socket(0x2,0x2,0x11)				 = 4 (0x4)
getsockname(0x4,{ AF_INET 0.0.0.0:0 },0xbfbff3e0) = 0 (0x0)
getsockopt(0x4,0x0,0x13,0xbfbff3d8,0xbfbff3dc)	 = 0 (0x0)
setsockopt(0x4,0x0,0x13,0xbfbff3d4,0x4)		 = 0 (0x0)
bind(0x4,{ AF_INET 0.0.0.0:0 },16)		 = 0 (0x0)
ioctl(4,FIONBIO,0xbfbff4c8)			 = 0 (0x0)
sendto(0x4,0x80539f8,0x38,0x0,0x8053808,0x10)	 = 56 (0x38)
gettimeofday(0xbfbff414,0x0)			 = 0 (0x0)
select(0x5,0xbfbff484,0x0,0x0,0xbfbff40c)	 = 0 (0x0)
sendto(0x4,0x80539f8,0x38,0x0,0x8053808,0x10)	 = 56 (0x38)
gettimeofday(0xbfbff414,0x0)			 = 0 (0x0)
select(0x5,0xbfbff484,0x0,0x0,0xbfbff40c)	 = 0 (0x0)
sendto(0x4,0x80539f8,0x38,0x0,0x8053808,0x10)	 = 56 (0x38)
gettimeofday(0xbfbff414,0x0)			 = 0 (0x0)
select(0x5,0xbfbff484,0x0,0x0,0xbfbff40c)	 = 0 (0x0)
sendto(0x4,0x80539f8,0x38,0x0,0x8053808,0x10)	 = 56 (0x38)
gettimeofday(0xbfbff414,0x0)			 = 0 (0x0)
select(0x5,0xbfbff484,0x0,0x0,0xbfbff40c)	 = 0 (0x0)
sendto(0x4,0x80539f8,0x38,0x0,0x8053808,0x10)	 = 56 (0x38)
gettimeofday(0xbfbff414,0x0)			 = 0 (0x0)
select(0x5,0xbfbff484,0x0,0x0,0xbfbff40c)	 = 0 (0x0)
sendto(0x4,0x80539f8,0x38,0x0,0x8053808,0x10)	 = 56 (0x38)
gettimeofday(0xbfbff414,0x0)			 = 0 (0x0)
SIGNAL 2
SIGNAL 2
SIGNAL 2
process exit, rval = 2


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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