From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 28 14:20:47 2012 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBA0E106566B for ; Thu, 28 Jun 2012 14:20:47 +0000 (UTC) (envelope-from rpolzer@one-it.de) Received: from mx1.mucke-novak.net (mx1.mucke-novak.net [88.79.219.80]) by mx1.freebsd.org (Postfix) with ESMTP id 71B2B8FC08 for ; Thu, 28 Jun 2012 14:20:47 +0000 (UTC) Received: from lisa.mucke-novak.de ([192.168.0.33]) by mx1.mucke-novak.net with esmtp id 1SkFJy-0005Uk-Tt for freebsd-ports-bugs@FreeBSD.org; Thu, 28 Jun 2012 16:03:46 +0200 Received: from selma.mucke-novak.de ([192.168.0.43] helo=selma.MN.local) by mx1.mucke-novak.net with esmtp id 1SkFJv-0005Uc-Qc for freebsd-ports-bugs@FreeBSD.org; Thu, 28 Jun 2012 16:03:43 +0200 Received: from selma.MN.local ([192.168.0.43]) by selma.MN.local ([192.168.0.43]) with mapi; Thu, 28 Jun 2012 16:01:50 +0200 From: Rudolf Polzer To: "freebsd-ports-bugs@FreeBSD.org" Date: Thu, 28 Jun 2012 16:01:50 +0200 Thread-Topic: ports/169519: [net/cvsup] socksify and cvsup cannot be used together Thread-Index: Ac1VM0ltZ4+aM2YwSN+A3YzZKhANEwAAjgUW Message-ID: <33A3EFC8E507104CA93B2E1A41CE77670F0191F97D@selma.MN.local> References: Your message of Thu, 28 Jun 2012 13:38:36 GMT <201206281338.q5SDcaRL063646@red.freebsd.org>, <201206281340.q5SDeAtx091874@freefall.freebsd.org> In-Reply-To: <201206281340.q5SDeAtx091874@freefall.freebsd.org> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: ports/169519: [net/cvsup] socksify and cvsup cannot be used together X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2012 14:20:47 -0000 I found out more. When I boot with increased stack size (to 128M), I instead geht: bamd2-tev# [~] socksify cvsup /dat/cvsup/mysupfile -h 127.0.0.1 @M3novm @M3stackdump Connected to 127.0.0.1 *** *** runtime error: *** Segmentation violation - possible attempt to dereference NIL *** pc =3D 0x80071f89f *** ------------------ EXCEPTION HANDLER STACK --------------------- 0x7339d8 RAISES {Thread.Alerted} 0x733a68 TRY-FINALLY proc =3D 0x49d0f5 frame =3D 0x733a98 0x733ac8 LOCK mutex =3D 0x647f70 0x733c68 TRY-EXCEPT {Thread.Alerted, Wr.Failure} ---------------------------------------------------------------- Abort (core dumped) (gdb) bamd2-tev# [~] socksify gdb --args cvsup /dat/cvsup/mysupfile -h 127.0.0.1 @M3novm @M3stackdump GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) run Starting program: /usr/local/bin/cvsup /dat/cvsup/mysupfile -h 127.0.0.1 @M3novm @M3stackdump [New LWP 100068] [New Thread 0x631000 (LWP 100068)] Connected to 127.0.0.1 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x631000 (LWP 100068)] 0x000000080071f89f in rcsid () from /usr/local/lib/libdsocks.so (gdb) bt=20 #0 0x000000080071f89f in rcsid () from /usr/local/lib/libdsocks.so #1 0x0000000800837f90 in buf.8519 () from /usr/local/lib/libdsocks.so #2 0x0000000000000000 in ?? () #3 0x0000000000712a74 in ?? () #4 0x0000000800abbd1c in vsnprintf () from /lib/libc.so.7 #5 0x0000000000000004 in ?? () #6 0x00000000007117f8 in ?? () #7 0x0000000000000000 in ?? () #8 0x0000000000712a74 in ?? () #9 0x0000000800701d14 in slog (priority=3DVariable "priority" is not available. ) at ../lib/log.c:465 #10 0x00000008006f6634 in udpsetup (s=3D1, to=3D0x0, type=3D7416408) at ../lib/udp.c:418 #11 0x00000008006f6e84 in Rsendto (s=3D4, msg=3D0x657018, len=3D11, flags= =3D0, to=3D0x0, tolen=3D0) at ../lib/udp.c:95 #12 0x00000000006510b8 in ?? () #13 0x0000000000651128 in ?? () #14 0x00000000006515a8 in ?? () #15 0x0000000000733a48 in ?? () #16 0x000000000049f3b8 in calloc () Previous frame inner to this frame (corrupt stack?) When I use a socks.conf that is a copy of the example file with logoutput: stderr and debug: 9, the last messages are: Jun 28 16:03:07 (1340892187.810473) cvsup[1201]: debug: socks_rmaddr(): not freeing buffer for fd 4, issyscall Jun 28 16:03:07 (1340892187.810523) cvsup[1201]: debug: socks_socketisforlan(): getsockopt(IP_MULTICAST_IF) failed: Operation not supported Jun 28 16:03:07 (1340892187.810576) cvsup[1201]: debug: socks_rmaddr(): not freeing buffer for fd 4, issyscall Jun 28 16:03:07 (1340892187.810630) cvsup[1201]: debug: socks_rmaddr(): not freeing buffer for fd 4, issyscall Jun 28 16:03:07 (1340892187.810683) cvsup[1201]: info: udpsetup(): socket 4 is unknown, but has a stream peer (127.0.0.1.5999), returning direct route Jun 28 16:03:07 (1340892187.810733) cvsup[1201]: debug: Rsendto(): route returned by udpsetup() is a direct route Jun 28 16:03:07 (1340892187.810780) cvsup[1201]: debug: Rsendto(): using direct system calls for socket 4 Jun 28 16:03:07 (1340892187.810872) cvsup[1201]: debug: socks_rmaddr(): not freeing buffer for fd 4, issyscall Jun 28 16:03:07 (1340892187.813608) cvsup[1201]: debug: Rwrite(): socket 2, bytes 122 Jun 28 16:03:07 (1340892187.813668) cvsup[1201]: debug: Rsend(): socket 2, bytes 122, flags 0 Jun 28 16:03:07 (1340892187.813717) cvsup[1201]: debug: Rsendmsg(): socket 2, msg 0x714db0, flags 0 *** *** runtime error: *** Segmentation violation - possible attempt to dereference NIL *** pc =3D 0x80071f89f *** Jun 28 16:03:07 (1340892187.813812) cvsup[1201]: debug: Rwrite(): socket 2, bytes 303 Jun 28 16:03:07 (1340892187.813859) cvsup[1201]: debug: Rsend(): socket 2, bytes 303, flags 0 Jun 28 16:03:07 (1340892187.813906) cvsup[1201]: debug: Rsendmsg(): socket 2, msg 0x714d20, flags 0 ------------------ EXCEPTION HANDLER STACK --------------------- 0x7389d8 RAISES {Thread.Alerted} 0x738a68 TRY-FINALLY proc =3D 0x49d0f5 frame =3D 0x738a98 0x738ac8 LOCK mutex =3D 0x647f70 0x738c68 TRY-EXCEPT {Thread.Alerted, Wr.Failure} ---------------------------------------------------------------- Abort (core dumped)