[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:51:38 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):

 Ok, here's a better one:
 {{{
 debug] error_cb for 127.0.0.1:9009: what=0x0011 errno=11
 [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  0x00007fd4341a11b5 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  0x00007fd4341a3fc0 in *__GI_abort () at abort.c:92
         act = {__sigaction_handler = {sa_handler = 0x7fd434873fb0,
             sa_sigaction = 0x7fd434873fb0}, sa_mask = {__val = {
               140736224283776, 140549391074760, 140549391080016,
               9946658577485458587, 15627131712425739986, 140549383740168,
               140549395591168, 140549395653936, 4294967295,
 140549391089376,
               1, 6373952, 0, 0, 1, 0}}, sa_flags = 883701522,
           sa_restorer = 0x7fff00000001}
         sigs = {__val = {32, 0 <repeats 15 times>}}
 #2  0x00000000004087d5 in log_error_abort (
     format=0x40f5f0 "assertion failure at %s:%d: %s") at src/util.c:580
         ap = {{gp_offset = 32, fp_offset = 48,
             overflow_arg_area = 0x7fffb4a7cd20,
             reg_save_area = 0x7fffb4a7cc60}}
 #3  0x0000000000403ed8 in bufferevent_wrap_setcb (bev=0x10c29c0,
     r=0x405400 <downstream_read_cb>, w=0x40486d <conn_free_on_flush>,
     e=0x4059e4 <flush_error_cb>, arg=0x10c30a0) at src/network.c:168
         conn = 0x10c30a0
 #4  0x00000000004058d1 in error_or_eof (conn=0x10c30a0) at
 src/network.c:836
         circ = 0x10c3120
         bev_err = 0x10c2d30
         bev_flush = 0x10c29c0
         __func__ = "error_or_eof"
 #5  0x00000000004059e2 in error_cb (bev=0x10c2d30, what=17, arg=0x10c30a0)
     at src/network.c:864
         conn = 0x10c30a0
         errcode = 11
         __func__ = "error_cb"
 #6  0x00007fd43488cbce in bufferevent_readcb (fd=0, event=12080,
 arg=0x10c2d30)
     at bufferevent_sock.c:192
         input = 0x10c2f30
         res = 0
         howmuch = <value optimized out>
         readmax = <value optimized out>
 #7  0x00007fd43488493c in event_process_active_single_queue
 (base=0x10c0c40,
     flags=<value optimized out>) at event.c:1325
         ev = 0x10c2d40
 #8  event_process_active (base=0x10c0c40, flags=<value optimized out>)
     at event.c:1392
         i = 0
 #9  event_base_loop (base=0x10c0c40, flags=<value optimized out>)
     at event.c:1589
         n = 1
         evsel = 0x7fd434ab4160
         tv = {tv_sec = 140736224284880, tv_usec = 140549393520165}
         tv_p = <value optimized out>
         res = <value optimized out>
         retval = <value optimized out>
         __func__ = "event_base_loop"
 #10 0x000000000040eb67 in launch_external_proxy (begin=0x7fffb4a7d110)
     at src/external.c:78
         configs = 0x10b2010
         end = 0x7fffb4a7d110
 #11 0x0000000000402a18 in obfs_main (argc=7, argv=0x7fffb4a7d0d8)
     at src/main.c:262
         begin = 0x7fffb4a7d0f0
 #12 0x0000000000402424 in main (argc=7, argv=0x7fffb4a7d0d8)
     at src/obfs_main.c:23
 No locals.
 }}}

 {{{
 (gdb) print *conn
 $2 = {conn_magic = 3225731140, cfg = 0x10b20e0,
   peername = 0x10c30e0 "127.0.0.1:9009", circuit = 0x10c3120,
   buffer = 0x10c2d30, mode = LSN_SIMPLE_SERVER, is_downstream = 0}
 }}}

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


More information about the tor-bugs mailing list