cliqz-oss / keyvi

Keyvi - a key value index that powers Cliqz search engine. It is an in-memory FST-based data structure highly optimized for size and lookup performance.
https://cliqz.com
Apache License 2.0
179 stars 38 forks source link

Sigsev when trying to merge .kv file with no data #211

Closed goran-cliqz closed 7 years ago

goran-cliqz commented 7 years ago

If you add a .kv file with no entries in it and try to merge it, keyvi will fail with sigsev. Reproduce with the attached script. mergeSigsegv.txt

hendrikmuhs commented 7 years ago

Good catch!

Somehow we always miss this case, e.g. there should be unit test for this.