[PROXYPER] BUG? The new personal proxies eat blocks (output included)

nfo at deskmail.com nfo at deskmail.com
Sun Jan 10 08:51:15 EST 1999


Buffer overrun seems to be a problem in the win32 pproxy v301 as 
well. I have a small network of old 486's here running behind a 
firewall. I set my pproxy to pickup 50 blocks, instead, I received 
588 blocks. I have not had any problem with the loss or destruction 
of blocks though.




Date sent:      	Sun, 10 Jan 1999 10:48:40 +0100
From:           	Andre Albsmeier <andre.albsmeier at mchp.siemens.de>
To:             	proxyper at lists.distributed.net.coders@lists.distributed.net
Subject:        	[PROXYPER] BUG? The new personal proxies eat blocks (output included)
Send reply to:  	proxyper at lists.distributed.net

There appears to be a problem with the new personal proxy
(at least the one for freebsd: proxyper301a-freebsd2).

When started the first time, the proxy fetches blocks:

$ ./rc5despp
[01/10/99 09:33:23 UTC] Initializing distributed.net Personal Proxy (build 301)
[01/10/99 09:33:23 UTC] Visit http://www.distributed.net/FAQ/ for details.
[01/10/99 09:33:23 UTC] Proxy starting up.
[01/10/99 09:33:23 UTC] Creating outgoing server connection.
[01/10/99 09:33:23 UTC] rc564 r=0/100, d=0/300, 0.0 Mkeys/sec
[01/10/99 09:33:23 UTC] desII r=0/50, d=0/150, 0.0 Mkeys/sec
[01/10/99 09:33:23 UTC] Server 209.98.32.14 changed from state 0 to 1
[01/10/99 09:33:23 UTC] Server 209.98.32.14 changed from state 1 to 3
[01/10/99 09:33:24 UTC] Server 209.98.32.14 changed from state 3 to 5
[01/10/99 09:33:24 UTC] Server 209.98.32.14 changed from state 5 to 7
[01/10/99 09:33:24 UTC] Server 209.98.32.14 changed from state 7 to 8
[01/10/99 09:33:25 UTC] server: Establishing handshake.
[01/10/99 09:33:26 UTC] server: Got handshake acknowledment.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Queueing request, iter 64.
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc63:10000000, iter 44
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc65:d0000000, iter 64
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc69:d0000000, iter 64
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc6d:d0000000, iter 64
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc71:d0000000, iter 64
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc75:d0000000, iter 64
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebc79:d0000000, iter 37
[01/10/99 09:33:26 UTC] server: Assigned us 7c7dd1b9:d0000000, iter 43
[01/10/99 09:33:26 UTC] server: Assigned us 7c7dd1bc:90000000, iter 63
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebfe5:20000000, iter 51
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebfe8:50000000, iter 58
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebfec:00000000, iter 41
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebfee:a0000000, iter 64
[01/10/99 09:33:26 UTC] server: Assigned us 7c7ebff2:a0000000, iter 64
[01/10/99 09:33:36 UTC] server: Assigned us 7c7ebff6:a0000000, iter 64
[01/10/99 09:33:54 UTC] rc564 r=849/100, d=0/300, 0.0 Mkeys/sec
[01/10/99 09:33:54 UTC] desII r=0/50, d=0/150, 0.0 Mkeys/sec
[01/10/99 09:33:57 UTC] Server 209.98.32.14 is no longer connected (reading).
[01/10/99 09:33:57 UTC] server: Closing server connection.
^C[01/10/99 09:34:08 UTC] *Break*  Initiating shutdown.
[01/10/99 09:34:09 UTC] Shuting down contests.
[01/10/99 09:34:09 UTC] Proxy shutdown completed.


We find that it received 849 rc5 blocks. The buffer files look as following:

$ ll pp*
-rw-r--r--  1 root    sys  -     56 Jan 10 10:34 ppdesin.des
-rw-r--r--  1 root    sys  -     56 Jan 10 10:34 ppdesout.des
-rw-r--r--  1 root    sys  -   2636 Jan 10 10:34 pprc5in.rc5
-rw-r--r--  1 root    sys  -     56 Jan 10 10:34 pprc5out.rc5


