From seth at userprimary.net  Thu Jan 31 07:03:37 2008
From: seth at userprimary.net (Seth Falcon)
Date: Wed, 30 Jan 2008 22:03:37 -0800
Subject: [Rd] segfault in gregexpr()
In-Reply-To: <47A13725.6060208@fhcrc.org> (Herve Pages's message of "Wed\,
	30 Jan 2008 18\:49\:09 -0800")
References: <47A13725.6060208@fhcrc.org>
Message-ID: <m2ejbypm4m.fsf@userprimary.net>

Hi Herve,

Thanks for the report.  I can reproduce this with latest R-devel.
perl=TRUE is also broken.  I have a patch which I am testing.  With
it, I get:

    > gregexpr("", "abc") 
    [[1]]
    [1] 1 2 3
    attr(,"match.length")
    [1] 0 0 0
    
    > gregexpr("", "abc", fixed=TRUE)
    [[1]]
    [1] 1 2 3
    attr(,"match.length")
    [1] 0 0 0
    
    > gregexpr("", "abc", perl=TRUE)
    [[1]]
    [1] 1 2 3
    attr(,"match.length")
    [1] 0 0 0


+ seth

-- 
Seth Falcon | seth at userprimary.net | blog: http://userprimary.net/user/



[Rd] segfault in gregexpr()
Seth Falcon