[OpenSIPS-Users] dialog module leaking memory

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jul 3 12:56:58 CEST 2009


Hi Brett,

actually there are 2 issues here:

1) dialog error - the error says you call "set_dlg_profile()"  before 
creating the dialog (probably in the request route)....It should not be 
related to failure_route (as per your post)

2) mem error - not sure if related to the first one, but you should 
enable memory debugging to try to hunt this down (see 
http://www.opensips.org/Resources/DocsTsMem)

Regards,
Bogdan

Brett Nemeroff wrote:
> Hey All,
> I've got a stateful dispatcher I've build using dialog profiles. 
> Apparently I'm doing something stupid in my script generating these 
> errors:
> Jul  3 00:54:20 opensips-a /usr/local/sbin/opensips[26189]: 
> ERROR:dialog:set_dlg_profile: dialog was not yet created - script error 
> Jul  3 00:54:20 opensips-a /usr/local/sbin/opensips[26189]: 
> ERROR:dialog:w_set_dlg_profile: failed to set profile 
> Jul  3 00:55:20 opensips-a /usr/local/sbin/opensips[26189]: 
> ERROR:dialog:set_dlg_profile: dialog was not yet created - script error 
> Jul  3 00:55:20 opensips-a /usr/local/sbin/opensips[26189]: 
> ERROR:dialog:w_set_dlg_profile: failed to set profile 
>
> I think the lines causing this are:
> ...
>
> failure_route[1] {
>         unset_dlg_profile("gateway","$rd");
> ...
>
> In any case, the more serious issue is after a whole lot of that error 
> message showing up I then get:
> Jun 29 11:30:32 opensips-a /usr/local/sbin/opensips[14209]: 
> ERROR:dialog:unset_dlg_profile: dialog was not yet created - script error 
> Jun 29 11:30:32 opensips-a /usr/local/sbin/opensips[14209]: 
> ERROR:dialog:w_unset_dlg_profile: failed to unset profile 
> Jun 29 11:31:11 opensips-a /usr/local/sbin/opensips[14206]: 
> ERROR:dialog:set_dlg_profile: dialog was not yet created - script error 
> Jun 29 11:31:11 opensips-a /usr/local/sbin/opensips[14206]: 
> ERROR:dialog:w_set_dlg_profile: failed to set profile 
> Jun 29 11:31:42 opensips-a /usr/local/sbin/opensips[14206]: 
> ERROR:tm:sip_msg_cloner: no more share memory 
> Jun 29 11:31:42 opensips-a /usr/local/sbin/opensips[14206]: 
> ERROR:tm:new_t: out of mem 
> Jun 29 11:31:42 opensips-a /usr/local/sbin/opensips[14206]: 
> ERROR:tm:t_newtran: new_t failed 
> Jun 29 11:31:42 opensips-a /usr/local/sbin/opensips[14207]: 
> ERROR:tm:sip_msg_cloner: no more share memory 
> Jun 29 11:31:42 opensips-a /usr/local/sbin/opensips[14207]: 
> ERROR:tm:new_t: out of mem 
> Jun 29 11:31:42 opensips-a /usr/local/sbin/opensips[14207]: 
> ERROR:tm:t_newtran: new_t failed 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:sip_msg_cloner: no more share memory 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:new_t: out of mem 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:t_newtran: new_t failed 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14207]: 
> ERROR:tm:sip_msg_cloner: no more share memory 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14207]: 
> ERROR:tm:new_t: out of mem 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14207]: 
> ERROR:tm:t_newtran: new_t failed 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:sip_msg_cloner: no more share memory 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:new_t: out of mem 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:t_newtran: new_t failed 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:sip_msg_cloner: no more share memory 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:new_t: out of mem 
> Jun 29 11:31:43 opensips-a /usr/local/sbin/opensips[14205]: 
> ERROR:tm:t_newtran: new_t failed 
>
>
> And then calls fail to process properly of course. So even if I'm 
> doing something stupid in my script, it shouldn't run out of memory 
> because of it, right?
>
> -Brett
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list