+---------- On Jan 7, Andrew Piskorski said: > Problem is, I'm sometimes getting a segfault during the malloc in the > Ns_SetCreate (see below), and I don't understand why. Could someone > give me advice on this, please? Thanks! > > Program received signal SIGSEGV, Segmentation fault. > [Switching to LWP 7] > 0xff14140c in _malloc_unlocked () from /lib/libc.so.1
Looks like heap corruption. You are probably writing past the end of a block, or writing to a freed block, or freeing a block twice some time before this call. Yes, Ns_SetCreate is thread-safe.
