Skip to content
Prev 62448 / 63424 Next

Segfault when parsing UTF-8 text with srcrefs

Hi all,

When I run the following code, R segfaults:

text <- "?"
srcfile <- srcfilecopy("test.r", text)
parse(textConnection(text), srcfile = srcfile)

It doesn't segfault if text is ASCII, or it's not wrapped in
textConnection, or srcfile isn't set.

Hadley