Thank you for your excellent library. I recently used the khash.h and kstring.h to code up a little program to get unique lines in one of two files. It works on most cases without any bug. However, today I try to use the little program to get uniq lines in two big files, each of them is more than 40M lines with file size about 2.5G, then it crashed and tell about segment fault, I try to use gdb to debug, and get nothing, is there any limit on the max count of khash?
my little program source code axb.c is below, all the source file khash.h and kstring.h, kstring.c are the latest version in the repo, I compile with gcc -std=c11 -O3 -o axb axb.c kstring.c
Thank you for your excellent library. I recently used the khash.h and kstring.h to code up a little program to get unique lines in one of two files. It works on most cases without any bug. However, today I try to use the little program to get uniq lines in two big files, each of them is more than 40M lines with file size about 2.5G, then it crashed and tell about segment fault, I try to use gdb to debug, and get nothing, is there any limit on the max count of khash?
my little program source code
axb.c
is below, all the source filekhash.h
andkstring.h
,kstring.c
are the latest version in the repo, I compile withgcc -std=c11 -O3 -o axb axb.c kstring.c