Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘FactorCopulaModel-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mvtBifact > ### Title: MLE for multivariate normal/t with a bi-factor or nested factor > ### correlation structure > ### Aliases: mvtBifact > > ### ** Examples > > data(rainstorm) > udat = rainstorm$uprecip > d = ncol(udat) > grsize = rainstorm$grsize > df = 10 > tdata = qt(udat,df) > bif = mvtBifact(tdata, c(rep(0.8,d),rep(0.2,d)), grsize, df=df, + prlevel=1, model="bifactor", mxiter=100) iteration = 0 Step: [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [39] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Parameter: [1] 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 [20] 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 [39] 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 Function Value [1] -4006.447 Gradient: [1] -14.698245 10.608696 -49.529626 -81.821238 -134.404576 30.520489 [7] -297.260732 -179.170430 -31.571284 -183.933569 -194.505312 -25.447258 [13] -184.271281 -99.677236 10.590632 -54.174823 -109.585082 -189.027220 [19] -117.827764 -191.898464 -62.013106 -129.309789 202.073644 133.677720 [25] -17.771413 72.009332 117.309121 190.978261 -60.359024 -60.429168 [31] -60.313208 -68.367523 -56.710262 -13.366923 -27.732184 -43.462138 [37] -11.370409 -55.302991 -45.592739 -39.838034 -11.835605 -4.902809 [43] -16.285229 -18.866344 -46.675021 -36.807503 3.613745 -43.177095 [49] -79.837265 -55.827346 -34.589605 -78.030678 -78.738889 -88.475346 [55] -85.077871 -53.458528 ================================================================= ==2555449==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x525003092818 at pc 0x5578f38a0ecf bp 0x7ffc06cc4040 sp 0x7ffc06cc3800 READ of size 448 at 0x525003092818 thread T0 #0 0x5578f38a0ece in __asan_memcpy (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xc8ece) (BuildId: 5bb69bb728e54199adb8d11ae23961de8f2b4c9c) #1 0x7ff2e5a125fa in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10 #2 0x7ff2e5a125fa in R_chk_memcpy /home/hornik/src/R/src/main/memory.c:3579:16 #3 0x7ff2d03dcb7c in FT_store /home/hornik/src/R/src/library/stats/src/optimize.c:458:2 #4 0x7ff2d03dcb7c in fcn /home/hornik/src/R/src/library/stats/src/optimize.c:553:5 #5 0x7ff2e5d46e97 in lnsrch /home/hornik/src/R/src/appl/uncmin.c:681:2 #6 0x7ff2e5d46e97 in optdrv /home/hornik/src/R/src/appl/uncmin.c:2363:6 #7 0x7ff2e5d3d0ff in optif9 /home/hornik/src/R/src/appl/uncmin.c:2619:3 #8 0x7ff2d03d8c11 in nlm /home/hornik/src/R/src/library/stats/src/optimize.c:850:5 #9 0x7ff2e574a4e9 in do_External /home/hornik/src/R/src/main/dotcode.c:573:11 #10 0x7ff2e58fa2d9 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8114:14 #11 0x7ff2e58aeb74 in bcEval /home/hornik/src/R/src/main/eval.c:7497:16 #12 0x7ff2e58ad2af in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #13 0x7ff2e58b76e5 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #14 0x7ff2e58b31dc in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #15 0x7ff2e58adc2f in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #16 0x7ff2e58adc2f in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #17 0x7ff2e58c6385 in do_set /home/hornik/src/R/src/main/eval.c:3563:8 #18 0x7ff2e58ad67b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #19 0x7ff2e59f1436 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264:15 #20 0x7ff2e59f4440 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #21 0x7ff2e59f4254 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235:5 #22 0x7ff2e59f453a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1242:5 #23 0x5578f38e6dd4 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #24 0x7ff2e4c33ca7 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #25 0x7ff2e4c33d64 in __libc_start_main csu/../csu/libc-start.c:360:3 #26 0x5578f3803370 in _start (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x2b370) (BuildId: 5bb69bb728e54199adb8d11ae23961de8f2b4c9c) 0x525003092818 is located 0 bytes after 7960-byte region [0x525003090900,0x525003092818) allocated by thread T0 here: #0 0x5578f38a31a3 in malloc (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xcb1a3) (BuildId: 5bb69bb728e54199adb8d11ae23961de8f2b4c9c) #1 0x7ff2e5a075f4 in GetNewPage /home/hornik/src/R/src/main/memory.c:998:12 #2 0x7ff2e5a084d9 in Rf_allocSExp /home/hornik/src/R/src/main/memory.c:2452:5 #3 0x7ff2e5bb87d3 in ReadItem_Iterative /home/hornik/src/R/src/main/serialize.c:1821:2 #4 0x7ff2e5bb87d3 in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:1963:9 #5 0x7ff2e5bbd698 in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #6 0x7ff2e5bbd698 in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:2107:30 #7 0x7ff2e5bb91ba in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #8 0x7ff2e5bb91ba in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:2051:28 #9 0x7ff2e5bb91ba in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #10 0x7ff2e5bb91ba in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:2051:28 #11 0x7ff2e5ba8f90 in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #12 0x7ff2e5ba8f90 in R_Unserialize /home/hornik/src/R/src/main/serialize.c:2277:12 #13 0x7ff2e5bb2199 in R_unserialize /home/hornik/src/R/src/main/serialize.c:3002:9 #14 0x7ff2e5bb0f08 in do_lazyLoadDBfetch /home/hornik/src/R/src/main/serialize.c:3318:11 #15 0x7ff2e58fa2d9 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8114:14 #16 0x7ff2e58aeb74 in bcEval /home/hornik/src/R/src/main/eval.c:7497:16 #17 0x7ff2e58ad2af in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #18 0x7ff2e58b76e5 in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #19 0x7ff2e58b31dc in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #20 0x7ff2e58adc2f in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #21 0x7ff2e58adc2f in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #22 0x7ff2e5bae888 in CallHook /home/hornik/src/R/src/main/serialize.c:2578:11 #23 0x7ff2e5bbac7a in PersistentRestore /home/hornik/src/R/src/main/serialize.c:826:12 #24 0x7ff2e5bbac7a in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:1895:6 #25 0x7ff2e5bb894e in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #26 0x7ff2e5bb894e in ReadItem_Iterative /home/hornik/src/R/src/main/serialize.c:1827:22 #27 0x7ff2e5bb894e in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:1963:9 #28 0x7ff2e5bb91ba in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #29 0x7ff2e5bb91ba in ReadItem_Recursive /home/hornik/src/R/src/main/serialize.c:2051:28 #30 0x7ff2e5ba8f90 in ReadItem /home/hornik/src/R/src/main/serialize.c:2120:12 #31 0x7ff2e5ba8f90 in R_Unserialize /home/hornik/src/R/src/main/serialize.c:2277:12 #32 0x7ff2e5bb2199 in R_unserialize /home/hornik/src/R/src/main/serialize.c:3002:9 #33 0x7ff2e5bb0f08 in do_lazyLoadDBfetch /home/hornik/src/R/src/main/serialize.c:3318:11 #34 0x7ff2e58add32 in Rf_eval /home/hornik/src/R/src/main/eval.c:1264:9 #35 0x7ff2e58af1af in forcePromise /home/hornik/src/R/src/main/eval.c:976:13 #36 0x7ff2e594a2ff in getvar /home/hornik/src/R/src/main/eval.c:5831:6 #37 0x7ff2e5919dc6 in bcEval_loop /home/hornik/src/R/src/main/eval.c:7844:20 #38 0x7ff2e58aeb74 in bcEval /home/hornik/src/R/src/main/eval.c:7497:16 #39 0x7ff2e58ad2af in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #40 0x7ff2e58af1af in forcePromise /home/hornik/src/R/src/main/eval.c:976:13 SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xc8ece) (BuildId: 5bb69bb728e54199adb8d11ae23961de8f2b4c9c) in __asan_memcpy Shadow bytes around the buggy address: 0x525003092580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x525003092600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x525003092680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x525003092700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x525003092780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x525003092800: 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa 0x525003092880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x525003092900: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x525003092980: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x525003092a00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x525003092a80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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 ==2555449==ABORTING Post-processing issues found: File: FactorCopulaModel-Ex.Rout ==2555449==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x525003092818 at pc 0x5578f38a0ecf bp 0x7ffc06cc4040 sp 0x7ffc06cc3800 SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xc8ece) (BuildId: 5bb69bb728e54199adb8d11ae23961de8f2b4c9c) in __asan_memcpy ASan internal: fe File: 00check.log ==2555449==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x525003092818 at pc 0x5578f38a0ecf bp 0x7ffc06cc4040 sp 0x7ffc06cc3800 SUMMARY: AddressSanitizer: heap-buffer-overflow (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xc8ece) (BuildId: 5bb69bb728e54199adb8d11ae23961de8f2b4c9c) in __asan_memcpy ASan internal: fe