From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.2 required=3.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Hleb Valoshka <375gnu@gmail.com> Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: Re: Concurrency issue in TestKgioUnixConnect? Date: Sun, 1 Sep 2013 19:57:31 +0300 Message-ID: References: <20130901140301.GI1272@loar> <20130901140301.GI1272@loar> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378054658 9123 80.91.229.3 (1 Sep 2013 16:57:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Sep 2013 16:57:38 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Sun Sep 01 18:57:39 2013 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:197 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGAxy-0003j2-MD for gclrkg-kgio@m.gmane.org; Sun, 01 Sep 2013 18:57:34 +0200 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id F139C75055 for ; Sun, 1 Sep 2013 17:06:19 +0000 (UTC) On 9/1/13, J=C3=A9r=C3=A9my Bobbio wrote: > Is there a concurrency issue in TestKgioUnixConnect? > Looking at the code, I see there's an underlying TOCTOU issue with how > the temporary socket path name is determined, but I'm not sure if that'= s > what we are seeing there=E2=80=A6 > Any opinions? I think you are right. I've just pushed trivial patch into team's repository to prevent this iss= ue: http://anonscm.debian.org/gitweb/?p=3Dpkg-ruby-extras/ruby-kgio.git;a=3Db= lob;f=3Ddebian/patches/0002-Change-prefix-of-temporary-sockets-to-prevent= -races.patch (But I want to delay package upload until ruby 2.0 go into repository.)