Home Software Services About Contact usearch manual
malloc bug in version 9

A few users have reported a bug in v9 where usearch crashes with a message like this:

usearch9.0.2132_i86linux32: malloc.c:2372: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk...

Typically, the message is repeated several times. This bug is probably due to a race condition as using the -threads 1 option appears to solve the problem.

To fix this problem, I need to reproduce it which I have not been able to do so far on my own computers. If you can give me an ssh account on a machine where you can reproduce the problem, please let me know -- that would be very helpful.