[143] in netbsd-help mailing list archive
Re: running Linux weather
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Apr 3 21:07:40 1995
To: ericding@MIT.EDU
Cc: netbsd-help@MIT.EDU, netbsd-dev@MIT.EDU
In-Reply-To: Your message of "Sun, 02 Apr 1995 05:08:10 GMT."
<199504020508.FAA00606@hesed.MIT.EDU>
Date: Mon, 03 Apr 1995 21:07:19 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> I've got NetBSD 1.0A, w/ Linux emul compiled in, so I thought I'd
> try it out with the weather executable in the weather locker, since
> there isn't yet a NetBSD executable... but I get the following
> error:
> weather: can't authenticate to weather server: Can't lock ticket
> file; try later (tf_util)
This looks like a gap in the Linux emulation regarding file locking.
I ran ktrace and kdump and got the following fragment:
9114 weather RET compat_43_recv 512/0x200
9114 weather CALL close(0x5)
9114 weather RET close 0
9114 weather CALL #107 (obsolete vtimes)(0xc818,0xf7bfb4e8)
9114 weather NAMI "/emul/linux/tmp/tkt_ghudson_null"
9114 weather NAMI "/tmp/tkt_ghudson_null"
9114 weather RET #107 (obsolete vtimes) 0
9114 weather CALL getuid
9114 weather RET getuid 3622/0xe26
9114 weather CALL open(0xc818,0,0x180)
9114 weather NAMI "/emul/linux/tmp/tkt_ghudson_null"
9114 weather NAMI "/tmp/tkt_ghudson_null"
9114 weather RET open 5
9114 weather CALL reboot(0x5,0x6,0xf7bfb4c0)
9114 weather RET reboot -1 errno -22 Unknown error: 4294967274
9114 weather CALL compat_43_setreuid(0,0xf7bfb4b4,0xf7bfb4b0)
9114 weather RET compat_43_setreuid 0
9114 weather CALL #67 (obsolete vread)(0xe,0xf7bfb4c8,0xf7bfb4b8)
9114 weather RET #67 (obsolete vread) 0
9114 weather CALL fchdir(0)
9114 weather RET fchdir 796957511/0x2f809b47
9114 weather CALL recvmsg(0x2)
9114 weather RET recvmsg 0
9114 weather CALL vadvise(0,0,0)
9114 weather PSIG SIGALRM caught handler=0x6001cca8 mask=0x2000 code=0x0
9114 weather RET vadvise -1 errno -4 Unknown error: 4294967292
9114 weather CALL sigreturn(0xf7bfb444)
9114 weather RET sigreturn JUSTRETURN
9114 weather CALL fchdir(0)
9114 weather RET fchdir 796957513/0x2f809b49
9114 weather CALL #67 (obsolete vread)(0xe,0xf7bfb4b8,0)
9114 weather RET #67 (obsolete vread) 0
9114 weather CALL recvmsg(0)
9114 weather RET recvmsg 0
9114 weather CALL compat_43_setreuid(0x2,0xf7bfb4b0,0)
9114 weather RET compat_43_setreuid 0
9114 weather CALL reboot(0x5,0x6,0xf7bfb4bc)
9114 weather RET reboot -1 errno -22 Unknown error: 4294967274
9114 weather CALL close(0x5)
9114 weather RET close 0
9114 weather CALL write(0x2,0xf7bfc3d8,0x5b)
9114 weather GIO fd 2 wrote 91 bytes
"weather: can't authenticate to weather server: Can't lock ticket file; tr\
y later (tf_util)
"
The call to "reboot()" looks like the first problem.