Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#4599 closed defect (fixed)

dir auth segfault on master

Reported by: Sebastian Owned by:
Priority: Medium Milestone: Tor: 0.2.3.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-auth
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


(gdb) bt
#0  0x00007ffff77327db in event_del () from /usr/lib/
#1  0x000000000040a347 in connection_stop_reading (conn=0x24d7c80)
    at main.c:510
#2  0x00000000004907b9 in connection_or_close_connection_cb (
    _conn=0xcccccccccccccccc) at connection_or.c:1165
#3  0x00007ffff7733344 in event_base_loop () from /usr/lib/
#4  0x0000000000409cf1 in do_main_loop () at main.c:1923
#5  0x000000000040a02d in tor_main (argc=<value optimized out>, 
    argv=0x7fffffffe1d8) at main.c:2614
#6  0x00007ffff69e7c4d in __libc_start_main (main=<value optimized out>, 
    argc=<value optimized out>, ubp_av=<value optimized out>, 
    init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffffffe1c8)
    at libc-start.c:228
#7  0x0000000000408519 in _start ()

Not quite sure if only dirauths are affected

Child Tickets

Change History (4)

comment:1 Changed 9 years ago by Sebastian

< wanoskarnet> re #4599, it's result of tor_run_in_libevent_loop() logic, conn can be closed already and freed when it invoked from libevent loop.

Currently no time to verify or look at this in detail

comment:2 Changed 9 years ago by nickm

Resolution: fixed
Status: newclosed

Ah shoot, I thought I merged a fix for this. Looks like I forgot to. :(

Commit aba25a6939a5907d40dbcff7433a8c130ffd12ad should fix it. Please reopen if not.

comment:3 Changed 8 years ago by nickm

Keywords: tor-auth added

comment:4 Changed 8 years ago by nickm

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