[Rd] memory leak in split.screen

Martin Schlather martin.schlather at googlemail.com
Mon Jul 18 22:18:49 CEST 2016


Hello,

## Configuring R with

 ./configure --with-tcl-config=/usr/lib/tcl8.5/tclConfig.sh
--with-tk-config=/usr/lib/tk8.5/tkConfig.sh  CFLAGS="-fsanitize=address
-fsanitize=undefined -fno-sanitize=float-divide-by-zero,vptr  "
CXXFLAGS="-fsanitize=address -fsanitize=undefined
-fno-sanitize=float-divide-by-zero,vptr  " LD_FLAGS="-pthread
-fopenmp-lclang_rt.asan_cxx-x86_64 -fopenmp=libgomp"  CC="clang-3.8
-fsanitize=address -fsanitize=undefined
-fno-sanitize=float-divide-by-zero,vptr" CXX="clang++-3.8
-fsanitize=address -fsanitize=undefined
-fno-sanitize=float-divide-by-zero,vptr"


## I get in the interactive mode of R for

n <- 4 ## the number is unimportant
split.screen(c(n, n))
## close.screen(all=TRUE)  ## this command does not rectify the problem
q()

## the following result:

=================================================================
==14567==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x4d5018  (/usr/local/lib64/R/bin/exec/R+0x4d5018)
    #1 0x7f61cec8b56a  (/usr/lib/x86_64-linux-gnu/libcairo.so.2+0x9b56a)

SUMMARY: AddressSanitizer: 32 byte(s) leaked in 1 allocation(s).


## I use Ubuntu 14.04.4 LTS,
platform       x86_64-pc-linux-gnu                               
arch           x86_64                                            
os             linux-gnu                                         
system         x86_64, linux-gnu                                 
status         Under development (unstable)                      
major          3                                                 
minor          4.0                                               
year           2016                                              
month          07                                                
day            15                                                
svn rev        70918                                             
language       R                                                 
version.string R Under development (unstable) (2016-07-15 r70918)
nickname       Unsuffered Consequences                           



I would be happy to get any hint that explains this behaviour.
The LeakSanitizer message appears in the interactive mode,
but not in the batch mode.

With kind regards,
Martin Schlather



More information about the R-devel mailing list