Opened 4 days ago

Last modified 3 days ago

#32033 new defect

process_unix_exec assertion failure when ServerTransportPlugin refers to nonexistent file

Reported by: dcf Owned by:
Priority: Medium Milestone: Tor: 0.4.2.x-final
Component: Core Tor/Tor Version: Tor: 0.4.2.2-alpha
Severity: Normal Keywords: tor-pt 042-should?
Cc: ahf Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I'm using commit 0d82a8be77ae8d7fb06c8702bfbf1ebbaf370c94.

Create a file called torrc.nonexistent:

PublishServerDescriptor 0
AssumeReachable
SOCKSPort 0

ORPort auto
ServerTransportPlugin nonexistent exec /usr/bin/nonexistent
Bridge nonexistent 127.0.0.1:9999

Run tor -f torrc.nonexistent and observe the following assertion failure (which occurs in a subprocess and doesn't bring down the main tor process):

Oct 10 16:08:13.000 [notice] Starting with guard context "default"
Oct 10 16:08:13.000 [notice] Unknown line received by managed proxy (Oct 10 16:08:09.000 [err] tor_assertion_failed_(): Bug: src/lib/process/process_unix.c:265: process_unix_exec: Assertion line should be unreached failed; aborting. (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 16:08:13.000 [notice] Unknown line received by managed proxy (Oct 10 16:08:09.000 [err] Bug: Tor 0.4.2.2-alpha-dev (git-0d82a8be77ae8d7f): Assertion line should be unreached failed in process_unix_exec at src/lib/process/process_unix.c:265: . Stack trace: (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 16:08:13.000 [notice] Unknown line received by managed proxy (Oct 10 16:08:09.000 [err] Bug:     ./src/app/tor(log_backtrace_impl+0x56) [0x5568c162baa6] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 16:08:13.000 [notice] Unknown line received by managed proxy (Oct 10 16:08:09.000 [err] Bug:     ./src/app/tor(tor_assertion_failed_+0x147) [0x5568c1626b27] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 16:08:13.000 [notice] Unknown line received by managed proxy (Oct 10 16:08:09.000 [err] Bug:     ./src/app/tor(process_unix_exec+0x274) [0x5568c15fca24] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 16:08:13.000 [notice] Unknown line received by managed proxy (Oct 10 16:08:09.000 [err] Bug:     ./src/app/tor(process_exec+0x5b) [0x5568c15faddb] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 16:08:13.000 [warn] Pluggable Transport process terminated with status code 6

Child Tickets

Change History (2)

comment:1 Changed 4 days ago by dcf

The first time I did this, I got a deeper stack trace, going all the way back to _start, but I could not reproduce it afterwards.

Oct 10 15:47:24.000 [notice] Starting with guard context "default"
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] tor_assertion_failed_(): Bug: src/lib/process/process_unix.c:265: process_unix_exec: Assertion line should be unreached failed; aborting. (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug: Tor 0.4.2.2-alpha-dev (git-0d82a8be77ae8d7f): Assertion line should be unreached failed in process_unix_exec at src/lib/process/process_unix.c:265: . Stack trace: (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(log_backtrace_impl+0x56) [0x55712264aaa6] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(tor_assertion_failed_+0x147) [0x557122645b27] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(process_unix_exec+0x274) [0x55712261ba24] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(process_exec+0x5b) [0x557122619ddb] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(pt_configure_remaining_proxies+0x563) [0x55712250c133] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(set_options+0x17d2) [0x5571225c1052] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(options_init_from_string+0x17d) [0x5571225c206d] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(options_init_from_torrc+0x404) [0x5571225c2704] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(tor_init+0x3c7) [0x557122493277] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(tor_run_main+0xb4) [0x557122493ac4] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(tor_main+0x3a) [0x5571224920ca] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(main+0x19) [0x557122491c89] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f465e57a09b] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).
Oct 10 15:47:24.000 [notice] Unknown line received by managed proxy (Oct 10 15:47:22.000 [err] Bug:     ./src/app/tor(_start+0x2a) [0x557122491cda] (on Tor 0.4.2.2-alpha-dev 0d82a8be77ae8d7f)).

comment:2 Changed 3 days ago by nickm

Cc: ahf added
Keywords: tor-pt 042-should? added
Milestone: Tor: 0.4.2.x-final
Note: See TracTickets for help on using tickets.