felipelouza / egsa

Generalized enhanced suffix array construction in external memory [CPM'13, AMB 2017]
https://doi.org/10.1186/s13015-017-0117-9
GNU General Public License v3.0
15 stars 2 forks source link

segfault when writing the output file #3

Closed fcharras closed 6 years ago

fcharras commented 6 years ago

With this input file testatestb\0blablabla

i get a segfault (tried with K = 0, 1, 2):

DIR = ./
INPUT = lalouli.txt
K = 0
MEMLIMIT = 2048.00 MB
CHECK = 0
COMPUTE_BWT = 0
WORKSPACE = 13.n bytes

### PREPROCESSING ###
K = 0
PARTITIONS = 1
TOTAL = 20 bytes    0.00 MB
CLOCK = 0.000658 TIME = 0.000000
0.000658    0.000000

### PHASE 1 ###
CLOCK = 0.000184 TIME = 0.000000
0.000184    0.000000

### PHASE 2 ###

INDUCING:
alfa    TOTAL   INDUCED %:
ALL)    19  0   0.00
Segmentation fault (core dumped)

and the output file is created but empty.

felipelouza commented 6 years ago

Hi @fcharras, thank you! There was a bug when you ran ./egsa without -b option. I had forgot to check this case. Fixed! Cheers!