[Rd] Crash report: regexpr("a{2-}", "")

David Scott d.scott at auckland.ac.nz
Wed Sep 22 22:16:23 CEST 2010


  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         LC_TIME=en_NZ
  [4] LC_COLLATE=en_NZ     LC_MONETARY=C        LC_MESSAGES=en_NZ
  [7] LC_PAPER=en_NZ       LC_NAME=C            LC_ADDRESS=C
[10] LC_TELEPHONE=C       LC_MEASUREMENT=en_NZ LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] djsmisc_1.0-1


David Scott


On 23/09/10 04:37, Brian Diggs wrote:
> [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:
>>
>> regexpr("a{2-}", "")
>> sub("a{2-}", "")
>> gsub("a{2-}", "")
>>
>>
>> EXAMPLES:
> To add another (windows) example it also crashes the 2.12.0 alpha build:
>
>   >  sessionInfo()
> R version 2.12.0 alpha (2010-09-20 r52948)
> Platform: i386-pc-mingw32/i386 (32-bit)
> ...
>   >  regexpr("a{2-}", "")
> Assertion failed: iter->max == -1 || iter->max == 1, file tre-compile.c,
> line 1825
>
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
>
>>> sessionInfo()
>> R version 2.11.1 Patched (2010-09-16 r52949)
>> Platform: i386-pc-mingw32 (32-bit)
>> ...
>>> regexpr("a{2-}", "")
>> Assertion failed: iter->max == -1 || iter->max == 1, file
>> tre-compile.c, line 1825
>> This application has requested the Runtime to terminate it in an unusual way.
>> Please contact the application's support team for more information.
>>
>>> sessionInfo()
>> R version 2.12.0 Under development (unstable) (2010-09-14 r52910)
>> Platform: i386-pc-mingw32/i386 (32-bit)
>> ...
>>> regexpr("a{2-}", "")
>> Assertion failed: iter->max == -1 || iter->max == 1, file
>> tre-compile.c, line 1825
>> This application has requested the Runtime to terminate it in an unusual way.
>> Please contact the application's support team for more information.
>>
>>
>>> sessionInfo()
>> R version 2.11.0 Patched (2010-05-09 r51960)
>> x86_64-unknown-linux-gnu
>> ...
>>> regexpr("a{2-}", "")
>> R: tre-compile.c:1825: tre_ast_to_tnfa: Assertion `iter->max == -1 ||
>> iter->max == 1' failed.
>> Aborted
>>
>>
>> /Henrik
>>
>


-- 
_________________________________________________________________
David Scott	Department of Statistics
		The University of Auckland, PB 92019
		Auckland 1142,    NEW ZEALAND
Phone: +64 9 923 5055, or +64 9 373 7599 ext 85055
Email:	d.scott at auckland.ac.nz,  Fax: +64 9 373 7018

Director of Consulting, Department of Statistics



More information about the R-devel mailing list