* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/PSGExpress.Rcheck’ * using R Under development (unstable) (2019-07-26 r76894) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘PSGExpress/DESCRIPTION’ ... OK * this is package ‘PSGExpress’ version ‘3.1.3’ * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package ‘PSGExpress’ can be installed ... [446s/100s] OK * checking package directory ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking compiled code ... OK * checking examples ... ERROR Running examples in ‘PSGExpress-Ex.R’ failed The error most likely occurred in: > ### Name: rpsg_getfunctionincrement > ### Title: PSG Functions increments calculation > ### Aliases: rpsg_getfunctionincrement > > ### ** Examples > > > #Create Matrix > matrix_scenarios <- matrix(c(1,4,8,3, 7,-5,4,-6, -2,8,-1,0,0,-3,-4,9),nrow=4, byrow=TRUE) > colnames(matrix_scenarios) <- colnames(matrix_scenarios,do.NULL = FALSE, prefix = "x") > scenario_benchmark <- c(-2, 11, 6, 10) > scenario_probability <- c(0.2, 0.2, 0.3, 0.3) > matrix_scenarios <- cbind(matrix_scenarios,scenario_benchmark,scenario_probability) > > #Create Point > point_a <- c(1,1,1,1) > names(point_a) <-c("x1","x2","x3","x4") > > val1<- rpsg_getfunctionincrement("cvar_risk(0.65,matrix_scenarios)",point_a) ================================================================= ==34708==ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete []) on 0x60600000c740 #0 0x7fc3a9af1b8f in operator delete[](void*) (/lib64/libasan.so.5+0x110b8f) #1 0x7fc3981a2b23 in CRPSGSolverHelper::remove_comments_fromstring(std::__cxx11::basic_string, std::allocator >) ../src/RPSGSolverHelper.cpp:2177 #2 0x7fc3981f6afc in CRPSGSolverHelper::GetPSGDataObjectsFromStatement(std::__cxx11::basic_string, std::allocator >, CRPSGSolverHelper*, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::__cxx11::basic_string, std::allocator >&) ../src/RPSGSolverHelper.cpp:2194 #3 0x7fc39814cd15 in crpsg_getfunctionvalue /data/gannet/ripley/R/packages/tests-gcc-SAN/PSGExpress/src/RPSG_Functions.cpp:1983 #4 0x5743cc in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252 #5 0x6233ef in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7293 #6 0x654de7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620 #7 0x65a395 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1780 #8 0x65c7d8 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706 #9 0x655218 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743 #10 0x661491 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2808 #11 0x65574c in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695 #12 0x6ce895 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:260 #13 0x6ce895 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:200 #14 0x6cef88 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:310 #15 0x6cf0d4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1108 #16 0x4192e8 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #17 0x7fc3a83a5f32 in __libc_start_main (/lib64/libc.so.6+0x23f32) #18 0x41ba1d in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41ba1d) 0x60600000c740 is located 0 bytes inside of 50-byte region [0x60600000c740,0x60600000c772) allocated by thread T0 here: #0 0x7fc3a9aeeea6 in __interceptor_calloc (/lib64/libasan.so.5+0x10dea6) #1 0x7fc3981a229f in CRPSGSolverHelper::remove_comments_fromstring(std::__cxx11::basic_string, std::allocator >) ../src/RPSGSolverHelper.cpp:2153 #2 0x7fc3981f6afc in CRPSGSolverHelper::GetPSGDataObjectsFromStatement(std::__cxx11::basic_string, std::allocator >, CRPSGSolverHelper*, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::vector, std::allocator >, std::allocator, std::allocator > > >&, std::__cxx11::basic_string, std::allocator >&) ../src/RPSGSolverHelper.cpp:2194 #3 0x7fc39814cd15 in crpsg_getfunctionvalue /data/gannet/ripley/R/packages/tests-gcc-SAN/PSGExpress/src/RPSG_Functions.cpp:1983 #4 0x5743cc in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252 SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/lib64/libasan.so.5+0x110b8f) in operator delete[](void*) ==34708==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0 ==34708==ABORTING * DONE Status: 1 ERROR