Opened 13 years ago

Last modified 7 years ago

#410 closed defect (Fixed)

Bug: circuituse.c:530 (svn 9918)

Reported by: yancm Owned by:
Priority: Very High Milestone:
Component: Core Tor/Tor Version: 0.2.0.0-alpha-dev
Severity: Keywords:
Cc: yancm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

fyi...

tor is crashing with the following log message:
Mar 31 13:44:42.085 [err] circuit_detach_stream(): Bug: edge conn not in circuit's list?
Mar 31 13:44:42.085 [err] Bug: circuituse.c:530: circuit_detach_stream: Assertion 0 failed; aborting.

gdb bt gives:
clarity 74 -> gdb /usr/local/bin/tor tor.core
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...
Core was generated by `tor'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libz.so.0...done.
Loaded symbols for /usr/lib/libz.so.0
Reading symbols from /usr/lib/libpthread.so.0...done.
Loaded symbols for /usr/lib/libpthread.so.0
Reading symbols from /usr/local/lib/libevent-1.3b.so.1...done.
Loaded symbols for /usr/local/lib/libevent-1.3b.so.1
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /usr/lib/libcrypto.so.2...done.
Loaded symbols for /usr/lib/libcrypto.so.2
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /lib/libcrypt.so.0...done.
Loaded symbols for /lib/libcrypt.so.0
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
#0 0xbd9f80fb in kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0xbd9f80fb in kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0xbd9f80fb in kill () from /usr/lib/libc.so.12
#1 0xbda7917f in abort () from /usr/lib/libc.so.12
#2 0x08057d77 in circuit_detach_stream (circ=0x8edfc00, conn=0x8edfe00)

at circuituse.c:530

#3 0x0807d949 in dns_resolve (exitconn=0x8edfe00) at dns.c:631
#4 0x0806ac1d in connection_exit_begin_resolve (cell=0xbfbfe750,

circ=0x8edfc00) at connection_edge.c:2304

#5 0x08088785 in connection_edge_process_relay_cell (cell=0xbfbfe750,

circ=0x8edfc00, conn=0x0, layer_hint=0x0) at or.h:1555

#6 0x080868b9 in circuit_receive_relay_cell (cell=0xbfbfe750, circ=0x8edfc00,

cell_direction=2) at relay.c:170

#7 0x08059d30 in command_process_relay_cell (cell=0xbfbfe750, conn=0x8e6fb00)

at command.c:331

#8 0x0806ccdd in connection_or_process_cells_from_inbuf (conn=0x8e6fb00)

at connection_or.c:780

#9 0x08063cfe in connection_handle_read (conn=0x8e6fb00) at connection.c:1514
#10 0x0808263c in conn_read_callback (fd=25, event=2, _conn=0x8e6fb00)

at main.c:427

#11 0xbdbbb64c in event_process_active (base=0x80f3300) at event.c:315
#12 0xbdbbb8e2 in event_base_loop (base=0x80f3300, flags=0) at event.c:431
#13 0xbdbbb77b in event_loop (flags=0) at event.c:366
#14 0xbdbbb6ba in event_dispatch () at event.c:329
#15 0x08083ccc in do_main_loop () at main.c:1271
---Type <return> to continue, or q <return> to quit---
#16 0x0808498d in tor_main (argc=7, argv=0xbfbfed1c) at main.c:2497
#17 0x080a2c0b in main (argc=7, argv=0xbfbfed1c) at tor_main.c:22
#18 0x0804c996 in _start ()

[Automatically added by flyspray2trac: Operating System: BSD]

Child Tickets

Change History (7)

comment:1 Changed 13 years ago by yancm

Here are additional log messages over the last few days. Basically it continues to crash.
Mar 31 06:32:04.557 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Mar 31 13:44:42.085 [err] circuit_detach_stream(): Bug: edge conn not in circuit's list?
Mar 31 13:44:42.085 [err] Bug: circuituse.c:530: circuit_detach_stream: Assertion 0 failed; aborting.
Apr 01 18:45:27.158 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Apr 02 10:59:57.222 [err] circuit_detach_stream(): Bug: edge conn not in circuit's list?
Apr 02 10:59:57.222 [err] Bug: circuituse.c:530: circuit_detach_stream: Assertion 0 failed; aborting.
Apr 02 18:21:30.646 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Apr 03 03:32:01.442 [err] Bug: circuitlist.c:172: circuit_set_n_circid_orconn: Assertion bool_eq(active, circ->next_active_on_n_conn) failed; aborting.
Apr 03 11:39:54.654 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Apr 03 13:42:04.919 [err] Bug: circuitlist.c:148: circuit_set_p_circid_orconn: Assertion bool_eq(active, circ->next_active_on_p_conn) failed; aborting.
Apr 07 17:05:48.691 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Apr 07 20:56:48.266 [err] Bug: circuitlist.c:148: circuit_set_p_circid_orconn: Assertion bool_eq(active, circ->next_active_on_p_conn) failed; aborting.
Apr 08 10:16:52.902 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Apr 08 17:55:39.707 [err] Bug: circuitlist.c:148: circuit_set_p_circid_orconn: Assertion bool_eq(active, circ->next_active_on_p_conn) failed; aborting.

comment:2 Changed 13 years ago by nickm

Possibly fixed as of r9933. Needs testing.

The second message looks a lot like bug 411, which may also be fixed now.

comment:3 Changed 13 years ago by yancm

I have rebuilt at r9933 and still crash with:
Apr 09 18:06:39.106 [notice] Tor 0.2.0.0-alpha-dev opening log file.
Apr 10 03:13:21.490 [err] Bug: circuitlist.c:162: circuit_set_p_circid_orconn: Assertion bool_eq(active, circ->next_active_on_p_conn) failed; aborting.

gdb bt output:
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libz.so.0...done.
Loaded symbols for /usr/lib/libz.so.0
Reading symbols from /usr/lib/libpthread.so.0...done.
Loaded symbols for /usr/lib/libpthread.so.0
Reading symbols from /usr/local/lib/libevent-1.3b.so.1...done.
Loaded symbols for /usr/local/lib/libevent-1.3b.so.1
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /usr/lib/libcrypto.so.2...done.
Loaded symbols for /usr/lib/libcrypto.so.2
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /lib/libcrypt.so.0...done.
Loaded symbols for /lib/libcrypt.so.0
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
#0 0xbd9f80fb in kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0xbd9f80fb in kill () from /usr/lib/libc.so.12
#1 0xbda7917f in abort () from /usr/lib/libc.so.12
#2 0x08054a99 in circuit_set_p_circid_orconn (circ=0x8c29100, id=0, conn=0x0)

at circuitlist.c:169

#3 0x0805a087 in command_process_destroy_cell (cell=0xbfbfe750,

conn=0x8ba2100) at or.h:1555

#4 0x0806cdcd in connection_or_process_cells_from_inbuf (conn=0x8ba2100)

at connection_or.c:780

#5 0x08063e2a in connection_handle_read (conn=0x8ba2100) at connection.c:1514
#6 0x080827e8 in conn_read_callback (fd=29, event=2, _conn=0x8ba2100)

at main.c:427

#7 0xbdbbb64c in event_process_active (base=0x80f3300) at event.c:315
#8 0xbdbbb8e2 in event_base_loop (base=0x80f3300, flags=0) at event.c:431
#9 0xbdbbb77b in event_loop (flags=0) at event.c:366
#10 0xbdbbb6ba in event_dispatch () at event.c:329
#11 0x08083e78 in do_main_loop () at main.c:1271
#12 0x08084b39 in tor_main (argc=7, argv=0xbfbfed1c) at main.c:2497
#13 0x080a2db7 in main (argc=7, argv=0xbfbfed1c) at tor_main.c:22
#14 0x0804c996 in _start ()

comment:4 Changed 13 years ago by nickm

Gene: That's not the same crash; that's one of the incarnations of bug 411, which should be fixed as of r9936.

Please let me know if r9936 or later works for you. :)

comment:5 Changed 13 years ago by nickm

I can't provoke this one any more, so I'm closing it. Please mark it for reopening if
the same error ("Bug: edge conn not in circuit's list?") happens again.

comment:6 Changed 13 years ago by nickm

flyspray2trac: bug closed.
Fixed somewhere between 9931 and 9936.

comment:7 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.