[tor-bugs] #7267 [Tor]: src/or/channel.c:1315 channel_closed: Assertion chan->state == CHANNEL_STATE_CLOSING || chan->state == CHANNEL_STATE_CLOSED || chan->state == CHANNEL_STATE_ERROR failed;

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Nov 2 10:35:39 UTC 2012


#7267: src/or/channel.c:1315 channel_closed: Assertion chan->state ==
CHANNEL_STATE_CLOSING || chan->state == CHANNEL_STATE_CLOSED || chan->state
== CHANNEL_STATE_ERROR failed;
-----------------------+----------------------------------------------------
 Reporter:  asn        |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  major      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor        |        Version:  Tor: 0.2.4.4-alpha
 Keywords:  tor-relay  |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------

Comment(by eseifert):

 I've reproduced the issue again and tried to get backtrace output this
 time. I'm not very experienced in using {{{gdb}}}, so I hope my following
 session is useful:

 {{{
 (gdb) r
 Starting program: /usr/bin/tor
 warning: Could not load shared library symbols for linux-vdso.so.1.
 Do you need "set solib-search-path" or "set sysroot"?
 [Thread debugging using libthread_db enabled]
 Nov 02 11:18:32.322 [notice] Tor v0.2.4.5-alpha (git-17a6aa56cefe9d83)
 (with bufferevents) running on Linux with Libevent 2.0.20-stable and
 OpenSSL 1.0.0j.
 Nov 02 11:18:32.322 [notice] Tor can't help you if you use it wrong! Learn
 how to be safe at https://www.torproject.org/download/download#warning
 Nov 02 11:18:32.322 [notice] This version is not a stable Tor release.
 Expect more bugs than usual.
 Nov 02 11:18:32.322 [notice] Read configuration file "/etc/tor/torrc".
 Nov 02 11:18:32.331 [warn] Skipping obsolete configuration option 'Group'
 Nov 02 11:18:32.331 [notice] Opening Socks listener on 127.0.0.1:9050
 src/or/channel.c:1315 channel_closed: Assertion chan->state ==
 CHANNEL_STATE_CLOSING || chan->state == CHANNEL_STATE_CLOSED ||
 chan->state == CHANNEL_STATE_ERROR failed; aborting.

 Program received signal SIGABRT, Aborted.
 0x00007ffff68cdc15 in raise () from /lib64/libc.so.6
 (gdb) bt
 #0  0x00007ffff68cdc15 in raise () from /lib64/libc.so.6
 #1  0x00007ffff68cefba in abort () from /lib64/libc.so.6
 #2  0x0000000000464f34 in channel_closed (chan=0x1355950) at
 src/or/channel.c:1313
 #3  0x00000000004a2390 in connection_or_about_to_close (or_conn=0x13b6450)
 at src/or/connection_or.c:601
 #4  0x000000000040bb2d in connection_unlink (conn=0x13b6450) at
 src/or/main.c:385
 #5  0x000000000040c472 in conn_close_if_marked (i=<optimized out>) at
 src/or/main.c:932
 #6  close_closeable_connections () at src/or/main.c:702
 #7  0x000000000040cd49 in run_scheduled_events (now=1351851760) at
 src/or/main.c:1535
 #8  second_elapsed_callback (timer=<optimized out>, arg=<optimized out>)
 at src/or/main.c:1691
 #9  0x00007ffff748e1ec in event_base_loop () from
 /usr/lib64/libevent-2.0.so.5
 #10 0x000000000040e190 in do_main_loop () at src/or/main.c:1987
 #11 0x000000000040f70e in tor_main (argc=<optimized out>, argv=<optimized
 out>) at src/or/main.c:2699
 #12 0x00007ffff68ba4cc in __libc_start_main () from /lib64/libc.so.6
 #13 0x000000000040a329 in _start ()
 (gdb) print 0x1355950
 $1 = 20273488
 }}}

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


More information about the tor-bugs mailing list