[R] core dump with point.in.polygon

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Sep 1 07:39:50 CEST 2006


On Thu, 31 Aug 2006, Jeff D. Hamann wrote:

> I've been trying to get some code to run on a 64-bit FreeBSD machine running
> 
> R : Copyright 2006, The R Foundation for Statistical Computing
> Version 2.3.0 (2006-04-24)
> ISBN 3-900051-07-0
> 
> and keep getting a core dump with the following results:
> 
>  *** caught segfault ***
> address 0x0, cause 'unknown'
> 
> Traceback:
>  1: .Call("R_point_in_polygon_sp", as.numeric(point.x),
> as.numeric(point.y),     as.numeric(pol.x), as.numeric(pol.y), PACKAGE =
> "sp")
>  2: sp::point.in.polygon(point.x = stems$easting, point.y =
> stems$northing,     pol.x = get.pts(gpc.plot)[[1]]$x, pol.y =
> get.pts(gpc.plot)[[1]]$y)
>  3: as.logical(sp::point.in.polygon(point.x = stems$easting, point.y =
> stems$northing,     pol.x = get.pts(gpc.plot)[[1]]$x, pol.y =
> get.pts(gpc.plot)[[1]]$y))
>  4: poi.fp(gpc.perim, plot.grid[i, ], stems, plot.designs[1, ], plot.it =
> FALSE)
>  5: eval.with.vis(expr, envir, enclos)
>  6: eval.with.vis(ei, envir)
>  7: source("generate_samples.r")
> 
> Not sure what to do now. I've been running this on 2.3 Winxp box just fine
> and will continue to do so.

There are contributed packages involved here: please identify which and 
report this to the maintainer with a reproducible example.

There are 10 or so known packages which seqfault on 64-bit platforms: the 
authors have been informed (often long ago).  This looks as if it might be 
'sp', which is not one.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list