Hi,
Tried with R 2.6 and R 2.7:
> gregexpr("", "abc", fixed=TRUE)
*** caught segfault ***
address 0x1c09000, cause 'memory not mapped'
Traceback:
1: gregexpr("", "abc", fixed = TRUE)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:
> sessionInfo()
R version 2.7.0 Under development (unstable) (2008-01-29 r44238)
x86_64-unknown-linux-gnu
locale:
LC_CTYPE=en_US;LC_NUMERIC=C;LC_TIME=en_US;LC_COLLATE=en_US;LC_MONETARY=en_US;LC_MESSAGES=en_US;LC_PAPER=en_US;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US;LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
Cheers,
H.
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/