Delivery-Date: Mon, 23 Feb 2015 18:07:34 -0500
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	T_RP_MATCHES_RCVD,URIBL_BLOCKED autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id B452E1E0C0E
	for <archiver@seul.org>; Mon, 23 Feb 2015 18:07:32 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id BA05432ED8;
	Mon, 23 Feb 2015 23:07:27 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id C7AAD32EB2
 for <tor-talk@lists.torproject.org>; Mon, 23 Feb 2015 23:07:22 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ZszBbqkrv84b for <tor-talk@lists.torproject.org>;
 Mon, 23 Feb 2015 23:07:22 +0000 (UTC)
Received: from sebastianhahn.net (sebastianhahn.net [78.47.18.109])
 by eugeni.torproject.org (Postfix) with ESMTP id 9978332E8E
 for <tor-talk@lists.torproject.org>; Mon, 23 Feb 2015 23:07:22 +0000 (UTC)
Received: from shire.fritz.box (p54B11D4B.dip0.t-ipconnect.de [84.177.29.75])
 by sebastianhahn.net (Postfix) with ESMTPSA id C974114E4001
 for <tor-talk@lists.torproject.org>; Tue, 24 Feb 2015 00:07:18 +0100 (CET)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Pgp-Agent: GPGMail 2.5b5
From: Sebastian Hahn <sebastian@torproject.org>
In-Reply-To: <54EBAAC6.8040901@openmailbox.org>
Date: Tue, 24 Feb 2015 00:07:17 +0100
Message-Id: <FD9F0A19-F15E-497F-BE44-F0DB1C3F2A2E@torproject.org>
References: <54EBAAC6.8040901@openmailbox.org>
To: tor-talk@lists.torproject.org
X-Mailer: Apple Mail (2.2070.6)
Subject: Re: [tor-talk] tor --verify-config opens listeners? (for short
	timeframe)
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============9101381528961498247=="
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>


--===============9101381528961498247==
Content-Type: multipart/signed; boundary="Apple-Mail=_E294F549-9FCF-41F0-B684-423377E081AB"; protocol="application/pgp-signature"; micalg=pgp-sha1


--Apple-Mail=_E294F549-9FCF-41F0-B684-423377E081AB
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii


> On 23 Feb 2015, at 23:33, Nusenu <nusenu@openmailbox.org> wrote:
> I stumpled on this while debugging an ansible role.
> 
> It basically does this:
> tor --verify-config -f foo.torrc
> tor -f foo.torrc
> 
> while the torrc is fine and the first tor execution retuns 0 the
> second one will *sometimes* fail (depends on exact timing) because
> 'tor --verify-config' apparently occupies the ports - so the second
> tor invocation can't start anymore because the ports are still in use.
> 
> same problem with (I didn't expect that):
> tor --verify-config -f foo.torrc && tor -f foo.torrc
> 
> If you want to reproduce it you might have to try few times till it
> fails (and don't forget to kill tor when it didn't fail).
> 
> If this is expected behaviour please update the manual page to include
> information that --verify-config actually does quiet a bit more than
> reading the configuration file :)

This is a bug. Feel free to file it and assign it to me  (Sebastian
on trac.torproject.org), I'll take care of it in a few days.

Cheers
Sebastian

--Apple-Mail=_E294F549-9FCF-41F0-B684-423377E081AB
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJU67KlAAoJEKlsb90UDJYbmYAIAIFDV3qq/RHB1uG0oP3lL5Ue
KQtqvGMH7yiWkXCtYlbzncKXrDR78xHynl803oY8jQaKyRFwmnNC0HQIqafJOaYd
ebdcWHUfTxUc5SucNR25V2KJTvNXn802YrdcWvjHgYkRoDBLQBtTnzP778MRz1ZU
m8tKPk1P3jedb6pn7gzeRqPlF9M7/X9oM4qX5zOBYbDPPb330wwQLN16HOt1PDqM
FgP0ae/JAdO3t4gHysDJxmcqzDUXTy1nS72N7vX+v4tZuhl6u1+SqDd0UJ8KcoB7
zZBHhJfz9j/HNqgjFiWB0YayqM0Jil/VcliGmTEDPSZmogzLZeF2HKkXfKuM+1s=
=d1j8
-----END PGP SIGNATURE-----

--Apple-Mail=_E294F549-9FCF-41F0-B684-423377E081AB--

--===============9101381528961498247==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

--===============9101381528961498247==--

