Skip to content

pml() segfault: memory not mapped #144

Description

@iferres

Hi, I'm having this issue with pml():

library(magrittr)
library(phangorn)

tree <- readRDS("tree.RDS")
dat <- readRDS("phydat.RDS") 

pml <- phangorn::pml(tree, data = dat, k = 8)    

 *** caught segfault ***  
address 0x8cc5f80, cause 'memory not mapped'

Traceback:
 1: pml.fit(tree, data, bf, shape = shape, k = k, Q = Q, levels = attr(data,     "levels"), inv = inv, rate = rate, g = g, w = w, eig = eig,     INV = INV, ll.0 = ll.0, llMix = llMix, wMix = wMix, site = TRUE,     ASC = ASC) 
 2: phangorn::pml(tree, data = dat, k = 8)

I'm send you the files through wetransfer to reproduce the error (https://we.tl/t-SrejR8GFvG). The phydat.RDS is quite big (about 41 Mb). If I subset it before computing pml, the error disappears.

sessionInfo()            
R version 4.2.2 Patched (2022-11-10 r83330)           
Platform: x86_64-pc-linux-gnu (64-bit)                           
Running under: Debian GNU/Linux bookworm/sid                               
                                      
Matrix products: default                 
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.21.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] phangorn_2.10.0 ape_5.6-2       magrittr_2.0.3   
 
loaded via a namespace (and not attached):   
 [1] Rcpp_1.0.9       quadprog_1.5-8   lattice_0.20-45  codetools_0.2-18  
 [5] grid_4.2.2       nlme_3.1-160     rlang_1.0.6      cli_3.4.1 
 [9] Matrix_1.5-1     generics_0.1.3   fastmatch_1.1-3  igraph_1.3.5  
[13] parallel_4.2.2   compiler_4.2.2   pkgconfig_2.0.3 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions