[Rd] segfault in gregexpr()

Seth Falcon seth at userprimary.net
Thu Jan 31 07:03:37 CET 2008


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/



More information about the R-devel mailing list