Opened 7 years ago

Closed 7 years ago

Last modified 20 months ago

#6255 closed defect (fixed)

Tor crashes on startup.

Reported by: katmagic Owned by: andrea
Priority: Immediate Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-client
Cc: nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

7c9f6a99 crashes on startup. An info-level log is below.

Jan  00:00:00.000 [notice] Tor 0.2.4.0-alpha-dev (git-7c9f6a994f610b27) opening new log file.
Jan 01 00:00:00.000 [info] {FS} tor_lockfile_lock(): Locking "/var/lib/tor/lock"
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 123/150 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 43/55 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 149/189 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 83/94 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 2/2 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} or_state_load(): Loaded state from "/var/lib/tor/state"
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 123/150 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 43/55 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 149/189 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 83/94 path bias for node Node
Jan 01 00:00:00.000 [info] {GENERAL} entry_guards_parse_state(): Read 2/2 path bias for node Node
Jan 01 00:00:00.000 [info] {CIRC} remove_obsolete_entry_guards(): Entry guard 'Node' (0000000000000000000000000000000000000000) was selected several months ago. (Version="0.2.3.15-alpha-dev".) Replacing it.
Jan 01 00:00:00.000 [info] {CIRC} log_entry_guards(): Node [0000000000000000000000000000000000000000] (no descriptor, made-contact), Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact), Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (bad, made-contact), Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (bad, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact),Node [0000000000000000000000000000000000000000] (no descriptor, made-contact)
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_parse_state(): Adding 7 timeouts.
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_parse_state(): Loaded 1000/1000 values from 166 lines in circuit time histogram
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_get_xm(): Xm mode #0: 775 43
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_get_xm(): Xm mode #1: 875 42
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_get_xm(): Xm mode #2: 775 43
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_set_timeout(): Based on 1000 circuit times, it looks like we don't need to wait so long for circuits to finish. We will now assume a circuit is too slow to use after waiting 3 seconds.
Jan 01 00:00:00.000 [info] {CIRC} circuit_build_times_set_timeout(): Circuit timeout data: 0.00000ms, 0.000000ms, Xm: 0, a: 1.000000, r: 0.000000
Jan 01 00:00:00.000 [info] {FS} read_file_to_str(): Could not open "/var/lib/tor/router-stability": No such file or directory
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} addressmap_register(): Addressmap: (re)mapped '[scrubbed]' to '[scrubbed]'
Jan 01 00:00:00.000 [info] {CONFIG} parse_reachable_addresses(): Using ReachableAddresses as ReachableORAddresses.
Jan 01 00:00:00.000 [info] {CONFIG} parse_reachable_addresses(): Using ReachableAddresses as ReachableDirAddresses
Jan 01 00:00:00.000 [info] {REND} rend_service_load_all_keys(): Loading hidden-service keys from "/var/lib/tor/hs"
Jan 01 00:00:00.000 [info] {CONFIG} rend_service_load_auth_keys(): Parsed 3 previously stored client entries.

Child Tickets

Change History (7)

comment:1 Changed 7 years ago by nickm

Milestone: Tor: 0.2.4.x-final

This is reprroducible by running "tor -hiddenservicedir /tmp/hs -hiddenserviceport 8080 -hiddenserviceauthorizeclient 'stealth foo,bar,baz' -PublishHidServDescriptors 0", letting it bootstrap, stopping it, and running it again.

comment:2 Changed 7 years ago by nickm

#0  tor_strclear (s=s@entry=0x0) at util.c:663
#1  0x000055555558b3d7 in rend_service_load_auth_keys (
    hfname=0x7fffffffd300 "/tmp/hs/hostname", s=0x5555558dcdb0)
    at rendservice.c:873
#2  rend_service_load_keys (s=s@entry=0x5555558dcdb0) at rendservice.c:687
#3  0x000055555558c391 in rend_service_load_all_keys () at rendservice.c:628
#4  0x00005555555e4f11 in options_act (old_options=0x0) at config.c:1551
#5  set_options (new_val=new_val@entry=0x5555558d7c90, 
    msg=msg@entry=0x7fffffffdf18) at config.c:754
#6  0x00005555555e6839 in options_init_from_string (
    cf_defaults=cf_defaults@entry=0x5555558d7bc0 "", 
    cf=cf@entry=0x5555558d7be0 "", command=command@entry=0, 
    command_arg=command_arg@entry=0x0, msg=msg@entry=0x7fffffffdf18)
    at config.c:4786
#7  0x00005555555e6b8f in options_init_from_torrc (argc=argc@entry=9, 
    argv=argv@entry=0x7fffffffe1c8) at config.c:4643
#8  0x0000555555569424 in tor_init (argc=argc@entry=9, 
    argv=argv@entry=0x7fffffffe1c8) at main.c:2333
#9  0x000055555556a62e in tor_main (argc=9, argv=0x7fffffffe1c8) at main.c:2646
#10 0x00007ffff66d1735 in __libc_start_main () from /lib64/libc.so.6
#11 0x0000555555564fdd in _start ()

comment:3 Changed 7 years ago by nickm

Status: newneeds_review

Please review branch bug6255 in my public repository?

comment:4 Changed 7 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed

Merged after review from andrea and rransom. Thanks, everyone!

comment:5 Changed 7 years ago by nickm

Keywords: tor-client added

comment:6 Changed 7 years ago by nickm

Component: Tor ClientTor

comment:7 Changed 20 months ago by teor

Severity: Normal

Set all tickets without a severity to "Normal"

Note: See TracTickets for help on using tickets.