[SR-Users] Memory issue?

Igor Potjevlesch igor.potjevlesch at gmail.com
Fri Jan 29 17:31:38 CET 2016


Hi Stefan,

 

The fix must be applied in addition of the growth of SHM?

 

What exactly the fix will avoid?


Regards,

 

Igor.

 

De : sr-users [mailto:sr-users-bounces at lists.sip-router.org] De la part de Mititelu Stefan
Envoyé : vendredi 22 janvier 2016 15:26
À : Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Objet : Re: [SR-Users] Memory issue?

 

Hi Igor,

Yes, it's caused by lack of shm.

I don't know if there is a proper shm value. Depending on how many modules are loaded on kamailio and how much shm a module might use over time, more or less shm should be used. In your particular case, depending on how much userblacklist table should grow, you should adjust the startup shm value.

Thank you for your detailed feedback on the segfault; the fix it's on its way and will be backported.

Stefan

 

On Fri, Jan 22, 2016 at 1:12 PM, Igor Potjevlesch <igor.potjevlesch at gmail.com <mailto:igor.potjevlesch at gmail.com> > wrote:

Hi Stefan,

 

Indeed, It looks to be the issue. 

But, the root cause is the lack of SHM memory, isn't it?

 

Actually, Kamailio is running with 256M of SHM (-m 256). What would be the good new value?

 

Regards,

 

Igor.

 

De : sr-users [mailto:sr-users-bounces at lists.sip-router.org <mailto:sr-users-bounces at lists.sip-router.org> ] De la part de smititelu
Envoyé : jeudi 21 janvier 2016 12:22
À : Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org> >
Objet : Re: [SR-Users] Memory issue?

 

On 21.01.2016 12:37, Igor Potjevlesch wrote:

And 2 coredumps readable:

Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 64'.

Program terminated with signal 11, Segmentation fault.

#0  0x00007f13a1550af2 in dtrie_insert (root=0x7f138d7ffb38, number=0x22ba6c0 "003716716", numberlen=9, data=0x2, branches=10) at dtrie.c:141

141                     if (node->child[digit] == NULL) {

 

Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 64'.

Program terminated with signal 11, Segmentation fault.

#0  0x00007f13a1550af2 in dtrie_insert (root=0x7f138d7ff998, number=0x22b57a8 "0035587482", numberlen=10, data=0x2, branches=10) at dtrie.c:141

141                     if (node->child[digit] == NULL) {


I remember something related, solved and backported in commit [1].

Now that I'm looking at the segfault line I think node should be NULL checked also after ```struct dtrie_node_t *node = root;```

Stefan

[1] https://github.com/kamailio/kamailio/commit/b399bb34cebdb1002d27bb0cf554f2d2e683c40d


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org> 
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160129/fd9c60af/attachment.html>


More information about the sr-users mailing list