[SR-Users] Memory issue?

smititelu stefan.mititelu at 1and1.ro
Thu Jan 21 12:22:28 CET 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160121/bf7ca29b/attachment.html>


More information about the sr-users mailing list