#767 closed defect (invalid)
"definitely lost" memory leak in rgeos_Init (rgeos.c:57)
| Reported by: | philae | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 3.5.1 |
| Component: | Default | Version: | 3.5.0 |
| Severity: | Significant | Keywords: | leak, rgeos, rgeos_Init, rgeos.c |
| Cc: |
Description
Dear GEOS maintainers,
Thanks for this great software!
I would like to file a bug spotted via Valgrind while loading the R rgeos package. Below are the steps to reproduce it.
Create an R script "load_only.R" to attach the package
require("rgeos")
Run and debug the script using Valgring (Bash Shell)
Valgring reports the following about the leak (I sanitized some paths marked as SANITIZED_PATH and R-LIB_PATH):
40 bytes in 1 blocks are definitely lost in loss record 31 of 2,297 at 0x4C28C50: malloc (in SANITIZED_PATH/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x16525093: initGEOS_r (in SANITIZED_PATH/libgeos_c.so.1.8.2) by 0x15F5E738: rgeos_Init (rgeos.c:57) by 0x4F0B34F: ??? (in R-LIB_PATH/R/lib/libR.so) by 0x4F419DF: Rf_eval (in R-LIB_PATH/R/lib/libR.so) by 0x4F43E87: ??? (in R-LIB_PATH/R/lib/libR.so) by 0x4F417D0: Rf_eval (in R-LIB_PATH/R/lib/libR.so) by 0x4F42E3D: Rf_applyClosure (in R-LIB_PATH/R/lib/libR.so) by 0x4F415AC: Rf_eval (in R-LIB_PATH/R/lib/libR.so) by 0x4F41CDA: ??? (in R-LIB_PATH/R/lib/libR.so) by 0x4F41A3E: Rf_eval (in R-LIB_PATH/R/lib/libR.so)
The R session data is:
[1] ‘0.3.15’
[1] "R version 3.2.3 (2015-12-10)"
[1] "x86_64-redhat-linux-gnu (64-bit)"
Change History (3)
comment:1 by , 9 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:3 by , 9 years ago
Hello,
Thanks for the information, I've replied to Roger at the appropriate channel. Maybe it will end up to geos-devel mailing list too.
Note:
See TracTickets
for help on using tickets.

For reference, this was marked as invalid because related to
rgeoswhich is handled in https://r-forge.r-project.org/projects/rgeos/