Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#767 closed defect (invalid)

"definitely lost" memory leak in rgeos_Init (rgeos.c:57)

Reported by: philae Owned by: geos-devel@…
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)

Error: Failed to load processor bash
No macro or processor named 'bash' found

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:

Error: Failed to load processor r
No macro or processor named 'r' found
[1] ‘0.3.15’
Error: Failed to load processor r
No macro or processor named 'r' found
[1] "R version 3.2.3 (2015-12-10)"
Error: Failed to load processor r
No macro or processor named 'r' found
[1] "x86_64-redhat-linux-gnu (64-bit)"

Change History (3)

comment:1 by rsbivand, 8 years ago

Resolution: invalid
Status: newclosed

comment:2 by strk, 8 years ago

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

Last edited 8 years ago by strk (previous) (diff)

comment:3 by philae, 8 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.