From nobody@FreeBSD.org  Mon Dec 13 11:09:26 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3023C16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 11:09:26 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E271B43D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 11:09:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBDB9PSg031435
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 11:09:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBDB9PGq031433;
	Mon, 13 Dec 2004 11:09:25 GMT
	(envelope-from nobody)
Message-Id: <200412131109.iBDB9PGq031433@www.freebsd.org>
Date: Mon, 13 Dec 2004 11:09:25 GMT
From: Sergiu Partenie <sergiu.partenie@connex.ro>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cvsup on amd64 with runsocks (socks5) coredumps
X-Send-Pr-Version: www-2.3

>Number:         75015
>Category:       ports
>Synopsis:       cvsup on amd64 coredumps with either runsocks or -l
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 13 11:10:26 GMT 2004
>Closed-Date:    Wed Feb 28 12:42:21 GMT 2007
>Last-Modified:  Wed Feb 28 13:00:12 GMT 2007
>Originator:     Sergiu Partenie
>Release:        FreeBSD 5.3-RELEASE amd64
>Organization:
>Environment:
FreeBSD xenon.connex.ro 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 03:50:01 UTC 2004     root@fanboy.samsco.home:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When trying to run cvsup on 5.3 (installed from official ISOs) on an amd64 trough a socks server we get the following error:

==================

xenon# runsocks cvsup -P m -L 1 /usr/share/examples/cvsup/ports-supfile -h cvsup1.ro.freebsd.org @M3novm
Connected to cvsup1.ro.freebsd.org


***
*** runtime error:
***    Subscript out of range
***    file "/u2/ports/net/cvsup-without-gui/work/cvsup-snap-16.1h/suplib/src/SupMisc.m3", line 216
***

  use option @M3stackdump to get a stack trace
Abort (core dumped)

==================

here is with the stack dump

==================

xenon# runsocks cvsup -P m -L 1 /usr/share/examples/cvsup/ports-supfile -h cvsup1.ro.freebsd.org @M3novm @M3stackdump
Connected to cvsup1.ro.freebsd.org


***
*** runtime error:
***    Subscript out of range
***    file "/u2/ports/net/cvsup-without-gui/work/cvsup-snap-16.1h/suplib/src/SupMisc.m3", line 216
***

------------------ EXCEPTION HANDLER STACK ---------------------
0x7fffffffc410 TRY-FINALLY  proc = 0x44f18f   frame = 0x7fffffffc460
0x7fffffffc510 TRY-EXCEPT  {CVProto.NotSupported, TokScan.Error}
0x7fffffffcb50 TRY-FINALLY  proc = 0x41cd8d   frame = 0x7fffffffd3e0
0x7fffffffcb70 TRY-FINALLY  proc = 0x41cdb6   frame = 0x7fffffffd3e0
0x7fffffffcb90 TRY-FINALLY  proc = 0x41cdd4   frame = 0x7fffffffd3e0
0x7fffffffce30 TRY-FINALLY  proc = 0x41cebf   frame = 0x7fffffffd3e0
0x7fffffffd0e0 TRY-EXCEPT  {Wr.Failure, FSClient.TransientFailure, Thread.Alerted, Rd.Failure, Rd.EndOfFile, FSClient.Error}
0x7fffffffd750 TRY-FINALLY  proc = 0x4251af   frame = 0x7fffffffe950
0x7fffffffda00 TRY-EXCEPT  {Main.Error}
0x7fffffffdf10 TRY-EXCEPT  {Thread.Alerted}
----------------------------------------------------------------
Abort (core dumped)

=================

The socks does work ok with other applications (tested with "runsocks ftp something" and "runsocks telnet somewhere")

even "runsocks cvsup /usr/share/examples/cvsup/ports-supfile -h cvsup.freebsd.org" (with no other flags) will give the same error.

Unfortunatelly I cannot test in an non-socks environement.

Thank you very much.

>How-To-Repeat:
runsocks cvsup -P m /usr/share/examples/cvsup/ports-supfile your.cvs.server @M3novm
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jdp 
Responsible-Changed-By: vs 
Responsible-Changed-When: Mon Dec 13 11:42:02 GMT 2004 
Responsible-Changed-Why:  
jdp@ of cvsup/ezm3-fame might want to look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 

