Dear list,

Does anyone experienced a crash of the XML package, using the latest
version of R 3.1.0?
Below you can find the original email sent to Duncan, but didn't get any
reply so far.

Thanks,
Adrian


---------- Forwarded message ----------
From: Adrian Dușa <dusa.adrian@unibuc.ro>
Date: Tue, Jun 3, 2014 at 12:26 AM
Subject: XML crash
To: Duncan Temple Lang <duncan@r-project.org>


Hello Duncan,

I am trying to use the XML package with the latest version of R, under
MacOS, and it seems to crash on my computer.

Below you can find the result of a simple command:

> library(XML)
> doc <- xmlTreeParse("http://www.omegahat.org/Scripts/Data/mtcars.xml")

 *** caught segfault ***
address 0x18, cause 'memory not mapped'

Traceback:
 1: .Call("RS_XML_getDefaultValiditySetting", as.integer(val), PACKAGE =
"XML")
 2: xmlValidity()
 3: xmlTreeParse("http://www.omegahat.org/Scripts/Data/mtcars.xml")

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:


I tried to replicate that on a Windows machine, but the command didn't work
because the file seems not to be present anymore on the omegahat website.

> doc <- xmlTreeParse("http://www.omegahat.org/Scripts/Data/mtcars.xml")
failed to load HTTP resource
Error: 1: failed to load HTTP resource


I've managed to find it elsewhere, and it proved the command does indeed
work:
> doc <- xmlTreeParse("http://www.stats.ox.ac.uk/pub/bdr/mtcars.xml")
>

So it seems that on a Windows system it works as expected, but not with the
latest version of R under MacOS. It works very well on R 3.0.3, but not on
R 3.1.0 (below the exact details of my R installation).

R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.1.0 (64-bit)

[R.app GUI 1.63 (6734) x86_64-apple-darwin13.1.0]

> R.Version()
$platform
[1] "x86_64-apple-darwin13.1.0"

$arch
[1] "x86_64"

$os
[1] "darwin13.1.0"

$system
[1] "x86_64, darwin13.1.0"

$status
[1] ""

$major
[1] "3"

$minor
[1] "1.0"

$year
[1] "2014"

$month
[1] "04"

$day
[1] "10"

svn rev`
[1] "65387"

$language
[1] "R"

$version.string
[1] "R version 3.1.0 (2014-04-10)"

$nickname
[1] "Spring Dance"

Hope this helps,
Adrian



--
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
1, Schitu Magureanu Bd.
050025 Bucharest sector 5
Romania
Tel.:+40 21 3126618 \
        +40 21 3120210 / int.101
Fax: +40 21 3158391

	[[alternative HTML version deleted]]

