svn rev > ~760 segfaults

Juli Mallett juli at clockworksquid.com
Tue Jul 12 10:15:17 PDT 2011


Hi Noris,

I believe that r796 fixes this.

Thanks,
Juli.

On Tue, Jul 12, 2011 at 04:58, Noris Datum <norisdata at gmail.com> wrote:
> Dear Juli,
>
> Long time no see, hope everything's fine.
>
> I noticed wanproxy svn branch compiles well under Fedora 14, yet as soon as
> a request is made both server and client side quit with segfault. Last
> working sample from svn is rev.760 but there might be ones that I've missed
> meanwhile. This happens both w/ and w/o NDEBUG=1 flag, below you can find
> debug output of both client and server, hope that helps. I'll try to pin
> point at which revision it got broken and I'd appreciate it if you let me
> know the OS you're compiling and testing the svn branch. I can also provide
> strace outputs and perform further testing as you would require.
>
> cheers --noris
>
> server side:
>
> [root at zakkum wanproxy]# wp795_dbg -v -c /usr/local/etc/wp-srv.conf
> 1310475525.674176 [/wanproxy] INFO: WANProxy
> 1310475525.674281 [/wanproxy] INFO: Copyright (c) 2008-2011 WANProxy.org.
> 1310475525.674311 [/wanproxy] INFO: All rights reserved.
> 1310475525.674429 [/wanproxy/config] INFO: Configuring WANProxy.
> 1310475525.675374 [/io/system] INFO: Starting IO system.
> 1310475525.675540 [/event/thread] INFO: Starting event thread.
> 1310475546.804069 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Peer connected with UUID:
> e621fe88-90f9-4985-ab5f-684155bd3366
> 1310475546.804202 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Decoder finished, got <EOS>,
> sending <EOS_ACK>.
> 1310475546.804240 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Decoder finished, got <EOS>,
> shutting down decoder output channel.
> 1310475546.807057 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Decoder finished, got <EOS_ACK>,
> shutting down encoder output channel.
> Segmentation fault
>
> /var/log/messages:
> [355067.244546] wp795_dbg[6594]: segfault at 211 ip 0000000000000211 sp
> 00007f17354e59f8 error 14 in wp795_dbg[400000+13d000]
>
> [root at zakkum wanproxy]#  uname -r
> 2.6.35.13-92.fc14.x86_64
>
> wp-srv.conf:
>
> # nothing special here
> create log-mask catch-all
> set catch-all.regex "^/"
> set catch-all.mask INFO
> activate catch-all
>
> # compression disabled
> create codec codec0
> set codec0.codec XCodec
> #set codec0.compressor zlib
> #set codec0.compressor_level 6
> activate codec0
>
> # interface wp-client connects
> create interface if0
> set if0.family IP
> set if0.host "xxx.140.xxx.89"
> set if0.port "3301"
> activate if0
>
> # wp-server's peer is squid prox.
> create peer peer0
> set peer0.family IP
> set peer0.host "127.0.0.1"
> set peer0.port "3128"
> activate peer0
>
> # proxy and codecs
> create proxy proxy0
> set proxy0.type TCP-TCP
> set proxy0.interface if0
> set proxy0.interface_codec codec0
> set proxy0.peer peer0
> set proxy0.peer_codec None
> activate proxy0
>
>
> client side:
>
> [root at zambak ~]# wp795_dbg -v -c /usr/local/etc/wp-clt.conf
> 1310469474.518364 [/wanproxy] INFO: WANProxy
> 1310469474.518437 [/wanproxy] INFO: Copyright (c) 2008-2011 WANProxy.org.
> 1310469474.518459 [/wanproxy] INFO: All rights reserved.
> 1310469474.518554 [/wanproxy/config] INFO: Configuring WANProxy.
> 1310469474.519277 [/io/system] INFO: Starting IO system.
> 1310469474.519394 [/event/thread] INFO: Starting event thread.
> 1310469493.851401 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Peer connected with UUID:
> 574d42da-c18d-4c8e-9271-3e13a498c6a1
> 1310469493.851439 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Decoder finished, got <EOS>,
> sending <EOS_ACK>.
> 1310469493.851464 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Decoder finished, got <EOS>,
> shutting down decoder output channel.
> 1310469493.851488 [/wanproxy/codec/codec0/xcodec] DEBUG: void
> XCodecPipePair::decoder_consume(Buffer*): Decoder finished, got <EOS_ACK>,
> shutting down encoder output channel.
> Segmentation fault
>
> /var/log/messages:
> [359173.477619] wp795_dbg[4726]: segfault at 211 ip 0000000000000211 sp
> 00007f85203db9f8 error 4 in wp795_dbg[400000+13d000]
>
> [root at zambak ~]# uname -r
> 2.6.35.13-92.fc14.x86_64
>
> wp-clt.conf:
>
> # nothing special here
> create log-mask catch-all
> set catch-all.regex "^/"
> set catch-all.mask INFO
> activate catch-all
>
> # compression disabled
> create codec codec0
> set codec0.codec XCodec
> #set codec0.compressor zlib
> #set codec0.compressor_level 6
> activate codec0
>
> # interface squid connects as client
> create interface if0
> set if0.family IP
> set if0.host "127.0.0.1"
> set if0.port "3300"
> activate if0
>
> # wp clients peer is wp server
> create peer peer0
> set peer0.family IP
> set peer0.host "xxx.140.xxx.89"
> set peer0.port "3301"
> activate peer0
>
> # proxy and codecs
> create proxy proxy0
> set proxy0.type TCP-TCP
> set proxy0.interface if0
> set proxy0.interface_codec None
> set proxy0.peer peer0
> set proxy0.peer_codec codec0
> activate proxy0
>
>
>
> ** both sistems are identical sw-wise;
> uname -r :: 2.6.35.13-92.fc14.x86_64
> uuid.h :: libuuid-devel-2.18-4.8.fc14.x86_64
> zlib.h :: zlib-devel-1.2.5-2.fc14.x86_64
>
>
> ** as can be seen from above config files setup is like;
> lan > squid | wanproxy(client) <metroEth> wanproxy(server) | squid > wan
>



More information about the wanproxy mailing list