[sr-dev] [kamailio/kamailio] presence: crash at delete_presentity_if_dialog_id_exists() if dialog_id is NULL (#794)

Victor Seva notifications at github.com
Fri Sep 23 11:14:08 CEST 2016


```
Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/proxy/kamailio.cfg -P /var/run/kamailio/kam'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f0376725d8e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f0376725d8e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f03606b5a9c in delete_presentity_if_dialog_id_exists (presentity=0x1333680, dialog_id=0x0) at presentity.c:417
#2  0x00007f03606b8558 in update_presentity (msg=0x1333680, presentity=0x7f0375a9b5d0, body=0x7ffc28292100, new_t=20339088, sent_reply=0x100, sphere=0x1365920 "\220Y6\001")
    at presentity.c:690
#3  0x00007f03606cc521 in handle_publish (msg=0x7f0375aad0f0, sender_uri=0x0, str2=0x0) at publish.c:460
#4  0x0000000000446840 in do_action (h=0x7ffc28292860, a=0x7f03759f2fd0, msg=0x7f0375aad0f0) at action.c:1060
#
```
check that the xml has no dialog.id
```
(gdb) f 1
#1  0x00007f03606b5a9c in delete_presentity_if_dialog_id_exists (presentity=0x1333680, dialog_id=0x0) at presentity.c:417
417	presentity.c: No such file or directory.
(gdb) p db_dialog_id
$1 = 0x1333680 "1649760492-8"
(gdb) p dialog_id
$2 = 0x0
(gdb) f 2
#2  0x00007f03606b8558 in update_presentity (msg=0x1333680, presentity=0x7f0375a9b5d0, body=0x7ffc28292100, new_t=20339088, sent_reply=0x100, sphere=0x1365920 "\220Y6\001")
    at presentity.c:690
690	in presentity.c
(gdb) p dialog_id
$3 = 0x0
(gdb) p is_dialog
$4 = 0
(gdb) p body
$5 = (str *) 0x7ffc28292100
(gdb) p *body
$6 = {
  s = 0x9b5b32 <buf+370> "<?xml version=\"1.0\"?>\n<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" version=\"55\" state=\"full\" entity=\"sip:88102 at 10.15.20.192\">\n</dialog-info>\r\n", len = 153}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/794
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160923/660a05c8/attachment.html>


More information about the sr-dev mailing list