[tor-bugs] #5072 [Obfsproxy]: obfsproxy assertion failure src/network.c:726: down->buffer == bev

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Feb 11 09:43:32 UTC 2012


#5072: obfsproxy assertion failure src/network.c:726: down->buffer == bev
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:  asn
     Type:  defect     |         Status:  new
 Priority:  major      |      Milestone:     
Component:  Obfsproxy  |        Version:     
 Keywords:             |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------

Comment(by arma):

 Running nickm's bug5072_v2 branch:
 {{{
 [debug] x.x.x.x:44138: transmitted 586 bytes
 [debug] x.x.x.x:44138: downstream_read_cb, 586 bytes available
 [debug] obfs2_recv: Processing 586 bytes application data
 [debug] obfs2_crypt_and_transmit: Processed 586 bytes.
 [debug] x.x.x.x:44138: forwarded 586 bytes
 [debug] x.x.x.x:44138: downstream_read_cb, 586 bytes available
 [debug] obfs2_recv: Processing 586 bytes application data
 [debug] obfs2_crypt_and_transmit: Processed 586 bytes.
 [debug] x.x.x.x:44138: forwarded 586 bytes
 [debug] error_cb for 127.0.0.1:9009: what=0x0011 errno=104
 [info] EOF from 127.0.0.1:9009
 [debug] error_or_eof for 127.0.0.1:9009
 [error] assertion failure at src/network.c:168: conn->is_downstream == 1
 }}}

 {{{
 #0  0x00007fceebbf91b5 in *__GI_raise (sig=<value optimized out>)
     at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
         pid = <value optimized out>
         selftid = <value optimized out>
 #1  0x00007fceebbfbfc0 in *__GI_abort () at abort.c:92
         act = {__sigaction_handler = {sa_handler = 0xcd6a90064b1faad1,
             sa_sigaction = 0xcd6a90064b1faad1}, sa_mask = {__val = {
               9949445123934572641, 9715088607761979730, 140526695169636,
               4707197592648237900, 7161402270843880775, 140526695013128,
               140526706864128, 1, 4294967295, 140526698516032, 1, 6362904,
 0,
               0, 1, 0}}, sa_flags = -330189038, sa_restorer = 0x1}
         sigs = {__val = {32, 0 <repeats 15 times>}}
 #2  0x0000000000406ead in log_error_abort (
     format=0x40d0f8 "assertion failure at %s:%d: %s") at src/util.c:580
         ap = {{gp_offset = 32, fp_offset = 48,
             overflow_arg_area = 0x7fffdab552a0,
             reg_save_area = 0x7fffdab551e0}}
 #3  0x00000000004038d9 in bufferevent_wrap_setcb (bev=<value optimized
 out>,
     r=<value optimized out>, w=<value optimized out>, e=<value optimized
 out>,
     arg=0x7fffdab54d70) at src/network.c:168
 No locals.
 #4  0x00007fceec2e4bce in bufferevent_readcb (fd=0, event=28080,
 arg=0x1696bb0)
     at bufferevent_sock.c:192
         input = 0x1696db0
         res = 0
         howmuch = <value optimized out>
         readmax = <value optimized out>
 #5  0x00007fceec2dc93c in event_process_active_single_queue
 (base=0x1692c40,
     flags=<value optimized out>) at event.c:1325
         ev = 0x1696bc0
 #6  event_process_active (base=0x1692c40, flags=<value optimized out>)
     at event.c:1392
         i = 0
 #7  event_base_loop (base=0x1692c40, flags=<value optimized out>)
     at event.c:1589
         n = 1
         evsel = 0x7fceec50c160
         tv = {tv_sec = 1, tv_usec = 140526704793125}
         tv_p = <value optimized out>
         res = <value optimized out>
         retval = <value optimized out>
         __func__ = "event_base_loop"
 #8  0x000000000040ca79 in launch_external_proxy (begin=0x1)
     at src/external.c:78
         configs = 0x1684010
         end = 0x1
 #9  0x00000000004024a8 in obfs_main (argc=<value optimized out>,
 argv=0x7278)
     at src/main.c:262
         begin = 0x7fffdab55570
 #10 0x00000000004022b4 in main (argc=7, argv=0x7fffdab55558)
     at src/obfs_main.c:23
 }}}

 fucking gcc:
 {{{
 (gdb) print conn
 $1 = <value optimized out>
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5072#comment:15>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list