* Re: Weird date probs
[not found] <200006301431.IAA02461@ellpspace.math.ualberta.ca>
@ 2000-06-30 23:01 ` Tim Tuck
0 siblings, 0 replies; 2+ messages in thread
From: Tim Tuck @ 2000-06-30 23:01 UTC (permalink / raw)
To: Michal Jaegermann; +Cc: Alpha List
Michal Jaegermann wrote:
>
> >
> > I've got weird date probs on my AS 200 4/100.
>
> Versions??? Do you have RTC support compiled in your kernel?
Woops that would help wouldn't it :-)
I'm running 5.2 that was installed from the CD.
I should have included some history, I wasn't thinking clearly at the
time of the original mail.
Everything worked fine until I decided to upgrade gcc which I did from a
6.2 CD. I also upgraded Perl to the one from the RH6.2 CD. I did this so
I could compile and run MRTG since its doc claimed that Perl was broken
under 5.2 and after I compiled MRTG the "rateup" binary exhibited some
weirds which caused me to think I might need to upgrade gcc too.
>
> What about 'date' after 'hwclock --hctosys --utc'? What if you
> are not on root account ('date', that is)?
Same deal and all calls to date functions return random values too ie:
if I "touch" a file the resultant mod date and time is random.
> Run 'strace -o /tmp/datetrace date' and try to find out what is really
> called. You have to be root for that.
Here is the output from that:
[root@bass /tmp]# more datetrace
execve("/bin/date", ["date"], [/* 17 vars */]) = 0
brk(0) = 0x120107dc4
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555574000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libNoVersion.so.1", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=962392779, ...}) = 0
close(4) = 0
open("/lib/libNoVersion.so.1", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=962392779, ...}) = 0
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3"..., 8192) = 8192
mmap(0, 4831827000, 0x2000, 0 /* MAP_??? */, 0, 0) = 0x15555674000
mprotect(0x15555676000, 1044128, PROT_NONE) = 0
mmap(0x15555774000, 1044128, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555774000
close(4) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=962392779, ...}) = 0
mmap(0, 4831834872, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555576000
close(4) = 0
open("/lib/libc.so.6.1", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=962392779, ...}) = 0
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3"..., 8192) = 8192
mmap(0, 4831826640, 0x2000, 0 /* MAP_??? */, 0, 0) = 0x15555776000
mprotect(0x1555589a000, 1116360, PROT_NONE) = 0
mmap(0x15555996000, 1116360, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555996000
mmap(0x155559a6000, 1116360, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x155559a6000
close(4) = 0
munmap(0x15555576000, 9876) = 0
getxpid() = 3510
brk(0) = 0x120107dc4
brk(0x120107e14) = 0x120107e14
brk(0x120108000) = 0x120108000
SYS_78(0x11ffffc48, 0, 0x1555588f97a, 0x1, 0x6f6d2e) = -1 EILSEQ
(Invalid or incomplete multibyte or wide character)
SYS_0(0x11ffffc48, 0, 0x1555588f97a, 0, 0x6f6d2e) = -1 EOPNOTSUPP
(Operation not supported)
write(1466018902031, NULL, 438) = -1 ESRCH (No such process)
SYS_44(0x4, 0x11ffffa98, 0x2c, 0, 0x155559aa110) = 17
read(4, "\236\246\36p\237\272\353`\240\206"..., 944) = 944
read(4, "\0\1\0\1\2\1\2\1\2\1\2\1\2\1\2\1"..., 236) = 236
fstat(4, {st_mode=01, st_size=962392779, ...}) = 0
mmap(0, 4831836424, PROT_EXEC|0xe8, 0 /* MAP_??? */, 1466020045072, 0) = 0x15555576000
read(4, "\377\377\307\300\1\0\377\377\271"..., 8192) = 36
close(4) = 0
munmap(0x15555576000, 8192) = 0
fstat(1, {st_mode=01, st_size=962392779, ...}) = 0
mmap(0, 4831834712, 0x2000, 0 /* MAP_??? */, 1466020045072, 0) = 0x15555576000
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
write(1, "Sun Jan 11 02:31:08 EST 1970\n", 29) = 29
close(1) = 0
munmap(0x15555576000, 8192) = 0
exit(0) = ?
[root@bass /tmp]#
Comments? ideas ?
I surmise that one of the libs is broken and I not sure how to fix this.
My first thought is to go back to the previous version of gcc or is
there a more recent one again that I should upgrade to ?
thanks
Tim
^ permalink raw reply [flat|nested] 2+ messages in thread