Hi, I am working on a XS module in which I have to transmit and share data between multiples contexts. To simplify, this system is constructed around two methods: - send(<name>, <data>) - receive(<name>) : <data> Send and receive are called from two different contexts and the destination context can't be known in advance. (I have the insurance that the data will be used in the destination context before the destruction of the sender context).
In my initial code I have some problems of double free during the destruction of the contexts (panic: free from wrong pool). I think that I have to use sv_dup_inc() to solve this issue but I may have miss something because I get a Seg. fault in S_ptr_table_find (tbl=0x0, sv=0xa0b5a8) at sv.c:12197 So could you help me to find how to use sv_dup_inc() correctly? Thanks! Tristan