emmanuelparadis / ape

analysis of phylogenetics and evolution

Home Page:http://ape-package.ird.fr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segfault when reading in tree

lpipes opened this issue · comments

Hi, I have this tree and it segfaults every time I try read.tree()

library(ape)
tree<-read.tree("tree.txt")

tree.txt

Hi, The bug is in the C file tree_build.c: the array stack_internal is too small for your tree (it's 10000 and cannot be changed unless recompiling). It can be increased to 100000 and your tree can be read.
I'll push a fix in a moment.
Cheers,

Fixed and pushed.