There is a problem when the pthread_mutex_lock and associated calls are used across processes, when the lock structure resides inside shared memory (retrieved using shm_get). It seems that a particular call to pthread_mutex_lock, when the lock is already in possession by another process ends up inserting garbage (local memory pointers) into the lock structure, so that when the other process tries to release the lock, it crashes. Is there a fix for this ?
assign to jakub
pthread mutexes can be used only within threads of one process. You need to write your own mutices if you want to make them work accross processes.