Segfault when indexing with high k

Issue #27 resolved
Jakob Nissen created an issue

Here’s an example

ngs85out/test/nscat via C base ❯ kma index -k 40 -i nscat.fna -o nscat
# Indexing databases.
# Updating DBs
# Reading inputfile:    nscat.fna
zsh: segmentation fault  kma index -k 40 -i nscat.fna -o nscat

I don’t know if there are any reason it segfaults when k > 31 - perhaps the kmers are stored in signed 64 bit integers. Anyway, an error message would be much appreciated instead of a segfault :)

Comments (2)

  1. Log in to comment