[R-sig-Geo] gUnion causes segfault

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Jun 2 21:12:36 CEST 2011


I get a buffer overflow and a nice traceback that might be helpful:

*** buffer overflow detected ***: /usr/lib/R/bin/exec/R terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x1f3390]
/lib/tls/i686/cmov/libc.so.6(+0xe12ca)[0x1f22ca]
/lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0x1f1644]
/home/rowlings/R/i486-pc-linux-gnu-library/2.12/rgeos/libs/rgeos.so(RGEOS_comment2comm+0x8f)[0xc70aff]
/home/rowlings/R/i486-pc-linux-gnu-library/2.12/rgeos/libs/rgeos.so(rgeos_Polygons2geospolygon+0x5c)[0xc73a8c]
/home/rowlings/R/i486-pc-linux-gnu-library/2.12/rgeos/libs/rgeos.so(rgeos_SpatialPolygons2geospolygon+0x8b)[0xc73d7b]
/home/rowlings/R/i486-pc-linux-gnu-library/2.12/rgeos/libs/rgeos.so(rgeos_convert_R2geos+0x548)[0xc74a58]
/home/rowlings/R/i486-pc-linux-gnu-library/2.12/rgeos/libs/rgeos.so(rgeos_topologyfunc+0x51)[0xc7cf61]
/home/rowlings/R/i486-pc-linux-gnu-library/2.12/rgeos/libs/rgeos.so(rgeos_unioncascaded+0x3c)[0xc7d1cc]
[etc]

My rgeos is:

rgeos: (SVN revision (unknown))
 GEOS runtime version: 3.2.2-CAPI-1.6.2
 Polygon checking: TRUE

Version: 0.1-6

Barry



More information about the R-sig-Geo mailing list