Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 988451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:38:19+00:00 2026-05-16T05:38:19+00:00

I am using R 2.11.1 and XML package 3.1-0, and I was going through

  • 0

I am using R 2.11.1 and XML package 3.1-0, and I was going through an example from R2GoogleMaps when I encountered a segfault error.

#library(RJSONIO)
library(R2GoogleMaps)
library(XML)
#library(RCurl)

load("b.rda") # find in the sampleDocs folder in source file of R2GoogleMaps

center = c(mean(range(b$lat)), mean(range(b$long)))
code = addOverlay(gpolyline(b))

d = googleMapsDoc(code, center, zoom = 11, dim = c(750, 700), file = "simplePolyline.html")

Below is an easily reproducible code that gets the same error:

> library(XML)
> a <- htmlParse("http://bm2.genes.nig.ac.jp/RGM2/R_current/library/XML/man/xmlTreeParse.html")
> a

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

Traceback:
 1: .Call("RS_XML_dumpHTMLDoc", doc, as.integer(indent), as.character(encoding),     as.logical(indent), PACKAGE = "XML")
 2: saveXML(from)
 3: saveXML(from)
 4: asMethod(object)
 5: as(x, "character")
 6: cat(as(x, "character"), "\n")
 7: print.XMLInternalDocument(<pointer: 0x1016363f0>)
 8: print(<pointer: 0x1016363f0>)

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: 1
aborting ...

Process R segmentation fault at Sat Jul 31 22:07:02 2010

The problem also seems to be doing a saveXML() on the htmlParse() file.

When I was writing up another code that used htmlParse(), I don’t recall ever encountering this problem (although I don’t remember if I called a htmlParse() object explicitly). So I’m not entirely sure if this is a recent problem or not. The only difference between then and now (that I can remember) is that I’ve installed many of the OmegaHat packages from source.

I was curious if anyone else was getting this error. To explore if the cause lies with my laptop, I have restarted and upgraded my OS as a basic step. What might be the problem? Thanks.

edit: just for ref:

> sessionInfo()
R version 2.11.1 (2010-05-31) 
x86_64-apple-darwin9.8.0 

locale:
[1] C

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

other attached packages:
[1] XML_3.1-0     digest_0.4.2  reshape_0.8.3 plyr_0.1.9    proto_0.3-8  

loaded via a namespace (and not attached):
[1] ggplot2_0.8.7
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:38:20+00:00Added an answer on May 16, 2026 at 5:38 am

    I think that almost by definition a segmentation fault constitutes a bug.
    Your example works for me (see below).

    I would (a) make sure you have the latest version of XML and that the error
    still occurs there; (b) contact the maintainer of the XML package (try

    maintainer(“XML”)
    ) and provide your example and the results of sessionInfo()

    good luck.

    =============

    library(XML)
    a <- htmlParse(“http://bm2.genes.nig.ac.jp/RGM2/R_current/library/XML/man/xmlTreeParse.html“)

    sessionInfo()
    R version 2.11.1 (2010-05-31)
    i486-pc-linux-gnu

    locale:
    [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
    [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
    [5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
    [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
    [9] LC_ADDRESS=C LC_TELEPHONE=C
    [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

    other attached packages:
    [1] XML_3.1-0 reshape_0.8.3 plyr_1.0.3 proto_0.3-8

    loaded via a namespace (and not attached):
    [1] ggplot2_0.8.8

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using xml.net in web application When I try load xml through an
I'm working with SOAP using the javax.xml.soap package. I have a javax.xml.soap.SOAPMessage object that
I am using XML minidom (xml.dom.minidom) in Python, but any error in the XML
I have sample code written for parsing xml file using javax.xml package. it uses
I am working on producing an xml document from python. We are using the
I want to scrape html tables using the XML package of R, in a
I am using XML package in R to parse a XML file that has
I'm using XML::Simple package to import an XML file and change a few properties
I have been using the XML package successfully for extracting HTML tables but want
I'm trying to scrape some tables (election data) using the XML package. Browsing SO,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.