Wanproxy Crashes

julius.igugu at webcenta.net julius.igugu at webcenta.net
Fri Jan 21 03:47:07 PST 2011



Hi Juli,

 Just checking to see if you've had time to look through the
code yet.

 Regards.

 Julius Igugu
 Webcenta Wireless.

 On 1/10/2011
10:39 AM, Juli Mallett wrote:  
This looks to be from a different function,
but that's okay. I'll
read through the code tomorrow and see if I can find
the problem that
way.

Thanks for your patience,
Juli.

(Note to self:
really need an ASSERT variant that takes a LogHandle so
I can tell what
instance of a base class is tripping the assertion.)

On Mon, Jan 10, 2011
at 01:29, Julius Igugu  wrote:

Hi,

Here is the "backtrace" output.

Best
Regards.

Julius Igugu
Webcenta Wireless.

(gdb) backtrace
#0 0x00110416 in
__kernel_vsyscall ()
#1 0x00831216 in writev () from /lib/libc.so.6
#2
0x0809f677 in IOSystem::Handle::write_do (this=0xb5b80b08)
at
../../io/io_system.cc:337
#3 0x080a048e in IOSystem::write
(this=0x80fcc28, fd=36, owner=0xb5e16b70,
offset=-1, buffer=0xb7fe7a50,
cb=0xb5d9d128) at ../../io/io_system.cc:579
#4 0x080a39ae in
StreamHandle::write (this=0xb5e16b70, buffer=0xb7fe7a50,
 cb=0xb5d9d128) at
../../io/stream_handle.cc:46
#5 0x080b4c43 in Splice::output_complete
(this=0xb5bf9810, e=...) at
../../io/pipe/splice.cc:212
#6 0x080b6f37 in
ObjectTypedCallback::operator()(Event) ()
#7 0x080523ba in
TypedCallback::operator() (this=0xb67faa90)
at
../../event/typed_callback.h:24
#8 0x08090993 in execute
(this=0x80fde10) at ../../event/callback.h:37
#9 perform (this=0x80fde10)
at ../../event/callback_queue.h:89
#10 EventThread::main (this=0x80fde10)
at ../../event/event_thread.cc:65
#11 0x0807f2e1 in thread_posix_start
(arg=0x80fde10) at
../../common/thread/thread_posix.cc:170
#12 0x008f0919
in start_thread () from /lib/libpthread.so.0
#13 0x00839cce in clone ()
from /lib/libc.so.6
(gdb)

On 1/9/2011 11:29 PM, Juli Mallett wrote:

Would
it be possible for you to run wanproxy under gdb on the client
and send
'backtrace' output when it crashes?

Thank you!

Juli.

On Sun, Jan 9, 2011
at 08:15, Julius Igugu
 wrote:

Hi,

I applied the patch and complied
wanproxy. It worked ok for a while then
it
crashed. I have pasted toe
output below. Does it have anything to do
with
the operating system I am
running it on?

Thanks for your patience.

Best Regards.

Julius
Igugu
Webcenta Wireless

*************************
Client
Output
*************************
[root at intranet ~]# /usr/local/bin/wanproxy
-c /etc/wanproxy/client.conf
1294589260.252866 [/wanproxy] INFO: WANProxy
0.7.1
1294589260.253260 [/wanproxy] INFO: Copyright (c) 2008-2011
WANProxy.org.
1294589260.253332 [/wanproxy] INFO: All rights
reserved.
1294589260.253563 [/wanproxy/config] INFO: Configuring
WANProxy.
1294589260.255304 [/io/system] INFO: Starting IO
system.
1294589260.255662 [/event/thread] INFO: Starting event
thread.
1294589291.497733 [/assert] EMERG: void
PipeProducer::produce(Buffer*):
Halting: Assertion (!output_eos_) failed
at
../../io/pipe/pipe_producer.cc:109 in function
void
PipeProducer::produce(Buffer*).
Aborted (core
dumped)

