[OpenSIPS-Devel] [ opensips-Bugs-3106031 ] dialog module calls update_stat(0x0, 1)

SourceForge.net noreply at sourceforge.net
Thu Nov 25 15:10:35 CET 2010


Bugs item #3106031, was opened at 2010-11-09 18:06
Message generated for change (Settings changed) made by anca_vamanu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3106031&group_id=232389

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: 1.6.x
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Walter Doekes (wdoekes)
Assigned to: Nobody/Anonymous (nobody)
Summary: dialog module calls update_stat(0x0, 1)

Initial Comment:
Hi,

if dlg_enable_stats == 0, the stats variables in dialog are not initialized.

However, on error:, update_stat(failed_dlg, 1) is called. This should be if_update_stat. See attached patch.

Regards,
Walter Doekes

P.S. I got to error: because of an apparent memory leak. Or at least an unexplained shortage of memory. But that is a different matter.
Nov  9 12:29:41 sip opensips[8573]: WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation
Nov  9 12:29:41 sip opensips[8573]: ERROR:core:parse_contacts: no pkg memory left
Nov  9 12:29:41 sip opensips[8573]: ERROR:core:contact_parser: failed to parse contacts
Nov  9 12:29:41 sip opensips[8573]: ERROR:core:parse_contact: failed to parse contact
Nov  9 12:29:41 sip opensips[8573]: ERROR:dialog:get_routing_info: bad Contact HDR
Nov  9 12:29:41 sip opensips[8573]: WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation
Nov  9 12:29:41 sip opensips[8573]: ERROR:core:insert_new_lump_before: out of pkg memory
Nov  9 12:29:41 sip opensips[8573]: ERROR:rr:insert_rr_param_lump: failed to add before lump
Nov  9 12:29:41 sip opensips[8573]: ERROR:rr:add_rr_param: failed to add 2nd lump
Nov  9 12:29:41 sip opensips[8573]: ERROR:dialog:add_dlg_rr_param: failed to add rr param
Nov  9 12:29:41 sip opensips[8573]: ERROR:dialog:dlg_create_dialog: failed to add RR param
(crash)

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3106031&group_id=232389



More information about the Devel mailing list