Hervé Pagès
2009-Sep-24 22:00 UTC
[Rd] crash with NAs in subscripted assignment of a raw vector
Hi,
> x <- charToRaw("ABCDEFGx")
> x[c(1:3, NA, 6)] <- x[8]
*** caught segfault ***
address 0x8402423f, cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Cheers,
H.
> sessionInfo()
R version 2.10.0 Under development (unstable) (2009-09-02 r49537)
x86_64-unknown-linux-gnu
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=C LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
--
Herv? Pag?s
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
P.O. Box 19024
Seattle, WA 98109-1024
E-mail: hpages at fhcrc.org
Phone: (206) 667-5791
Fax: (206) 667-1319
Seth Falcon
2009-Sep-25 00:30 UTC
[Rd] crash with NAs in subscripted assignment of a raw vector
2009/9/24 Herv? Pag?s <hpages at fhcrc.org>:> ?> x <- charToRaw("ABCDEFGx") > ?> x[c(1:3, NA, 6)] <- x[8] > > ? *** caught segfault *** > ?address 0x8402423f, cause 'memory not mapped'Thanks for the report. I have a fix which I will commit after some testing. -- Seth Falcon | @sfalcon | http://userprimary.net/user