The 849 block are in pprc5in.rc5. Now we start it again:

$ ./rc5despp
[01/10/99 09:36:27 UTC] Initializing distributed.net Personal Proxy (build 301)
[01/10/99 09:36:27 UTC] Visit http://www.distributed.net/FAQ/ for details.
[01/10/99 09:36:27 UTC] Proxy starting up.
[01/10/99 09:36:27 UTC] Creating outgoing server connection.
[01/10/99 09:36:27 UTC] rc564 r=0/100, d=0/300, 0.0 Mkeys/sec
[01/10/99 09:36:27 UTC] desII r=0/50, d=0/150, 0.0 Mkeys/sec
[01/10/99 09:36:27 UTC] Server 134.53.15.188 changed from state 0 to 1
[01/10/99 09:36:27 UTC] Server 134.53.15.188 changed from state 1 to 3
[01/10/99 09:36:27 UTC] Server 134.53.15.188 changed from state 3 to 5
[01/10/99 09:36:27 UTC] Server 134.53.15.188 changed from state 5 to 7
[01/10/99 09:36:27 UTC] Server 134.53.15.188 changed from state 7 to 8
[01/10/99 09:36:28 UTC] server: Establishing handshake.
[01/10/99 09:36:29 UTC] server: Got handshake acknowledment.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Queueing request, iter 64.
[01/10/99 09:36:29 UTC] server: Assigned us 7c7e5abe:40000000, iter 11
[01/10/99 09:36:29 UTC] server: Assigned us 7c80accd:60000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c7e5adb:70000000, iter 5
[01/10/99 09:36:29 UTC] server: Assigned us 7c7f805c:f0000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c7f8060:f0000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c7f8064:f0000000, iter 20
[01/10/99 09:36:29 UTC] server: Assigned us 7c7f8068:d0000000, iter 5
[01/10/99 09:36:29 UTC] server: Assigned us 7c80959e:c0000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c8095a2:c0000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c8095a6:c0000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c802d7c:50000000, iter 56
[01/10/99 09:36:29 UTC] server: Assigned us 7c80ae21:d0000000, iter 30
[01/10/99 09:36:29 UTC] server: Assigned us 7c80ae23:c0000000, iter 64
[01/10/99 09:36:29 UTC] server: Assigned us 7c80ae27:c0000000, iter 64
[01/10/99 09:36:39 UTC] server: Assigned us 7c80ae2b:c0000000, iter 64
[01/10/99 09:36:58 UTC] rc564 r=703/100, d=0/300, 0.0 Mkeys/sec
[01/10/99 09:36:58 UTC] desII r=0/50, d=0/150, 0.0 Mkeys/sec
[01/10/99 09:37:00 UTC] Server 134.53.15.188 is no longer connected (reading).
[01/10/99 09:37:00 UTC] server: Closing server connection.
^C[01/10/99 09:37:04 UTC] *Break*  Initiating shutdown.
[01/10/99 09:37:05 UTC] Shuting down contests.
[01/10/99 09:37:05 UTC] Proxy shutdown completed.


According to line 5, there are NO rc5 blocks available. The proxy fetches
another 703 blocks. But, if we look at the buffers:

$ ll pp*
-rw-r--r--  1 root  sys  -   56 Jan 10 10:37 ppdesin.des
-rw-r--r--  1 root  sys  -   56 Jan 10 10:37 ppdesout.des
-rw-r--r--  1 root  sys  - 5216 Jan 10 10:37 pprc5in.rc5
-rw-r--r--  1 root  sys  -   56 Jan 10 10:37 pprc5out.rc5

pprc5in.rc5 is (approx.) as twice as big as before, so I assume the
849 blocks from step 1 are still in the buffer file but the proxy
can't find them.  So it starts to fetch them again.

	-Andre
--
To unsubscribe, send 'unsubscribe proxyper' to majordomo at lists.distributed.net

Scott/NFO

Put your idle CPU cycles to good use:
http://www.distributed.net
--
To unsubscribe, send 'unsubscribe proxyper' to majordomo at lists.distributed.net



More information about the proxyper mailing list