Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2012 16:01:50 +0200
From:      Rudolf Polzer <rpolzer@one-it.de>
To:        "freebsd-ports-bugs@FreeBSD.org" <freebsd-ports-bugs@FreeBSD.org>
Subject:   RE: ports/169519: [net/cvsup] socksify and cvsup cannot be used together
Message-ID:  <33A3EFC8E507104CA93B2E1A41CE77670F0191F97D@selma.MN.local>
In-Reply-To: <201206281340.q5SDeAtx091874@freefall.freebsd.org>
References:  Your message of Thu, 28 Jun 2012 13:38:36 GMT <201206281338.q5SDcaRL063646@red.freebsd.org>, <201206281340.q5SDeAtx091874@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33A3EFC8E507104CA93B2E1A41CE77670F0191F97D>