Delivery-Date: Sun, 24 Jan 2016 12:36:12 -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 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 066EC1E01B4;
	Sun, 24 Jan 2016 12:36:10 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 4EB493622E;
	Sun, 24 Jan 2016 17:36:05 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 24B753312C
 for <tor-talk@lists.torproject.org>; Sun, 24 Jan 2016 17:36:02 +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 9XWUUMXpJg9X for <tor-talk@lists.torproject.org>;
 Sun, 24 Jan 2016 17:36:02 +0000 (UTC)
Received: from magic02.frii.com (magicmail02.frii.com [216.17.135.171])
 by eugeni.torproject.org (Postfix) with SMTP id E89B928420
 for <tor-talk@lists.torproject.org>; Sun, 24 Jan 2016 17:36:01 +0000 (UTC)
Received: (qmail 7234 invoked from network); 24 Jan 2016 17:35:59 -0000
Received: from localhost (HELO [192.168.101.125]) (cline@frii.com@127.0.0.1)
 by magic02.frii.com with SMTP
 (ee4aca78-c2c0-11e5-9c3f-332c7e9112c4); Sun, 24 Jan 2016 10:35:59 -0700
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
X-Pgp-Agent: GPGMail 2.5.2
From: Ken Cline <cline@frii.com>
In-Reply-To: <CAD2Ti2-gfnYOuwO_k8gTptbdutqufcfuf3LWUHpMmPeaLkm=ww@mail.gmail.com>
Date: Sun, 24 Jan 2016 10:35:58 -0700
Message-Id: <7AFB8257-EEB2-4911-B6E0-289EB1E69597@frii.com>
References: <20160116212250.GA14827@ix-293.local> <n7p00n$ia8$1@ger.gmane.org>
 <20160123191442.GA2981@ix.home>
 <975f6dce11caa36e05b79e0b6172bacf@blackmesa.at>
 <CAD2Ti2-iaD0yct=2215rsG7QEP7WQSpoQcw3hQYoDLn-C8FjpQ@mail.gmail.com>
 <40E8EAC4-1F93-4CA7-BF40-8F2BA2A1CAB5@frii.com>
 <CAD2Ti2-gfnYOuwO_k8gTptbdutqufcfuf3LWUHpMmPeaLkm=ww@mail.gmail.com>
To: tor-talk@lists.torproject.org
X-Mailer: Apple Mail (2.2104)
X-MagicMail-OS: MagicMail 2.0-Stable
X-MagicMail-UUID: ee4aca78-c2c0-11e5-9c3f-332c7e9112c4
X-MagicMail-Authenticated: cline@frii.com
X-MagicMail-SourceIP: 127.0.0.1
X-MagicMail-EnvelopeFrom: <cline@frii.com>
Subject: Re: [tor-talk] Kernel OOPS through Tor - report or ignore?
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="===============8945044929026688470=="
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>


--===============8945044929026688470==
Content-Type: multipart/signed; boundary="Apple-Mail=_2A4EA06C-154C-469D-88A0-184E62FADDB9"; protocol="application/pgp-signature"; micalg=pgp-sha1


--Apple-Mail=_2A4EA06C-154C-469D-88A0-184E62FADDB9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> On 24 Jan 2016, at 12:08 AM, grarpamp <grarpamp@gmail.com> wrote:
>=20
> On Sat, Jan 23, 2016 at 7:17 PM, Ken Cline <cline@frii.com> wrote:
>> I reported a Tor crash, only to find it was caused by a failing disk.
>=20
> Apps should not crash due to failed i/o, rather should retry, block,
> fail, or exit, perhaps configurably. Especially if kern errno.h =
posted.

The problem here is that there was no read syscall, so no errno value to =
check.  The file (microdesc cache) was mapped into memory using =
tor_mmap_file.  The disk error occurred when the kernel attempted to =
page in the data on a memory read, and signal 10 (bus error) was =
properly raised.  Handling this situation correctly is tricky.  I do not =
fault the Tor programmers for letting it fall through to the crash =
handler.

Here's my stack trace in case you are interested.


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D T=3D 1423594406
Tor 0.2.5.10 (git-13318a95ddfbbf8d) died: Caught signal 10
0   tor.real                            0x00182076 crash_handler + 81
1   libsystem_platform.dylib            0x973d1deb _sigtramp + 43
2   libsystem_platform.dylib            0x973d1ee7 _platform_memchr + 19
3   tor.real                            0x00175a90 =
microdescs_parse_from_string + 197
4   tor.real                            0x0010c642 =
microdescs_add_to_cache + 118
5   tor.real                            0x0010d1da =
microdesc_cache_reload + 179
6   tor.real                            0x0010c59f get_microdesc_cache + =
187
7   tor.real                            0x00115750 =
nodelist_set_consensus + 99
8   tor.real                            0x00112efc =
networkstatus_set_current_consensus + 3112
9   tor.real                            0x0010f07a =
router_reload_consensus_networkstatus + 304
10  tor.real                            0x00107794 do_main_loop + 332
11  tor.real                            0x0010babd tor_main + 293
12  tor.real                            0x0003f59e main + 58
13  tor.real                            0x0003f535 start + 53
Abort trap: 6


--Apple-Mail=_2A4EA06C-154C-469D-88A0-184E62FADDB9
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-----
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlalC34ACgkQhVEOpGWd7KB1DACggcBSuFINkhhULG/oTgeasu+o
KYUAoMBQFVmhpFMoNLJiPG1a5V2ucnh0
=mm3y
-----END PGP SIGNATURE-----

--Apple-Mail=_2A4EA06C-154C-469D-88A0-184E62FADDB9--

--===============8945044929026688470==
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

--===============8945044929026688470==--

