[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
Sat Nov 3 16:38:37 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 aagbsn):

 {{{
 Nov 02 06:37:39.000 [notice] We now have enough directory information to
 build circuits.
 Nov 02 06:37:39.000 [notice] Bootstrapped 80%: Connecting to the Tor
 network.
 Nov 02 06:37:39.000 [notice] Bootstrapped 85%: Finishing handshake with
 first hop.
 Nov 02 06:37:40.000 [notice] Bootstrapped 90%: Establishing a Tor circuit.
 Nov 02 06:37:46.000 [notice] Tor has successfully opened a circuit. Looks
 like client functionality is working.
 Nov 02 06:37:46.000 [notice] Bootstrapped 100%: Done.
 Nov 02 06:37:55.000 [notice] Performing bandwidth self-test...done.
 Nov 02 06:38:04.000 [notice] Self-testing indicates your DirPort is
 reachable from the outside. Excellent.
 Nov 02 06:38:04.000 [notice] Not advertising DirPort (Reason:
 AccountingMax enabled)
 Nov 02 12:37:24.000 [notice] Heartbeat: Tor's uptime is 6:00 hours, with
 7676 circuits open. I've sent 103.68 GB and received 102.47 GB.
 Nov 02 14:06:28.000 [notice] Bandwidth soft limit reached; commencing
 hibernation. No new connections will be accepted
 Nov 02 14:07:30.000 [notice] Going dormant. Blowing away remaining
 connections.
 Nov 02 14:07:30.000 [err] channel_closed(): Bug: 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.
 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.
 0x00007ffff68341b5 in ?? ()
 (gdb) bt
 #0  0x00007ffff68341b5 in ?? ()
 #1  0x00007ffff6836fc0 in ?? ()
 #2  0xd5e900db8fa92fdd in ?? ()
 #3  0x00007ffff6b5e860 in ?? ()
 #4  0x0000000050940be2 in ?? ()
 #5  0x00007ffff82065cc in ?? ()
 #6  0x00000000000005a2 in ?? ()
 #7  0x00007fffffffe06e in ?? ()
 #8  0x0000000000000001 in ?? ()
 #9  0x00007ffff68e4b1b in ?? ()
 #10 0x0000003000000030 in ?? ()
 #11 0x00007fffffffdbe8 in ?? ()
 #12 0x00007fffffffdb10 in ?? ()
 #13 0x00007fffffffdbf0 in ?? ()
 #14 0x00007fffffffdb20 in ?? ()
 #15 0x85b5c692cdd36500 in ?? ()
 #16 0x2d8d08760144972b in ?? ()
 #17 0x00007ffff7fad806 in ?? ()
 #18 0x0000000000000523 in ?? ()
 #19 0x00007ffff7fad148 in ?? ()
 #20 0x00007ffff7fad806 in ?? ()
 #21 0x0000000000000523 in ?? ()
 #22 0x0000000000000020 in ?? ()
 ---Type <return> to continue, or q <return> to quit---
 #23 0x0000000000000000 in ?? ()
 }}}

 Crap. Should I have built a static binary? I didn't notice this message:
 {{{
 warning: The current binary is a PIE (Position Independent Executable),
 which
 GDB does NOT currently support.  Most debugger features will fail if used
 in this session.

 Reading symbols from /home/tor24/bin/tor...done.
 }}}

 I thought perhaps I could dereference the pointer to chan, but this did
 not seem to work:
 {{{
 (gdb) info frame
 Stack level 0, frame at 0x7fffffffdab0:
  rip = 0x7ffff68341b5; saved rip 0x7ffff6836fc0
  called by frame at 0x7fffffffdab8
  Arglist at 0x7fffffffdaa0, args:
  Locals at 0x7fffffffdaa0, Previous frame's sp is 0x7fffffffdab0
  Saved registers:
   rip at 0x7fffffffdaa8
 (gdb) x 0x7fffffffdaa0
 0x7fffffffdaa0: 0xffffe06e
 (gdb) x 0xffffe06e
 0xffffe06e:     Cannot access memory at address 0xffffe06e
 }}}

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


More information about the tor-bugs mailing list