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")
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.