Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presence: crash at delete_presentity_if_dialog_id_exists() if dialog_id is NULL #794

Closed
linuxmaniac opened this issue Sep 23, 2016 · 0 comments
Assignees
Labels

Comments

@linuxmaniac
Copy link
Member

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@10.15.20.192\">\n</dialog-info>\r\n", len = 153}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant