From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.70.138 with SMTP id d10cs7570qcj; Tue, 12 Jul 2011 17:42:20 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCPPy_u6JBxDp0_PwBBoEo4HJTw@googlegroups.com designates 10.224.31.139 as permitted sender) client-ip=10.224.31.139; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCPPy_u6JBxDp0_PwBBoEo4HJTw@googlegroups.com designates 10.224.31.139 as permitted sender) smtp.mail=rack-devel+bncCPPy_u6JBxDp0_PwBBoEo4HJTw@googlegroups.com; dkim=pass header.i=rack-devel+bncCPPy_u6JBxDp0_PwBBoEo4HJTw@googlegroups.com Received: from mr.google.com ([10.224.31.139]) by 10.224.31.139 with SMTP id y11mr317016qac.54.1310517739996 (num_hops = 1); Tue, 12 Jul 2011 17:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:x-en-origoutip:x-en-impsid:mime-version :in-reply-to:references:date:message-id:subject:from:to :x-en-userinfo:x-en-authuser:sender:x-en-origip:x-en-orighost :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:list-subscribe:list-unsubscribe:content-type; bh=W8qnqTt/TjGWMnAUL2HDX+Z8TuG9pAOpe4Bpi5QyVHw=; b=6c2CnMjFlACH75cGmvcVuLCQvegkshXWQTk2By8bJbmsrbANB641ptxmHsBldFAH1J 4UpE/rxzkcr7njcwBQkltjvrNJ/MPo6IEKEYdyuwXkUku0QajxCIxssRAbk9xoRjj/04 z5d1FZEVMZgGzj5rXPlsnZ+lzC1Mb9pd+I2Eg= Received: by 10.224.31.139 with SMTP id y11mr95809qac.54.1310517737815; Tue, 12 Jul 2011 17:42:17 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.224.176.211 with SMTP id bf19ls187958qab.3.gmail; Tue, 12 Jul 2011 17:42:16 -0700 (PDT) Received: by 10.224.208.202 with SMTP id gd10mr678160qab.16.1310517736340; Tue, 12 Jul 2011 17:42:16 -0700 (PDT) Received: by 10.224.208.202 with SMTP id gd10mr678159qab.16.1310517736328; Tue, 12 Jul 2011 17:42:16 -0700 (PDT) Received: from mailout08.yourhostingaccount.com (mail18.yourhostingaccount.com [65.254.254.75]) by gmr-mx.google.com with ESMTP id p20si13920618qca.0.2011.07.12.17.42.15; Tue, 12 Jul 2011 17:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of SRS0=Tj/Dux=2A=stjohnstudios.com=chris@yourhostingaccount.com designates 65.254.254.75 as permitted sender) client-ip=65.254.254.75; Received: from mailscan21.yourhostingaccount.com ([10.1.15.21] helo=mailscan21.yourhostingaccount.com) by mailout08.yourhostingaccount.com with esmtp (Exim) id 1QgnWp-0005FR-Af for rack-devel@googlegroups.com; Tue, 12 Jul 2011 20:42:15 -0400 Received: from impout03.yourhostingaccount.com ([10.1.55.3] helo=impout03.yourhostingaccount.com) by mailscan21.yourhostingaccount.com with esmtp (Exim) id 1QgnWo-0007g0-LM for rack-devel@googlegroups.com; Tue, 12 Jul 2011 20:42:14 -0400 Received: from authsmtp01.yourhostingaccount.com ([10.1.18.1]) by impout03.yourhostingaccount.com with NO UCE id 7CiE1h00401P85W0000000; Tue, 12 Jul 2011 20:42:14 -0400 X-EN-OrigOutIP: 10.1.18.1 X-EN-IMPSID: 7CiE1h00401P85W0000000 Received: from mail-pz0-f49.google.com ([209.85.210.49]) by authsmtp01.yourhostingaccount.com with esmtpa (Exim) id 1QgnWo-0005i0-Jy for rack-devel@googlegroups.com; Tue, 12 Jul 2011 20:42:14 -0400 Received: by pzk28 with SMTP id 28so5200345pzk.36 for ; Tue, 12 Jul 2011 17:42:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.6.73 with SMTP id y9mr633768pby.290.1310517731360; Tue, 12 Jul 2011 17:42:11 -0700 (PDT) Received: by 10.68.66.1 with HTTP; Tue, 12 Jul 2011 17:42:11 -0700 (PDT) In-Reply-To: <6448086.93.1310513292626.JavaMail.geo-discussion-forums@yqyy3> References: <6448086.93.1310513292626.JavaMail.geo-discussion-forums@yqyy3> Date: Tue, 12 Jul 2011 20:42:11 -0400 Message-ID: Subject: Re: Rack Uses Regex That Occasionally Causes REE to Hang From: "Chris St. John" To: rack-devel@googlegroups.com, nunemaker@gmail.com X-EN-UserInfo: 97f36acc7eef731581dcb8b7fca623f7:02f8e8c296474642da35fda2d0ff7e7b X-EN-AuthUser: chris@stjohnstudios.com Sender: rack-devel@googlegroups.com X-EN-OrigIP: 209.85.210.49 X-EN-OrigHost: mail-pz0-f49.google.com X-Original-Sender: chris@stjohnstudios.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of SRS0=Tj/Dux=2A=stjohnstudios.com=chris@yourhostingaccount.com designates 65.254.254.75 as permitted sender) smtp.mail=SRS0=Tj/Dux=2A=stjohnstudios.com=chris@yourhostingaccount.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=bcaec52156f9d9811604a7e8afcc --bcaec52156f9d9811604a7e8afcc Content-Type: text/plain; charset=ISO-8859-1 I tested the regex with 1.8.7, 1.9.2, and JRuby 1.6.1. All seem to hang and show the same behavior you see with REE. Seems to be an issue with Ruby's regex engine on all distros. FWIW, out of curiosity I ran the same regex in Perl, which handled it quickly and correctly. Chris On Tue, Jul 12, 2011 at 7:28 PM, John Nunemaker wrote: > Posted the REE issue to the REE google group as well: > https://groups.google.com/forum/#!topic/emm-ruby/EBkMfFpk40A > > The regex used on line 61 in rack/backports/uri/common.rbcauses REE to hang for certain strings. I only know because it happened in > production over and over the past week and today, with help, I was finally > able to track it down. > > Not sure if this is really an issue with Rack or just with REE, but it will > affect anyone using Rack 1.3.0 and REE so I thought I would mention it here > as well. > --bcaec52156f9d9811604a7e8afcc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I tested the regex with 1.8.7, 1.9.2, and JRuby 1.6.1. =A0All seem to hang = and show the same behavior you see with REE. =A0Seems to be an issue with R= uby's regex engine on all distros. =A0FWIW, out of curiosity I ran the = same regex in Perl, which handled it quickly and correctly.

Chris

On Tue, Jul 12= , 2011 at 7:28 PM, John Nunemaker <nunemaker@gmail.com> wrote:
Posted the REE issue to the REE google group as well:

The regex used on line = 61 in rack/backports/uri/common.rb causes REE to hang for certain strin= gs. I only know because it happened in production over and over the past we= ek and today, with help, I was finally able to track it down.

Not sure if this is really an issue with Rack or just w= ith REE, but it will affect anyone using Rack 1.3.0 and REE so I thought I = would mention it here as well.

--bcaec52156f9d9811604a7e8afcc--