Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#1964 closed defect (fixed)

Tor 0.2.2.16-alpha seg faults

Reported by: arma Owned by: Sebastian
Priority: High Milestone: Tor: 0.2.2.x-final
Component: Core Tor/Tor Version: Tor: 0.2.2.15-alpha
Severity: Keywords: easy tor-relay
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

My bridge, running git 85cad94221aa7, just seg faulted. I failed to get a core.

Its last words, at log-level info, were

Sep 21 02:12:08.038 [info] update_consensus_router_descriptor_downloads(): 0 router descriptors downloadable. 21 delayed; 1837 present (0 of those were in old_routers); 0 would_reject; 0 wouldnt_use; 0 in progress.
Sep 21 02:12:08.039 [info] routerlist_remove_old_routers(): We have 2910 live routers and 3326 old router descriptors.
Sep 21 02:12:21.266 [info] tor_tls_read(): Got a TLS renegotiation from "<cn>"
Sep 21 02:12:21.266 [info] command_process_versions_cell(): Negotiated version 2 with <cn>:43120; sending NETINFO.
Sep 21 02:12:22.144 [info] command_process_netinfo_cell(): Got good NETINFO cell from <cn>:43120; OR connection is now open, using protocol version 2
Sep 21 02:12:23.222 [info] connection_exit_connect_dir(): Opening local connection for anonymized directory exit
Sep 21 02:12:23.429 [info] _connection_free(): Freeing linked Directory connection [writing] with 0 bytes on inbuf, 0 on outbuf.
Sep 21 02:12:23.429 [info] connection_edge_reached_eof(): conn (fd -1) reached eof. Closing.
Sep 21 02:12:23.429 [info] _connection_free(): Freeing linked Exit connection [open] with 0 bytes on inbuf, 0 on outbuf.
Sep 21 02:12:30.080 [info] rep_hist_downrate_old_runs(): Discounting all old stability info by a factor of 0.950000

Child Tickets

Change History (7)

comment:1 Changed 9 years ago by arma

Milestone: Tor: 0.2.2.x-final
Priority: normalmajor

#0 0x00000000004ab1a3 in geoip_get_client_history (

action=GEOIP_CLIENT_CONNECT) at geoip.c:256

256 return (int) smartlist_len(geoip_countries);
(gdb) where
#0 0x00000000004ab1a3 in geoip_get_client_history (

action=GEOIP_CLIENT_CONNECT) at geoip.c:256

#1 0x00000000004ab753 in geoip_bridge_stats_write (now=1285187293)

at geoip.c:1165

#2 0x000000000040bbb5 in second_elapsed_callback (

timer=<value optimized out>, arg=<value optimized out>) at main.c:1041

#3 0x00007fb298152ec1 in event_base_loop () from /usr/lib/libevent-1.3e.so.1
#4 0x00000000004093f1 in do_main_loop () at main.c:1534
#5 0x00000000004096f5 in tor_main (argc=3, argv=<value optimized out>)

at main.c:2211

#6 0x00007fb29740b1a6 in libc_start_main () from /lib/libc.so.6
#7 0x0000000000407899 in _start ()
(gdb) print geoip_countries
$1 = (smartlist_t *) 0x0

I'm a bridge without a geoip file:

Sep 20 02:12:28.145 [warn] Failed to open GEOIP file ../trunk/src/config/geoip.

We've been configured to see which countries can access us as a bridge, and we

need GEOIP information to tell which countries clients are in.

comment:2 Changed 9 years ago by nickm

Keywords: easy added

Tagging "easy"; this should be pretty easy to resolve given the stack trace above.

comment:3 Changed 9 years ago by Sebastian

Owner: set to Sebastian
Status: newassigned

Yup, I'll fix it

comment:4 Changed 9 years ago by Sebastian

Status: assignedneeds_review

bug1964 in my repo

comment:5 Changed 9 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed

Looks trivially right. Merging and closing. Thanks!

comment:6 Changed 7 years ago by nickm

Keywords: tor-relay added

comment:7 Changed 7 years ago by nickm

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