* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-SAN/mixer.Rcheck’ * using R Under development (unstable) (2018-02-20 r74280) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘mixer/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘mixer’ version ‘1.9’ * package encoding: UTF-8 * 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 ‘mixer’ can be installed ... [191s/78s] 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 contents of ‘data’ directory ... OK * checking compiled code ... OK * checking examples ... ERROR Running examples in ‘mixer-Ex.R’ failed The error most likely occurred in: > ### Name: mixer > ### Title: MIXtures of Erdos-Renyi random graphs > ### Aliases: mixer > ### Keywords: graphs cluster > > ### ** Examples > > > graph.affiliation(n=100,c(1/3,1/3,1/3),0.8,0.2)->g > mixer(g$x,qmin=2,qmax=6)->xout Mixer: the adjacency matrix has been transformed in a undirected edge list ================================================================= ==46159==ERROR: AddressSanitizer: container-overflow on address 0x6140003eec4c at pc 0x7faeebf85d86 bp 0x7ffecdec6110 sp 0x7ffecdec6108 WRITE of size 4 at 0x6140003eec4c thread T0 #0 0x7faeebf85d85 in ermg::Ermg::emInitClassAlpha() /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/Ermg.cc:111:32 #1 0x7faeebf81862 in ermg::Ermg::emInit(int) /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/Ermg.cc:87:11 #2 0x7faeebf813dc in ermg::Ermg::em(ermg::EmCore&, int) /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/Ermg.cc:74:16 #3 0x7faeec081d54 in ermg::ModelImprover::initialLikelihoods(ermg::EmCore&, bool) /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/ModelImprover.cc:73:18 #4 0x7faeec11ef87 in main_ermg /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/ermg_R.cc:131:16 #5 0x879c8d in do_dotCode /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c #6 0x9c6730 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6771:14 #7 0x9b0fed in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #8 0xa249bb in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #9 0x9b21c4 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:747:12 #10 0xa3395c in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2774:8 #11 0x9b1bfd in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:699:12 #12 0xb1e5c3 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:258:2 #13 0xb23540 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:308:11 #14 0xb23325 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1082:5 #15 0x52a08a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #16 0x7faef98ad889 in __libc_start_main (/lib64/libc.so.6+0x20889) #17 0x42d829 in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x42d829) 0x6140003eec4c is located 12 bytes inside of 400-byte region [0x6140003eec40,0x6140003eedd0) allocated by thread T0 here: #0 0x525c70 in operator new(unsigned long) /data/gannet/ripley/Sources/LLVM/6.0.x/trunk/projects/compiler-rt/lib/asan/asan_new_delete.cc:92 #1 0x7faeec004067 in std::__1::__allocate(unsigned long) /usr/local/bin/../include/c++/v1/new:228:10 #2 0x7faeec004067 in std::__1::allocator::allocate(unsigned long, void const*) /usr/local/bin/../include/c++/v1/memory:1793 #3 0x7faeec004067 in std::__1::allocator_traits >::allocate(std::__1::allocator&, unsigned long) /usr/local/bin/../include/c++/v1/memory:1547 #4 0x7faeec004067 in std::__1::vector >::allocate(unsigned long) /usr/local/bin/../include/c++/v1/vector:937 #5 0x7faeebfc54db in std::__1::vector >::assign(unsigned long, int const&) /usr/local/bin/../include/c++/v1/vector:1436:9 #6 0x7faeebf9bf4b in ermg::Ermg::cahInitNoKmeans() /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/Ermg.cc:452:21 #7 0x7faeec081959 in ermg::ModelImprover::initialLikelihoods(ermg::EmCore&, bool) /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/ModelImprover.cc:54:13 #8 0x7faeec11ef87 in main_ermg /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/ermg_R.cc:131:16 #9 0x879c8d in do_dotCode /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c #10 0x9c6730 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6771:14 #11 0x9b0fed in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #12 0xa249bb in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #13 0x9b21c4 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:747:12 #14 0xa3395c in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2774:8 #15 0x9b1bfd in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:699:12 #16 0xb1e5c3 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:258:2 #17 0xb23540 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:308:11 #18 0xb23325 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1082:5 #19 0x52a08a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #20 0x7faef98ad889 in __libc_start_main (/lib64/libc.so.6+0x20889) HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_container_overflow=0. If you suspect a false positive see also: https://github.com/google/sanitizers/wiki/AddressSanitizerContainerOverflow. SUMMARY: AddressSanitizer: container-overflow /data/gannet/ripley/R/packages/tests-clang-SAN/mixer/src/Ermg.cc:111:32 in ermg::Ermg::emInitClassAlpha() Shadow bytes around the buggy address: 0x0c2880075d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c2880075d40: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c2880075d50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2880075d60: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2880075d70: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa =>0x0c2880075d80: fa fa fa fa fa fa fa fa 00[fc]fc fc fc fc fc fc 0x0c2880075d90: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c2880075da0: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x0c2880075db0: fc fc fc fc fc fc fc fc fc fc fa fa fa fa fa fa 0x0c2880075dc0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x0c2880075dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==46159==ABORTING * DONE Status: 1 ERROR