From: - martijn - <martijn@zuul.nu>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/75015: cvsup on amd64 with runsocks (socks5) coredumps
Date: Wed, 23 Mar 2005 14:12:11 +0100

 Hi,
 
 A similar error occurs on an amd64 with the following command:
 
 cvsup -g -l /tmp/cvsup.lck -L 2 /etc/cvsup/ports-supfile
 
 This is the error:
 
 ***
 *** runtime error:
 ***    Value out of range
 ***    file 
 "/u2/ports/lang/ezm3/work/ezm3-1.1/libs/libm3/src/os/POSIX/FilePosix.m3", 
 line 171
 ***
 Abort trap (core dumped)
 
 And this is the stack trace:
 
 ------------------ EXCEPTION HANDLER STACK ---------------------
 0x7fffffffd360 TRY-EXCEPT  {OSError.E}
 0x7fffffffd600 TRY-FINALLY  proc = 0x438d74   frame = 0x7fffffffd660
 0x7fffffffda00 TRY-EXCEPT  {OSError.E}
 0x7fffffffdc80 TRY-EXCEPT  {Main.Error}
 0x7fffffffe190 TRY-EXCEPT  {Thread.Alerted}
 ----------------------------------------------------------------
 
 Best regards,
 Martijn
Responsible-Changed-From-To: jdp->amd64 
Responsible-Changed-By: jdp 
Responsible-Changed-When: Mon Mar 28 16:23:17 GMT 2005 
Responsible-Changed-Why:  
Thanks for the report, but I have no idea how to fix this and I 
don't have an amd64 system to attempt it.  The amd64 support for 
CVSup is very spotty; it's a miracle it works at all.  I'm 
reassigning this bug to amd64@freebsd.org. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
Responsible-Changed-From-To: amd64->freebsd-amd64 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Fri Apr 8 17:58:48 GMT 2005 
Responsible-Changed-Why:  
fix assigned to 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
Responsible-Changed-From-To: freebsd-amd64->bzeeb+freebsdports@zabbadoz.net 
Responsible-Changed-By: ru 
Responsible-Changed-When: Thu Apr 13 07:55:24 UTC 2006 
Responsible-Changed-Why:  
See if Bjoern could possibly be interested in fixing this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
State-Changed-From-To: open->feedback 
State-Changed-By: bz 
State-Changed-When: Thu Apr 13 08:08:31 UTC 2006 
State-Changed-Why:  
Does that problem still exists with todays cvsup on amd64? 
The time the PR was filed we only ditributed binaries but 
not the possibility to build from source. 
Could you please check and let me know. 


Responsible-Changed-From-To: bzeeb+freebsdports@zabbadoz.net->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Thu Apr 13 08:08:31 UTC 2006 
Responsible-Changed-Why:  
use bz@ and not my private address for ports tracking. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
State-Changed-From-To: feedback->open 
State-Changed-By: bz 
State-Changed-When: Thu Apr 13 09:28:02 UTC 2006 
State-Changed-Why:  
ru@ confirmed that the problem still exists. 

I'll see if I can find the problem (amd64 is no 
officially supported platform). 

Maybe using lockf(1) as a workaround for the -l problem 
might help in the meantime. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
State-Changed-From-To: open->closed 
State-Changed-By: bz 
State-Changed-When: Mon Apr 17 13:58:49 UTC 2006 
State-Changed-Why:  
A patch was committed by ru@, see: 
http://docs.freebsd.org/cgi/mid.cgi?200604171348.k3HDmBBM005096 
Thanks for reporting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
State-Changed-From-To: closed->open 
State-Changed-By: bz 
State-Changed-When: Mon Apr 17 14:33:09 UTC 2006 
State-Changed-Why:  
re-open. Sorry I had missed the socks issue while closing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 
State-Changed-From-To: open->closed 
State-Changed-By: bz 
State-Changed-When: Wed Feb 28 12:41:08 UTC 2007 
State-Changed-Why:  
Submitters email bounces and it wasn't an issue for anyone else. 
If you do not need mirror mode with a socks proxy on the not-officially 
supported am64 version, use csup. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75015 

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, sergiu.partenie@connex.ro
Cc:  
Subject: Re: ports/75015: cvsup on amd64 coredumps with either runsocks or
 -l
Date: Wed, 28 Feb 2007 12:22:41 +0000 (UTC)

 Is the socks problem still an issue for you now that there is csup for
 client mode? If so, how can I build a setup to reproduce it? If no -
 may I close the PR?
>Unformatted:
