* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-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 ... [199s/61s] 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) ================================================================= ==41409==ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete []) on 0x606000008360 #0 0x50bfa2 in operator delete[](void*) /data/gannet/ripley/Sources/LLVM/8.0.x/final/projects/compiler-rt/lib/asan/asan_new_delete.cc:170:3 #1 0x7feccd54da0b in CRPSGSolverHelper::remove_comments_fromstring(std::__1::basic_string, std::__1::allocator >) /data/gannet/ripley/R/packages/tests-clang-SAN/PSGExpress/src/RPSGSolverHelper/Release_Express/../src/RPSGSolverHelper.cpp:2177:2 #2 0x7feccd529329 in CRPSGSolverHelper::GetPSGDataObjectsFromStatement(std::__1::basic_string, std::__1::allocator >, CRPSGSolverHelper*, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::basic_string, std::__1::allocator >&) /data/gannet/ripley/R/packages/tests-clang-SAN/PSGExpress/src/RPSGSolverHelper/Release_Express/../src/RPSGSolverHelper.cpp:2194:14 #3 0x7feccd503529 in crpsg_getfunctionvalue /data/gannet/ripley/R/packages/tests-clang-SAN/PSGExpress/src/RPSG_Functions.cpp:1983:6 #4 0x742a36 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:586:17 #5 0x7850ee in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252:11 #6 0x8a782a in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7293:21 #7 0x88cf97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #8 0x8eae9b in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #9 0x8e808f in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #10 0x88e0b9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743:12 #11 0x8f745b in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2808:8 #12 0x88db1f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695:12 #13 0x9c66b3 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:260:2 #14 0x9caa10 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:310:11 #15 0x9ca7f5 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1108:5 #16 0x50e0fa in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #17 0x7fecddf14f32 in __libc_start_main (/lib64/libc.so.6+0x23f32) #18 0x4302fd in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x4302fd) 0x606000008360 is located 0 bytes inside of 50-byte region [0x606000008360,0x606000008392) allocated by thread T0 here: #0 0x4dbca3 in __interceptor_malloc /data/gannet/ripley/Sources/LLVM/8.0.x/final/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:146:3 #1 0x7feccd54d7a4 in CRPSGSolverHelper::remove_comments_fromstring(std::__1::basic_string, std::__1::allocator >) /data/gannet/ripley/R/packages/tests-clang-SAN/PSGExpress/src/RPSGSolverHelper/Release_Express/../src/RPSGSolverHelper.cpp:2153:25 #2 0x7feccd529329 in CRPSGSolverHelper::GetPSGDataObjectsFromStatement(std::__1::basic_string, std::__1::allocator >, CRPSGSolverHelper*, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > >&, std::__1::basic_string, std::__1::allocator >&) /data/gannet/ripley/R/packages/tests-clang-SAN/PSGExpress/src/RPSGSolverHelper/Release_Express/../src/RPSGSolverHelper.cpp:2194:14 #3 0x7feccd503529 in crpsg_getfunctionvalue /data/gannet/ripley/R/packages/tests-clang-SAN/PSGExpress/src/RPSG_Functions.cpp:1983:6 #4 0x742a36 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:586:17 #5 0x7850ee in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252:11 #6 0x8a782a in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7293:21 #7 0x88cf97 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #8 0x8eae9b in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #9 0x8e808f in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #10 0x88e0b9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743:12 #11 0x8f745b in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2808:8 #12 0x88db1f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695:12 #13 0x9c66b3 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:260:2 #14 0x9caa10 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:310:11 #15 0x9ca7f5 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1108:5 #16 0x50e0fa in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #17 0x7fecddf14f32 in __libc_start_main (/lib64/libc.so.6+0x23f32) SUMMARY: AddressSanitizer: alloc-dealloc-mismatch /data/gannet/ripley/Sources/LLVM/8.0.x/final/projects/compiler-rt/lib/asan/asan_new_delete.cc:170:3 in operator delete[](void*) ==41409==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0 ==41409==ABORTING * DONE Status: 1 ERROR