[sr-dev] Troubleshooting segfault in shared memory

Anthony Alba ascanio.alba7 at gmail.com
Thu Aug 26 04:54:57 CEST 2021


Hi sr-dev,

I have a pointer from one child process A that is available to another
child process B (this is a custom module I am developing). The object
should have been allocated in shared memory by A using ser_malloc and
friends and thus accessible from B.

However B is encountering a segfault when accessing this object.

Given a pointer how can I tell whether the memory it is pointing to is
valid in all children, i.e, the target is in kamailio shared memory?

Thanks
Anthony Alba



More information about the sr-dev mailing list