Bug#1925: rusers segfault - more info
Here are some forwarded messages from linux-kernel, which may be
helpful.
Ian.
------- start of digest (2 messages) (RFC 934 encapsulation) -------
From: pp@pfawww.pp.se (Per Persson)
Sender: owner-linux-kernel@vger.rutgers.edu
To: linux-kernel@vger.rutgers.edu
Subject: The rusers bug.
Date: Fri, 08 Mar 1996 14:32:51 GMT
Message-ID: <y3yu400sdji.fsf@pfawww.pp.se>
I read an old bug report about rusers but there were no patch
available at that time, I'm just wondering if someone has fixed this
or if someone knows what I should do to get a working rusers (or what
I should fix if it isn't rusers itself which is broken).
The last part of the trace says;
write(1, "localhost pp pp pp pp"..., 34localhost pp ) = 34
brk(0xd000) = 0xd000
select(256, [3], NULL, NULL, {4, 0}) = 1 (in [3], left {4, 0})
recvfrom(3, "14\301\341\0\0\0\1\0\0\0\0\0\0\0"..., 8800, 0,
{sin_family=AF_INET, sin_port=htons(111),
sin_addr=inet_addr("193.44.91.7")}, [16]) = 244
- --- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
Any ideas? I need to get this to work to make another program work
which uses rpc.rusersd and crashes with the same trace...
(I don't read the mailing list, I just read linux.dev.kernel (newsfroup)
so please reply by mail).
- --
anum meum aperies, asperge me spermate tuo et inquinabor
url; http://pfawww.pp.se/~pp/ email; <pp@pfawww.pp.se>
phone#'s; work/home/fax: +46 (0)18 100899/247473/103737
------------------------------
From: NIIBE Yutaka <gniibe@mri.co.jp>
Sender: owner-linux-kernel@vger.rutgers.edu
To: pp@pfawww.pp.se
Cc: linux-kernel@vger.rutgers.edu
Subject: The rusers bug.
Date: Sun, 10 Mar 1996 08:29:45 GMT
Message-ID: <199603090603.PAA07493@megatherium.mri.co.jp>
Per Persson writes:
> I read an old bug report about rusers but there were no patch
> available at that time, I'm just wondering if someone has fixed this
> or if someone knows what I should do to get a working rusers (or what
> I should fix if it isn't rusers itself which is broken).
[...]
> Any ideas? I need to get this to work to make another program work
> which uses rpc.rusersd and crashes with the same trace...
It's not kernel problem. There are two problem, rusers and libc.
I'm using rusers of NetKit-B-0.06 and libc-5.3.5.
Here is a patch for rusers.
I'll send you another patch for libc later.
- --
NIIBE Yutaka
=================
- --- rusers/rnusers_xdr.c~
+++ rusers/rnusers_xdr.c
@@ -14,22 +14,18 @@
XDR *xdrs;
struct ru_utmp *objp;
{
- - char *ptr;
int size;
- - ptr = objp->ut_line;
size = sizeof(objp->ut_line);
- - if (!xdr_bytes(xdrs, &ptr, &size, size)) {
+ if (!xdr_bytes(xdrs, &objp->ut_line, &size, size)) {
return (FALSE);
}
- - ptr = objp->ut_name;
size = sizeof(objp->ut_line);
- - if (!xdr_bytes(xdrs, &ptr, &size, size)) {
+ if (!xdr_bytes(xdrs, &objp->ut_name, &size, size)) {
return (FALSE);
}
- - ptr = objp->ut_host;
size = sizeof(objp->ut_host);
- - if (!xdr_bytes(xdrs, &ptr, &size, size)) {
+ if (!xdr_bytes(xdrs, &objp->ut_host, &size, size)) {
return (FALSE);
}
if (!xdr_long(xdrs, &objp->ut_time)) {
=================
------- end -------
Reply to: