[SR-Users] What is the alignment of shm_malloc and friends?

Richard Chan shihping.chan at gmail.com
Mon Jun 20 12:52:08 CEST 2022


Hi Daniel and kamailio users,

In my integration adventure of wolfSSL and kamailio I have encountered an
alignment issue sometime causing segfaults.

May I enquire what is the alignment of shm_malloc and friends?

The wolfSSL library integration requires that ser_malloc and ser_realloc
return values aligned on alignof(_max_align_t) which
in the case of x86_64 is 16.

Thank you
Shih-Ping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220620/7797ae18/attachment.htm>


More information about the sr-users mailing list