Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library(cytolib) crashes Rfast::rowMaxs() #38

Closed
hpages opened this issue Apr 22, 2020 · 4 comments
Closed

library(cytolib) crashes Rfast::rowMaxs() #38

hpages opened this issue Apr 22, 2020 · 4 comments

Comments

@hpages
Copy link
Contributor

hpages commented Apr 22, 2020

Hi,

The following code crashes my session if I load cytolib before running it:

library(Rfast)
x <- matrix(runif(40), nrow=8)
Rfast::rowMaxs(x)

For example in a fresh R session on my laptop:

> library(cytolib)
> library(Rfast)
Loading required package: Rcpp
Loading required package: RcppZiggurat
> x <- matrix(runif(40), nrow=8)
> Rfast::rowMaxs(x)
*** Error in `/home/hpages/R/R-4.0.r78037/bin/exec/R': double free or corruption (out): 0x00007f6f1bc38270 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f6f1b0307e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f6f1b03937a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f6f1b03d53c]
/home/hpages/R/R-4.0.r78037/library/Rfast/libs/Rfast.so(_Z15row_min_indicesN4Rcpp6MatrixILi14ENS_15PreserveStorageEEE+0x11a)[0x7f6f12439cba]
/home/hpages/R/R-4.0.r78037/library/Rfast/libs/Rfast.so(Rfast_row_min_indices+0x68)[0x7f6f1243f7f8]
/home/hpages/R/R-4.0.r78037/lib/libR.so(+0xfcaa0)[0x7f6f1b69caa0]
/home/hpages/R/R-4.0.r78037/lib/libR.so(+0x13a55e)[0x7f6f1b6da55e]
/home/hpages/R/R-4.0.r78037/lib/libR.so(Rf_eval+0x1a0)[0x7f6f1b6e3fd0]
/home/hpages/R/R-4.0.r78037/lib/libR.so(+0x145d91)[0x7f6f1b6e5d91]
/home/hpages/R/R-4.0.r78037/lib/libR.so(Rf_applyClosure+0x1b4)[0x7f6f1b6e6b34]
/home/hpages/R/R-4.0.r78037/lib/libR.so(Rf_eval+0x2ce)[0x7f6f1b6e40fe]
/home/hpages/R/R-4.0.r78037/lib/libR.so(Rf_ReplIteration+0x242)[0x7f6f1b717662]
/home/hpages/R/R-4.0.r78037/lib/libR.so(+0x1779f1)[0x7f6f1b7179f1]
/home/hpages/R/R-4.0.r78037/lib/libR.so(run_Rmainloop+0x48)[0x7f6f1b717aa8]
/home/hpages/R/R-4.0.r78037/bin/exec/R(main+0x1b)[0x4007cb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f6f1afd9830]
/home/hpages/R/R-4.0.r78037/bin/exec/R(_start+0x29)[0x400809]
======= Memory map: ========
00400000-00401000 r-xp 00000000 00:32 23419198                           /home/hpages/R/R-4.0.r78037/bin/exec/R
00600000-00601000 r--p 00000000 00:32 23419198                           /home/hpages/R/R-4.0.r78037/bin/exec/R
00601000-00602000 rw-p 00001000 00:32 23419198                           /home/hpages/R/R-4.0.r78037/bin/exec/R
01dac000-04f29000 rw-p 00000000 00:00 0                                  [heap]
7f6f0c000000-7f6f0c021000 rw-p 00000000 00:00 0 
7f6f0c021000-7f6f10000000 ---p 00000000 00:00 0 
7f6f1236f000-7f6f12660000 r-xp 00000000 00:32 23468705                   /home/hpages/R/R-4.0.r78037/library/Rfast/libs/Rfast.so
7f6f12660000-7f6f1285f000 ---p 002f1000 00:32 23468705                   /home/hpages/R/R-4.0.r78037/library/Rfast/libs/Rfast.so
7f6f1285f000-7f6f12862000 r--p 002f0000 00:32 23468705                   /home/hpages/R/R-4.0.r78037/library/Rfast/libs/Rfast.so
7f6f12862000-7f6f12866000 rw-p 002f3000 00:32 23468705                   /home/hpages/R/R-4.0.r78037/library/Rfast/libs/Rfast.so
7f6f12866000-7f6f12876000 rw-p 00000000 00:00 0 
7f6f12876000-7f6f128b3000 r-xp 00000000 103:02 9963668                   /usr/lib/x86_64-linux-gnu/libgslcblas.so.0.0.0
7f6f128b3000-7f6f12ab2000 ---p 0003d000 103:02 9963668                   /usr/lib/x86_64-linux-gnu/libgslcblas.so.0.0.0
7f6f12ab2000-7f6f12ab3000 r--p 0003c000 103:02 9963668                   /usr/lib/x86_64-linux-gnu/libgslcblas.so.0.0.0
7f6f12ab3000-7f6f12ab4000 rw-p 0003d000 103:02 9963668                   /usr/lib/x86_64-linux-gnu/libgslcblas.so.0.0.0
7f6f12ab4000-7f6f12ce2000 r-xp 00000000 103:02 9963666                   /usr/lib/x86_64-linux-gnu/libgsl.so.19.0.0
7f6f12ce2000-7f6f12ee1000 ---p 0022e000 103:02 9963666                   /usr/lib/x86_64-linux-gnu/libgsl.so.19.0.0
7f6f12ee1000-7f6f12ee4000 r--p 0022d000 103:02 9963666                   /usr/lib/x86_64-linux-gnu/libgsl.so.19.0.0
7f6f12ee4000-7f6f12ef2000 rw-p 00230000 103:02 9963666                   /usr/lib/x86_64-linux-gnu/libgsl.so.19.0.0
7f6f12ef2000-7f6f12ef3000 rw-p 00000000 00:00 0 
7f6f12ef3000-7f6f12f1a000 r-xp 00000000 00:32 23517352                   /home/hpages/R/R-4.0.r78037/library/RcppZiggurat/libs/RcppZiggurat.so
7f6f12f1a000-7f6f1311a000 ---p 00027000 00:32 23517352                   /home/hpages/R/R-4.0.r78037/library/RcppZiggurat/libs/RcppZiggurat.so
7f6f1311a000-7f6f1311b000 r--p 00027000 00:32 23517352                   /home/hpages/R/R-4.0.r78037/library/RcppZiggurat/libs/RcppZiggurat.so
7f6f1311b000-7f6f1311c000 rw-p 00028000 00:32 23517352                   /home/hpages/R/R-4.0.r78037/library/RcppZiggurat/libs/RcppZiggurat.so
7f6f1311c000-7f6f13120000 rw-p 00000000 00:00 0 
7f6f13120000-7f6f13126000 r-xp 00000000 00:32 23420080                   /home/hpages/R/R-4.0.r78037/library/parallel/libs/parallel.so
7f6f13126000-7f6f13325000 ---p 00006000 00:32 23420080                   /home/hpages/R/R-4.0.r78037/library/parallel/libs/parallel.so
7f6f13325000-7f6f13326000 r--p 00005000 00:32 23420080                   /home/hpages/R/R-4.0.r78037/library/parallel/libs/parallel.so
7f6f13326000-7f6f13327000 rw-p 00006000 00:32 23420080                   /home/hpages/R/R-4.0.r78037/library/parallel/libs/parallel.so
7f6f13327000-7f6f13387000 r-xp 00000000 00:32 23477464                   /home/hpages/R/R-4.0.r78037/library/Rcpp/libs/Rcpp.so
7f6f13387000-7f6f13586000 ---p 00060000 00:32 23477464                   /home/hpages/R/R-4.0.r78037/library/Rcpp/libs/Rcpp.so
7f6f13586000-7f6f13588000 r--p 0005f000 00:32 23477464                   /home/hpages/R/R-4.0.r78037/library/Rcpp/libs/Rcpp.so
7f6f13588000-7f6f13589000 rw-p 00061000 00:32 23477464                   /home/hpages/R/R-4.0.r78037/library/Rcpp/libs/Rcpp.so
7f6f13589000-7f6f13591000 rw-p 00000000 00:00 0 
7f6f13591000-7f6f13a98000 r-xp 00000000 00:32 23474758                   /home/hpages/R/R-4.0.r78037/library/cytolib/libs/cytolib.so
7f6f13a98000-7f6f13c97000 ---p 00507000 00:32 23474758                   /home/hpages/R/R-4.0.r78037/library/cytolib/libs/cytolib.so
7f6f13c97000-7f6f13ca8000 r--p 00506000 00:32 23474758                   /home/hpages/R/R-4.0.r78037/library/cytolib/libs/cytolib.so
7f6f13ca8000-7f6f13cb5000 rw-p 00517000 00:32 23474758                   /home/hpages/R/R-4.0.r78037/library/cytolib/libs/cytolib.so
7f6f13cb5000-7f6f13cc2000 rw-p 00000000 00:00 0 
7f6f13cc2000-7f6f13cc4000 r-xp 00000000 00:32 23422252                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/libs/RcppParallel.so
7f6f13cc4000-7f6f13ec3000 ---p 00002000 00:32 23422252                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/libs/RcppParallel.so
7f6f13ec3000-7f6f13ec4000 r--p 00001000 00:32 23422252                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/libs/RcppParallel.so
7f6f13ec4000-7f6f13ec5000 rw-p 00002000 00:32 23422252                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/libs/RcppParallel.so
7f6f13ec5000-7f6f13ede000 r-xp 00000000 00:32 23422381                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbbmalloc.so.2
7f6f13ede000-7f6f140dd000 ---p 00019000 00:32 23422381                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbbmalloc.so.2
7f6f140dd000-7f6f140de000 r--p 00018000 00:32 23422381                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbbmalloc.so.2
7f6f140de000-7f6f140e0000 rw-p 00019000 00:32 23422381                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbbmalloc.so.2
7f6f140e0000-7f6f14103000 rw-p 00000000 00:00 0 
7f6f14103000-7f6f14137000 r-xp 00000000 00:32 23422379                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbb.so.2
7f6f14137000-7f6f14337000 ---p 00034000 00:32 23422379                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbb.so.2
7f6f14337000-7f6f14338000 r--p 00034000 00:32 23422379                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbb.so.2
7f6f14338000-7f6f1433a000 rw-p 00035000 00:32 23422379                   /home/hpages/R/R-4.0.r78037/library/RcppParallel/lib/libtbb.so.2
7f6f1433a000-7f6f1433d000 rw-p 00000000 00:00 0 
7f6f1433d000-7f6f143e1000 r-xp 00000000 00:32 23669772                   /home/hpages/R/R-4.0.r78037/library/RProtoBufLib/lib/libprotobuf-lite.so
7f6f143e1000-7f6f145e1000 ---p 000a4000 00:32 23669772                   /home/hpages/R/R-4.0.r78037/library/RProtoBufLib/lib/libprotobuf-lite.so
7f6f145e1000-7f6f145e3000 r--p 000a4000 00:32 23669772                   /home/hpages/R/R-4.0.r78037/library/RProtoBufLib/lib/libprotobuf-lite.so
7f6f145e3000-7f6f145e5000 rw-p 000a6000 00:32 23669772                   /home/hpages/R/R-4.0.r78037/library/RProtoBufLib/lib/libprotobuf-lite.so
7f6f145e5000-7f6f145f0000 r-xp 00000000 103:02 394748                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f6f145f0000-7f6f147ef000 ---p 0000b000 103:02 394748                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f6f147ef000-7f6f147f0000 r--p 0000a000 103:02 394748                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f6f147f0000-7f6f147f1000 rw-p 0000b000 103:02 394748                    /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f6f147f1000-7f6f147f7000 rw-p 00000000 00:00 0 
7f6f147f7000-7f6f14802000 r-xp 00000000 103:02 394741                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f6f14802000-7f6f14a01000 ---p 0000b000 103:02 394741                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f6f14a01000-7f6f14a02000 r--p 0000a000 103:02 394741                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f6f14a02000-7f6f14a03000 rw-p 0000b000 103:02 394741                    /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f6f14a03000-7f6f14a19000 r-xp 00000000 103:02 394746                    /lib/x86_64-linux-gnu/libnsl-2.23.so
7f6f14a19000-7f6f14c18000 ---p 00016000 103:02 394746                    /lib/x86_64-linux-gnu/libnsl-2.23.so
7f6f14c18000-7f6f14c19000 r--p 00015000 103:02 394746                    /lib/x86_64-linux-gnu/libnsl-2.23.so
7f6f14c19000-7f6f14c1a000 rw-p 00016000 103:02 394746                    /lib/x86_64-linux-gnu/libnsl-2.23.so
7f6f14c1a000-7f6f14c1c000 rw-p 00000000 00:00 0 
7f6f14c1c000-7f6f14c24000 r-xp 00000000 103:02 394771                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f6f14c24000-7f6f14e23000 ---p 00008000 103:02 394771                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f6f14e23000-7f6f14e24000 r--p 00007000 103:02 394771                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f6f14e24000-7f6f14e25000 rw-p 00008000 103:02 394771                    /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f6f14e25000-7f6f14e63000 r-xp 00000000 103:02 9966876                   /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f6f14e63000-7f6f15062000 ---p 0003e000 103:02 9966876                   /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f6f15062000-7f6f15063000 r--p 0003d000 103:02 9966876                   /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f6f15063000-7f6f15064000 rw-p 0003e000 103:02 9966876                   /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0
7f6f15064000-7f6f1518d000 r-xp 00000000 103:02 9961885                   /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f6f1518d000-7f6f1538c000 ---p 00129000 103:02 9961885                   /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f6f1538c000-7f6f1538d000 r--p 00128000 103:02 9961885                   /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f6f1538d000-7f6f1538f000 rw-p 00129000 103:02 9961885                   /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
7f6f1538f000-7f6f15571000 r-xp 00000000 00:32 23419236                   /home/hpages/R/R-4.0.r78037/lib/libRlapack.so
7f6f15571000-7f6f15770000 ---p 001e2000 00:32 23419236                   /home/hpages/R/R-4.0.r78037/lib/libRlapack.so
7f6f15770000-7f6f15771000 r--p 001e1000 00:32 23419236                   /home/hpages/R/R-4.0.r78037/lib/libRlapack.so
7f6f15771000-7f6f15772000 rw-p 001e2000 00:32 23419236                   /home/hpages/R/R-4.0.r78037/lib/libRlapack.so
7f6f15772000-7f6f1578c000 rw-p 00000000 00:00 0 
7f6f1578c000-7f6f1582f000 r-xp 00000000 00:32 23419929                   /home/hpages/R/R-4.0.r78037/library/stats/libs/stats.so
7f6f1582f000-7f6f15a2e000 ---p 000a3000 00:32 23419929                   /home/hpages/R/R-4.0.r78037/library/stats/libs/stats.so
7f6f15a2e000-7f6f15a30000 r--p 000a2000 00:32 23419929                   /home/hpages/R/R-4.0.r78037/library/stats/libs/stats.so
7f6f15a30000-7f6f15a32000 rw-p 000a4000 00:32 23419929                   /home/hpages/R/R-4.0.r78037/library/stats/libs/stats.so
7f6f15a32000-7f6f15a7d000 r-xp 00000000 00:32 23419788                   /home/hpages/R/R-4.0.r78037/library/graphics/libs/graphics.so
7f6f15a7d000-7f6f15c7d000 ---p 0004b000 00:32 23419788                   /home/hpages/R/R-4.0.r78037/library/graphics/libs/graphics.so
7f6f15c7d000-7f6f15c7e000 r--p 0004b000 00:32 23419788                   /home/hpages/R/R-4.0.r78037/library/graphics/libs/graphics.so
7f6f15c7e000-7f6f15c7f000 rw-p 0004c000 00:32 23419788                   /home/hpages/R/R-4.0.r78037/library/graphics/libs/graphics.so
7f6f15c7f000-7f6f15cb5000 r-xp 00000000 00:32 23419746                   /home/hpages/R/R-4.0.r78037/library/grDevices/libs/grDevices.so
7f6f15cb5000-7f6f15eb5000 ---p 00036000 00:32 23419746                   /home/hpages/R/R-4.0.r78037/library/grDevices/libs/grDevices.so
7f6f15eb5000-7f6f15eba000 r--p 00036000 00:32 23419746                   /home/hpages/R/R-4.0.r78037/library/grDevices/libs/grDevices.so
7f6f15eba000-7f6f15ebc000 rw-p 0003b000 00:32 23419746                   /home/hpages/R/R-4.0.r78037/library/grDevices/libs/grDevices.so
7f6f15ebc000-7f6f15ebd000 rw-p 00000000 00:00 0 
7f6f15ebd000-7f6f15ec9000 r-xp 00000000 00:32 23419597                   /home/hpages/R/R-4.0.r78037/library/utils/libs/utils.so
7f6f15ec9000-7f6f160c8000 ---p 0000c000 00:32 23419597                   /home/hpages/R/R-4.0.r78037/library/utils/libs/utils.so
7f6f160c8000-7f6f160c9000 r--p 0000b000 00:32 23419597                   /home/hpages/R/R-4.0.r78037/library/utils/libs/utils.so
7f6f160c9000-7f6f160ca000 rw-p 0000c000 00:32 23419597                   /home/hpages/R/R-4.0.r78037/library/utils/libs/utils.so
7f6f160ca000-7f6f161af000 rw-p 00000000 00:00 0 
7f6f161af000-7f6f161b1000 r-xp 00000000 103:02 10235424                  /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f6f161b1000-7f6f163b0000 ---p 00002000 103:02 10235424                  /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f6f163b0000-7f6f163b1000 r--p 00001000 103:02 10235424                  /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f6f163b1000-7f6f163b2000 rw-p 00002000 103:02 10235424                  /usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so
7f6f1647e000-7f6f165bf000 rw-p 00000000 00:00 0 
7f6f165bf000-7f6f165c7000 r-xp 00000000 00:32 23419959                   /home/hpages/R/R-4.0.r78037/library/methods/libs/methods.so
7f6f165c7000-7f6f167c7000 ---p 00008000 00:32 23419959                   /home/hpages/R/R-4.0.r78037/library/methods/libs/methods.so
7f6f167c7000-7f6f167c8000 r--p 00008000 00:32 23419959                   /home/hpages/R/R-4.0.r78037/library/methods/libs/methods.so
7f6f167c8000-7f6f167c9000 rw-p 00009000 00:32 23419959                   /home/hpages/R/R-4.0.r78037/library/methods/libs/methods.so
7f6f167f8000-7f6f16c04000 rw-p 00000000 00:00 0 
7f6f16c04000-7f6f16edc000 r--p 00000000 103:02 9965611                   /usr/lib/locale/locale-archive
7f6f16edc000-7f6f16ef2000 r-xp 00000000 103:02 397791                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f6f16ef2000-7f6f170f1000 ---p 00016000 103:02 397791                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f6f170f1000-7f6f170f2000 rw-p 00015000 103:02 397791                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f6f170f2000-7f6f17264000 r-xp 00000000 103:02 9961864                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f6f17264000-7f6f17464000 ---p 00172000 103:02 9961864                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f6f17464000-7f6f1746e000 r--p 00172000 103:02 9961864                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f6f1746e000-7f6f17470000 rw-p 0017c000 103:02 9961864                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f6f17470000-7f6f17474000 rw-p 00000000 00:00 0 
7f6f17474000-7f6f18d2a000 r-xp 00000000 103:02 9965696                   /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f6f18d2a000-7f6f18f29000 ---p 018b6000 103:02 9965696                   /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f6f18f29000-7f6f18f2a000 r--p 018b5000 103:02 9965696                   /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f6f18f2a000-7f6f18f2b000 rw-p 018b6000 103:02 9965696                   /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f6f18f2b000-7f6f18f50000 r-xp 00000000 103:02 397925                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f6f18f50000-7f6f1914f000 ---p 00025000 103:02 397925                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f6f1914f000-7f6f19153000 r--p 00024000 103:02 397925                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f6f19153000-7f6f19154000 rw-p 00028000 103:02 397925                    /lib/x86_64-linux-gnu/libtinfo.so.5.9
7f6f19154000-7f6f19175000 r-xp 00000000 103:02 9969010                   /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
7f6f19175000-7f6f19374000 ---p 00021000 103:02 9969010                   /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
7f6f19374000-7f6f19375000 r--p 00020000 103:02 9969010                   /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
7f6f19375000-7f6f19376000 rw-p 00021000 103:02 9969010                   /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0
7f6f19376000-7f6f195c8000 r-xp 00000000 103:02 9965694                   /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f6f195c8000-7f6f197c8000 ---p 00252000 103:02 9965694                   /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f6f197c8000-7f6f197d7000 r--p 00252000 103:02 9965694                   /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f6f197d7000-7f6f197d8000 rw-p 00261000 103:02 9965694                   /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f6f197d8000-7f6f19957000 r-xp 00000000 103:02 9965692                   /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f6f19957000-7f6f19b57000 ---p 0017f000 103:02 9965692                   /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f6f19b57000-7f6f19b67000 r--p 0017f000 103:02 9965692                   /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f6f19b67000-7f6f19b68000 rw-p 0018f000 103:02 9965692                   /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f6f19b68000-7f6f19b6c000 rw-p 00000000 00:00 0 
7f6f19b6c000-7f6f19b6f000 r-xp 00000000 103:02 394736                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f6f19b6f000-7f6f19d6e000 ---p 00003000 103:02 394736                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f6f19d6e000-7f6f19d6f000 r--p 00002000 103:02 394736                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f6f19d6f000-7f6f19d70000 rw-p 00003000 103:02 394736                    /lib/x86_64-linux-gnu/libdl-2.23.so
7f6f19d70000-7f6f19d77000 r-xp 00000000 103:02 394731                    /lib/x86_64-linux-gnu/librt-2.23.so
7f6f19d77000-7f6f19f76000 ---p 00007000 103:02 394731                    /lib/x86_64-linux-gnu/librt-2.23.so
7f6f19f76000-7f6f19f77000 r--p 00006000 103:02 394731                    /lib/x86_64-linux-gnu/librt-2.23.so
7f6f19f77000-7f6f19f78000 rw-p 00007000 103:02 394731                    /lib/x86_64-linux-gnu/librt-2.23.so
7f6f19f78000-7f6f19f91000 r-xp 00000000 103:02 393404                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f6f19f91000-7f6f1a190000 ---p 00019000 103:02 393404                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f6f1a190000-7f6f1a191000 r--p 00018000 103:02 393404                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f6f1a191000-7f6f1a192000 rw-p 00019000 103:02 393404                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f6f1a192000-7f6f1a1a1000 r-xp 00000000 103:02 393588                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f6f1a1a1000-7f6f1a3a0000 ---p 0000f000 103:02 393588                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f6f1a3a0000-7f6f1a3a1000 r--p 0000e000 103:02 393588                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f6f1a3a1000-7f6f1a3a2000 rw-p 0000f000 103:02 393588                    /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7f6f1a3a2000-7f6f1a3c3000 r-xp 00000000 103:02 397820                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f6f1a3c3000-7f6f1a5c2000 ---p 00021000 103:02 397820                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f6f1a5c2000-7f6f1a5c3000 r--p 00020000 103:02 397820                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f6f1a5c3000-7f6f1a5c4000 rw-p 00021000 103:02 397820                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f6f1a5c4000-7f6f1a63c000 r-xp 00000000 103:02 9971004                   /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.3.0
7f6f1a63c000-7f6f1a83b000 ---p 00078000 103:02 9971004                   /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.3.0
7f6f1a83b000-7f6f1a83c000 r--p 00077000 103:02 9971004                   /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.3.0
7f6f1a83c000-7f6f1a83d000 rw-p 00078000 103:02 9971004                   /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.3.0
7f6f1a83d000-7f6f1a87a000 r-xp 00000000 103:02 397904                    /lib/x86_64-linux-gnu/libreadline.so.6.3
7f6f1a87a000-7f6f1aa7a000 ---p 0003d000 103:02 397904                    /lib/x86_64-linux-gnu/libreadline.so.6.3
7f6f1aa7a000-7f6f1aa7c000 r--p 0003d000 103:02 397904                    /lib/x86_64-linux-gnu/libreadline.so.6.3
7f6f1aa7c000-7f6f1aa82000 rw-p 0003f000 103:02 397904                    /lib/x86_64-linux-gnu/libreadline.so.6.3
7f6f1aa82000-7f6f1aa83000 rw-p 00000000 00:00 0 
7f6f1aa83000-7f6f1ab8b000 r-xp 00000000 103:02 394777                    /lib/x86_64-linux-gnu/libm-2.23.so
7f6f1ab8b000-7f6f1ad8a000 ---p 00108000 103:02 394777                    /lib/x86_64-linux-gnu/libm-2.23.so
7f6f1ad8a000-7f6f1ad8b000 r--p 00107000 103:02 394777                    /lib/x86_64-linux-gnu/libm-2.23.so
7f6f1ad8b000-7f6f1ad8c000 rw-p 00108000 103:02 394777                    /lib/x86_64-linux-gnu/libm-2.23.so
7f6f1ad8c000-7f6f1adb8000 r-xp 00000000 00:32 23418713                   /home/hpages/R/R-4.0.r78037/lib/libRblas.so
7f6f1adb8000-7f6f1afb7000 ---p 0002c000 00:32 23418713                   /home/hpages/R/R-4.0.r78037/lib/libRblas.so
7f6f1afb7000-7f6f1afb8000 r--p 0002b000 00:32 23418713                   /home/hpages/R/R-4.0.r78037/lib/libRblas.so
7f6f1afb8000-7f6f1afb9000 rw-p 0002c000 00:32 23418713                   /home/hpages/R/R-4.0.r78037/lib/libRblas.so
7f6f1afb9000-7f6f1b179000 r-xp 00000000 103:02 394763                    /lib/x86_64-linux-gnu/libc-2.23.so
7f6f1b179000-7f6f1b379000 ---p 001c0000 103:02 394763                    /lib/x86_64-linux-gnu/libc-2.23.so
7f6f1b379000-7f6f1b37d000 r--p 001c0000 103:02 394763                    /lib/x86_64-linux-gnu/libc-2.23.so
7f6f1b37d000-7f6f1b37f000 rw-p 001c4000 103:02 394763                    /lib/x86_64-linux-gnu/libc-2.23.so
7f6f1b37f000-7f6f1b383000 rw-p 00000000 00:00 0 
7f6f1b383000-7f6f1b39b000 r-xp 00000000 103:02 394738                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f6f1b39b000-7f6f1b59a000 ---p 00018000 103:02 394738                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f6f1b59a000-7f6f1b59b000 r--p 00017000 103:02 394738                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f6f1b59b000-7f6f1b59c000 rw-p 00018000 103:02 394738                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7f6f1b59c000-7f6f1b5a0000 rw-p 00000000 00:00 0 
7f6f1b5a0000-7f6f1b8bd000 r-xp 00000000 00:32 23419195                   /home/hpages/R/R-4.0.r78037/lib/libR.so
7f6f1b8bd000-7f6f1babd000 ---p 0031d000 00:32 23419195                   /home/hpages/R/R-4.0.r78037/lib/libR.so
7f6f1babd000-7f6f1badb000 r--p 0031d000 00:32 23419195                   /home/hpages/R/R-4.0.r78037/lib/libR.so
7f6f1badb000-7f6f1bae9000 rw-p 0033b000 00:32 23419195                   /home/hpages/R/R-4.0.r78037/lib/libR.so
7f6f1bae9000-7f6f1bc39000 rw-p 00000000 00:00 0 
7f6f1bc39000-7f6f1bc5f000 r-xp 00000000 103:02 394737                    /lib/x86_64-linux-gnu/ld-2.23.so
7f6f1bce6000-7f6f1be38000 rw-p 00000000 00:00 0 
7f6f1be54000-7f6f1be55000 rw-p 00000000 00:00 0 
7f6f1be55000-7f6f1be56000 r--p 00000000 00:32 23419290                   /home/hpages/R/R-4.0.r78037/library/translations/en/LC_MESSAGES/R.mo
7f6f1be56000-7f6f1be5d000 r--s 00000000 103:02 10235479                  /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f6f1be5d000-7f6f1be5e000 rw-p 00000000 00:00 0 
7f6f1be5e000-7f6f1be5f000 r--p 00025000 103:02 394737                    /lib/x86_64-linux-gnu/ld-2.23.so
7f6f1be5f000-7f6f1be60000 rw-p 00026000 103:02 394737                    /lib/x86_64-linux-gnu/ld-2.23.so
7f6f1be60000-7f6f1be61000 rw-p 00000000 00:00 0 
7fff065cc000-7fff065fd000 rw-p 00000000 00:00 0                          [stack]
7fff06638000-7fff0663b000 r--p 00000000 00:00 0                          [vvar]
7fff0663b000-7fff0663d000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

sessionInfo():

R Under development (unstable) (2020-03-23 r78037)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS

Matrix products: default
BLAS:   /home/hpages/R/R-4.0.r78037/lib/libRblas.so
LAPACK: /home/hpages/R/R-4.0.r78037/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Rfast_1.9.9        RcppZiggurat_0.1.5 Rcpp_1.0.4.6       cytolib_1.99.28   

loaded via a namespace (and not attached):
[1] compiler_4.0.0      RProtoBufLib_1.99.8 parallel_4.0.0     
[4] RcppParallel_5.0.0 

FWIW I also get a crash on other Linux machines e.g. on Bioconductor build machine malbec2 where I get:

> library(cytolib)
> library(Rfast)
Loading required package: Rcpp
Loading required package: RcppZiggurat
> x <- matrix(runif(40), nrow=8)
> Rfast::rowMaxs(x)
double free or corruption (out)
Aborted (core dumped)

Note that on this machine I get the crash most of the time but not every time (e.g. 6-8 times out of 10).
sessionInfo():

R version 4.0.0 RC (2020-04-19 r78255)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS:   /home/biocbuild/bbs-3.11-bioc/R/lib/libRblas.so
LAPACK: /home/biocbuild/bbs-3.11-bioc/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Rfast_1.9.9        RcppZiggurat_0.1.5 Rcpp_1.0.4.6       cytolib_1.99.28   

loaded via a namespace (and not attached):
[1] compiler_4.0.0      RProtoBufLib_1.99.8 parallel_4.0.0     
[4] RcppParallel_5.0.0 

Finally it's worth noting that I don't get a crash with R 3.6.0 and the RELEASE_3_10 branch of cytolib:

library(cytolib)
library(Rfast)
x <- matrix(runif(40), nrow=8)
Rfast::rowMaxs(x)
# [1] 1 2 3 3 4 4 5 4

sessionInfo():

R version 3.6.0 Patched (2019-05-02 r76454)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS

Matrix products: default
BLAS:   /home/hpages/R/R-3.6.r76454/lib/libRblas.so
LAPACK: /home/hpages/R/R-3.6.r76454/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Rfast_1.9.9        RcppZiggurat_0.1.5 Rcpp_1.0.4.6       cytolib_1.8.0     

loaded via a namespace (and not attached):
[1] compiler_3.6.0 parallel_3.6.0

Thanks,
H.

@mikejiang
Copy link
Member

I can't seem to reproduce it

> library(cytolib)
> library(Rfast)
Loading required package: Rcpp
Loading required package: RcppZiggurat
> x <- matrix(runif(40), nrow=8)
> Rfast::rowMaxs(x)
[1] 3 3 2 5 3 5 3 4
> sessionInfo()
R Under development (unstable) (2020-04-13 r78216)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS:   /media/wjiang2/real_home/wjiang2/mylib/R-devel-build/lib/libRblas.so
LAPACK: /media/wjiang2/real_home/wjiang2/mylib/R-devel-build/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Rfast_1.9.9        RcppZiggurat_0.1.5 Rcpp_1.0.4.6       cytolib_1.99.28   

loaded via a namespace (and not attached):
[1] compiler_4.1.0      RProtoBufLib_1.99.8 parallel_4.1.0     
[4] RcppParallel_5.0.0 

@hpages
Copy link
Contributor Author

hpages commented Apr 22, 2020

Yes, as I mentioned, I don't always get the crash either. For example I always get it on my laptop but not on malbec2 where I only get it about 6-8 times out of 10 there.

I see that you're using R 4.1 though. I get the crash with R 4.0. Didn't try with R 4.1. (Note that the next devel version of Bioconductor, BioC 3.12, will still be based on R 4.0 so I will stay away from R 4.1 for the next 6 months.)

@mikejiang
Copy link
Member

mikejiang commented Apr 22, 2020

I've installed R 4.0, but still can't reproduce it

> library(cytolib)
> library(Rfast)
Loading required package: Rcpp
Loading required package: RcppZiggurat
> x <- matrix(runif(40), nrow=8)
> Rfast::rowMaxs(x)
[1] 3 3 3 1 2 2 4 3
> sessionInfo()
R version 4.0.0 RC (2020-04-21 r78276)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS:   /media/wjiang2/real_home/wjiang2/mylib/R-devel-build/lib/libRblas.so
LAPACK: /media/wjiang2/real_home/wjiang2/mylib/R-devel-build/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Rfast_1.9.9        RcppZiggurat_0.1.5 Rcpp_1.0.4.6       cytolib_1.99.28   

loaded via a namespace (and not attached):
[1] compiler_4.0.0      RProtoBufLib_1.99.8 parallel_4.0.0     
[4] RcppParallel_5.0.0 

Note that my R revision is two-day later than bioc, not sure if that makes difference.

@mikejiang
Copy link
Member

addressed by #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants