Opened 12 years ago

Last modified 7 years ago

#473 closed defect (Fixed)

buffers.c:1606: assert_buf_ok: Assertion buf->cur < buf->mem+buf->len failed; aborting

Reported by: weasel Owned by:
Priority: High Milestone:
Component: Core Tor/Tor Version: 0.2.0.2-alpha
Severity: Keywords:
Cc: weasel Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

on tor26, r11001, soon after starting:

Jul 31 04:21:03.510 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.
Jul 31 04:21:06.991 [notice] Performing bandwidth self-test...done.
Jul 31 04:21:09.585 [notice] Rejected router descriptor or extra-info from 64.62.190.36.
Jul 31 04:21:41.598 [notice] Rejected router descriptor or extra-info from 86.59.21.38.
Jul 31 04:21:41.638 [warn] http status 400 ("Extrainfo published time did not match routerdesc") response from dirserver '86.59.21.38:80'. Please correct.
Jul 31 04:25:24.936 [notice] Self-testing indicates your DirPort is reachable from the outside. Excellent.
Jul 31 04:29:18.359 [err] Bug: buffers.c:1606: assert_buf_ok: Assertion buf->cur < buf->mem+buf->len failed; aborting.

(gdb) bt
#0 0xffffe410 in kernel_vsyscall ()
#1 0xb7d3f885 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7d41002 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x0805038c in assert_buf_ok (buf=0x6) at buffers.c:1622
#4 0x080707ab in assert_connection_ok (conn=0xbea0da8, now=1185848958) at connection.c:2803
#5 0x0809bc09 in conn_write_callback (fd=372, events=4, _conn=0xbea0da8) at main.c:528
#6 0xb7f91c79 in event_base_priority_init () from /usr/lib/libevent-1.1a.so.1
#7 0xb7f91f65 in event_base_loop () from /usr/lib/libevent-1.1a.so.1
#8 0xb7f91dcb in event_loop () from /usr/lib/libevent-1.1a.so.1
#9 0x0809d733 in do_main_loop () at main.c:1386
#10 0x0809e86d in tor_main (argc=0, argv=0x0) at main.c:2635
#11 0x080caa1b in main (argc=0, argv=0x0) at tor_main.c:28

#4 0x080707ab in assert_connection_ok (conn=0xbea0da8, now=1185848958) at connection.c:2803
2803 assert_buf_ok(conn->inbuf);
(gdb) p *conn
$1 = {magic = 2100428547, type = 4 '\004', state = 5 '\005', purpose = 0 '\0',

read_blocked_on_bw = 0, write_blocked_on_bw = 0,
hold_open_until_flushed = 0, inbuf_reached_eof = 0, edge_has_sent_end = 0,
edge_blocked_on_circ = 0, or_is_obsolete = 0, chosen_exit_optional = 0,
s = 372, conn_array_index = 260, read_event = 0x8796480,
write_event = 0x8796240, inbuf = 0x8795d68, outbuf = 0xb039370,
outbuf_flushlen = 512, timestamp_lastread = 1185848956,
timestamp_lastwritten = 1185848955, timestamp_created = 1185848571,
socket_family = 2, addr = 2620942612, port = 9001, marked_for_close = 0,
marked_for_close_file = 0x0, address = 0x9f00720 "156.56.105.20",
linked_conn = 0x0, linked = 0, reading_from_linked_conn = 0,
writing_to_linked_conn = 0, active_on_link = 0, dns_server_port = 0x0}

(gdb) p *conn->inbuf
$2 = {magic = 2969563922,

mem = 0x9ae7458 "[..cut by weasel...]",
cur = 0x9ae9458 "[..cut by weasel...] ", highwater = 0, len = 8192, memsize = 8192,
datalen = 0}

weasel@intrepid:~$ bc
ibase=16
9AE9458-9AE7458
8192

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (3)

comment:1 Changed 12 years ago by nickm

I think I might have just fixed this in r11004.

comment:2 Changed 12 years ago by weasel

flyspray2trac: bug closed.
yup, seems like it's fixed

comment:3 Changed 7 years ago by nickm

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