[Accidentally posted this to r-help instead of r-devel; reposting to put
it into the correct list and thread. My apologies for the duplication.]
On 9/21/2010 8:04 PM, Henrik Bengtsson wrote:
Each of the following calls crash (core dumps) R (R --vanilla) on
various versions and OSes:
It crashes R on my linux:
regexpr(a{2-}, )
R: tre-compile.c:1825: tre_ast_to_tnfa: Assertion `iter-max == -1 ||
iter-max == 1' failed.
Aborted
My setup is:
sessionInfo()
R version 2.11.1 (2010-05-31)
i386-redhat-linux-gnu
locale:
[1] LC_CTYPE=en_NZ LC_NUMERIC=C
Each of the following calls crash (core dumps) R (R --vanilla) on
various versions and OSes:
regexpr(a{2-}, )
sub(a{2-}, )
gsub(a{2-}, )
EXAMPLES:
sessionInfo()
R version 2.11.1 Patched (2010-09-16 r52949)
Platform: i386-pc-mingw32 (32-bit)
...
regexpr(a{2-}, )
Assertion failed: iter-max ==
On Sep 21, 2010, at 11:04 PM, Henrik Bengtsson wrote:
Each of the following calls crash (core dumps) R (R --vanilla) on
various versions and OSes:
regexpr(a{2-}, )
sub(a{2-}, )
gsub(a{2-}, )
EXAMPLES:
sessionInfo()
R version 2.11.1 Patched (2010-09-16 r52949)
Platform: i386-pc-mingw32
David's post made me realize that I got the sub()/gsub() lines wrong.
It should be:
regexpr(a{2-}, )
sub(a{2-}, , )
gsub(a{2-}, , )
Either way, the crash is there, at on least Windows and Linux.
/Henrik
On Tue, Sep 21, 2010 at 8:43 PM, David Winsemius dwinsem...@comcast.net wrote:
On Sep 21,
On Sep 22, 2010, at 12:12 AM, Henrik Bengtsson wrote:
David's post made me realize that I got the sub()/gsub() lines wrong.
It should be:
regexpr(a{2-}, )
sub(a{2-}, , )
gsub(a{2-}, , )
Still no crash on a Mac. Did you mean to include a third argument to
regexpr() as you did for sub and
On Tue, Sep 21, 2010 at 9:20 PM, David Winsemius dwinsem...@comcast.net wrote:
On Sep 22, 2010, at 12:12 AM, Henrik Bengtsson wrote:
David's post made me realize that I got the sub()/gsub() lines wrong.
It should be:
regexpr(a{2-}, )
sub(a{2-}, , )
gsub(a{2-}, , )
Still no crash on a