Re: [HACKERS] CVSup help??

From: dg(at)illustra(dot)com (David Gould)
To: scrappy(at)hub(dot)org (The Hermit Hacker)
Cc: jdp(at)polstra(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] CVSup help??
Date: 1998-05-01 04:12:41
Message-ID: 9805010412.AA26398@hawk.illustra.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Here is what the log file shows for illustra:
>
> # grep illustra !$
> grep illustra cvsupd
> Apr 27 03:36:14 hub cvsupd[15904]: +757 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
> Apr 27 04:09:33 hub cvsupd[20474]: +759 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
> Apr 29 01:36:58 hub cvsupd[1662]: +832 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
> Apr 30 04:18:19 hub cvsupd[2873]: +866 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
> Apr 30 04:18:34 hub cvsupd[2990]: +867 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
> Apr 30 04:20:34 hub cvsupd[4246]: +868 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
> Apr 30 23:09:27 hub cvsupd[9460]: +891 ?(at)ifmxoak(dot)illustra(dot)com
> (leslie.illustra.com) [REL_15_2/15.4]
>
> Not sure why the ?(at)ifmxoak though...everyone else appears to have a proper
> userid in there...
>
> On Thu, 30 Apr 1998, David Gould wrote:
>
> >
> > I ran strace on it. Here is the relevant dialog. It looks like the server
> > just hangs up on me. Is there a log file on the server that might indicate
> > why?
> >
> > --------------
> > connect(4, {sin_family=AF_INET, sin_port=htons(5999), sin_addr=inet_addr("209.47.148.214")}, 16) = 0
> >
> > write(1, "Connected to postgresql.org\n", 28Connected to postgresql.org
> > ) = 28
> >
> >
> > read(4, "OK 15 4 REL_15_2 CVSup server re"..., 8192) = 36
> > write(4, "PROTO 15 4 REL_15_2\n", 20) = 20
> >
> > write(4, "USER ? leslie.illustra.com\n", 27) = 27
> > read(4, "OK\n", 8192) = 3
> >
> > write(4, "ATTR 6\n0\ne7\ne1\nf1\nf1\n9\n.\n"..., 25) = 25
> > read(4, "ATTR 6\n0\ne7\ne1\nf1\nf1\n9\n.\n"..., 8192) = 25
> >
> > write(4, "COLL pgsql cvs 2 66499\n.\n.\n", 27) = 27
> > read(4, "COLL pgsql cvs 66499\nPRFX /usr/"..., 8192) = 49
> >
> > bind(5, {sin_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("158.58.56.127")}, 16) = 0
> > listen(5, 8) = 0
> > write(4, "PORT 158 58 56 127 5814\n", 24) = 24
> >
> > accept(5, {sin_family=AF_INET, sin_port=htons(47873), sin_addr=inet_addr("24.0.0.0")}, [16]) = 6
> > close(5) = 0
> >
> > write(4, "COLL pgsql cvs\n", 15) = 15
> > write(4, "x\1\322\343\2\10", 6) = 6
> > write(4, "0\0\0h\0009", 6) = 6
> > write(4, ".\n", 2) = 2
> >
> > read(6, 0x819400c, 8192) = -1 ECONNRESET (Connection reset by peer)
> >
> >
> > write(1, "Updater failed: Premature EOF fr"..., 42Updater failed: Premature EOF from server
> > ) = 42
> > ----------------

Ok, I think I start to understand.

open("/var/run/utmp", O_RDONLY) = 5
read(5, "\10\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0"..., 56) = 56
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) = 56
... a bunch more reads from /var/run/utmp
read(5, "\\\361\377\277\0\0\0\0\0\0\0\0\0"..., 56) = 40
close(5) = 0
uname({sys="Linux", node="leslie.illustra.com", ...}) = 0
write(4, "USER ? leslie.illustra.com\n", 27) = 27

So you get the user '?' cause that is what cvsup sent after reading through
my /var/tmp/utmp.

I am using the staticly linked cvsup client on a glibc (RH 5) linux system.
I tried the dynamic linked one and it had real problems loading shared libs
even though I have an old libc5 available.

So, my guess is that the staticly linked libc in cvsup is not understanding
the format of utmp on a glibc system. Hence, it cannot figure out my user
name to send to your server, hence your server pulls the plug on me.

Any idea on how to get a glibc version of cvsup? Or should I just go to
the DEC Moduala-3 site and install all that (I am told this is a bit of
a production) and then try to get the source for cvsup and build it?

Thanks

-dg

David Gould dg(at)illustra(dot)com 510.628.3783 or 510.305.9468
Informix Software 300 Lakeside Drive Oakland, CA 94612
- A child of five could understand this! Fetch me a child of five.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-05-01 04:28:34 Re: [HACKERS] CVSup help??
Previous Message The Hermit Hacker 1998-05-01 04:00:49 Re: [HACKERS] CVSup help??