************************
Server
Output
************************
[root at vps02 ~]# /usr/local/bin/wanproxy -c
/etc/wanproxy/server.conf
1294589257.109372 [/wanproxy] INFO: WANProxy
0.7.1
1294589257.109520 [/wanproxy] INFO: Copyright (c) 2008-2011
WANProxy.org.
1294589257.109555 [/wanproxy] INFO: All rights
reserved.
1294589257.109788 [/wanproxy/config] INFO: Configuring
WANProxy.
1294589257.110471 [/io/system] INFO: Starting IO
system.
1294589257.110646 [/event/thread] INFO: Starting event
thread.
1294589292.058369 [/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/104
[Connection reset by peer]
1294589292.058545
[/zlib/deflate_pipe] ERR: virtual
DeflatePipe::~DeflatePipe(): Deflate
stream did not end cleanly.
1294589292.120556
[/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/0
[Success]
1294589292.120873 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.

On 1/9/2011 4:15 AM, Mallett, Juli wrote:

Hi Julius,

I haven't
even compile-tested this patch to epoll support, but could
you try it (or
whatever variant you can get to compile) and report
back?

Index:
event_poll_epoll.cc
===================================================================
---
event_poll_epoll.cc (revision 754)
+++ event_poll_epoll.cc (working
copy)
@@ -156,6 +156,11 @@
 poll_handler =
 } else if
(write_poll_.find(ev->data.fd) !=
write_poll_.end()) {
 poll_handler =
+
+
if ((ev->events
+ continue;
+ }
 } else {
 HALT(log_) wanproxy -> Internet
Link -> wanproxy
->
 squid

Please help.

Also, does wanproxy handle
multiple tcp connections simultaneously?

Thanks.

Julius Igugu

Webcenta
Wireless

#client.conf

create codec codec0
set codec0.codec XCodec
set
codec0.compressor zlib
set codec0.compressor_level 6
activate
codec0

create interface if0
set if0.family IP
set if0.host "0.0.0.0"
set
if0.port "3300"
activate if0

create peer peer0
set peer0.family IP
set
peer0.host "xxx.xxx.xxx.xxx"
set peer0.port "3301"
activate peer0

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

#server.conf

create codec codec0
set codec0.codec
XCodec
set codec0.compressor zlib
set codec0.compressor_level 6
activate
codec0

create interface if0
set if0.family IP
set if0.host
"xxx.xxx.xxx.xxx"
set if0.port "3301"
activate if0

create peer peer0
set
peer0.family IP
set peer0.host "localhost"
set peer0.port "3128"
activate
peer0

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

#Wanproxy Output

[root at intranet
~]# wanproxy -c /etc/wanproxy/client.conf
1294050836.673086 [/wanproxy]
INFO: WANProxy 0.7.0
1294050836.673308 [/wanproxy] INFO: Copyright (c)
2008-2011
WANProxy.org.
1294050836.673372 [/wanproxy] INFO: All rights
reserved.
1294050836.673570 [/wanproxy/config] INFO: Configuring
WANProxy.
1294050836.675474 [/io/system] INFO: Starting IO
system.
1294050836.675759 [/event/thread] INFO: Starting event
thread.
1294051341.793487 [/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/0
[Success]
1294051341.793735 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.
1294051350.247502 [/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/32
[Broken
pipe]
1294051350.247758 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.
1294051410.396146 [/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/32
[Broken
pipe]
1294051410.396386 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.
1294051909.526737 [/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/32
[Broken
pipe]
1294051909.527105 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.
1294051911.231315 [/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/32
[Broken
pipe]
1294051911.231436
[/wanproxy/proxy/proxy0/connector] ERR:
void
ProxyConnector::splice_complete(Event): Unexpected
event:/32
[Broken
pipe]
1294051911.231701 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.
1294051911.232192 [/zlib/deflate_pipe] ERR:
virtual
DeflatePipe::~DeflatePipe(): Deflate stream did not end
cleanly.
1294052038.733249 [/assert] EMERG: virtual
Action*
PipeProducer::input(Buffer*, EventCallback*): Halting:
Assertion
(buf->empty()) failed at ../../io/pipe/pipe_producer.cc:36
in
function
virtual Action* PipeProducer::input(Buffer*,
EventCallback*).
Aborted (core
dumped)

_______________________________________________
wanproxy mailing
list
wanproxy at lists.wanproxy.org
http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org

_______________________________________________
wanproxy
mailing
list
wanproxy at lists.wanproxy.org
http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wanproxy.org/pipermail/wanproxy-wanproxy.org/attachments/20110121/ffd24c9f/attachment-0005.htm>


More information about the wanproxy mailing list