[Kamailio-Devel] [ openser-Bugs-1995201 ] dialog: crash while handling BYE for redirected calls

SourceForge.net noreply at sourceforge.net
Sun Oct 5 18:38:42 CEST 2008


Bugs item #1995201, was opened at 2008-06-16 10:40
Message generated for change (Comment added) made by osas
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1995201&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
Assigned to: Nobody/Anonymous (nobody)
Summary: dialog: crash while handling BYE for redirected calls

Initial Comment:
If 3xx replies are handled by uac module and the call is profiled, the folowing crash occurs when the call is terminated:

Program terminated with signal 11, Segmentation fault.
#0  0x40227a9f in destroy_linkers (linker=0x0) at dlg_profile.c:230
230					p_entry->first->prev = p_entry->first->prev->prev;
(gdb) bt
#0  0x40227a9f in destroy_linkers (linker=0x0) at dlg_profile.c:230
#1  0x40222ce2 in destroy_dlg (dlg=0x4043e2d0) at dlg_hash.c:124
#2  0x402249f1 in unref_dlg (dlg=0x4043e2d0, cnt=1) at dlg_hash.c:444
#3  0x40227b5b in profile_cleanup (msg=0x8182d68, param=0x0) at dlg_profile.c:247
#4  0x08096609 in exec_post_cb (msg=0x8182d68, cb=0x817f8a0) at script_cb.c:144
#5  0x080965e8 in exec_post_req_cb (msg=0x8182d68) at script_cb.c:162
#6  0x08085f05 in receive_msg (
    buf=0x8152b60 ""..., len=656, rcv_info=0xbffffb5c) at receive.c:163
#7  0x080b7de9 in udp_rcv_loop () at udp_server.c:438
#8  0x080640db in main_loop () at main.c:780
#9  0x08065f70 in main (argc=3, argv=0xbffffd24) at main.c:1319
(gdb) print p_entry
$1 = (struct dlg_profile_entry *) 0x40424f2c
(gdb) print p_entry->first
$2 = (struct dlg_profile_hash *) 0x0


As a side effect, the profiling count is incremented twice when the redirection occurs, despite the fact that the profiling is set only for the first call (there is not profiling set for the redirected call).


Regards,
Ovidiu Sas

----------------------------------------------------------------------

>Comment By: Ovidiu Sas (osas)
Date: 2008-10-05 12:38

Message:
fixed already ... closing

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1995201&group_id=139143



More information about the Devel mailing list