[OpenSIPS-Devel] [ opensips-Bugs-3535422 ] crash in domainpolicy init

SourceForge.net noreply at sourceforge.net
Tue Jun 19 17:17:16 CEST 2012


Bugs item #3535422, was opened at 2012-06-15 04:06
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3535422&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.8.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Yaroslav M Strilchuk (ditegen)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: crash in domainpolicy init

Initial Comment:
The server crashes in domainpolicy mod_init while going through AVPs:

INFO:domainpolicy:mod_init: AVP
DBG:core:__search_avp_map: looking for [portoverride] avp  - found -1
DBG:core:new_avp_alias: added alias portoverride with id 24
DBG:core:__search_avp_map: looking for [transportoverride] avp  - found -1
DBG:core:new_avp_alias: added alias transportoverride with id 25
DBG:core:__search_avp_map: looking for [domainprefix] avp  - found -1
DBG:core:new_avp_alias: added alias domainprefix with id 26
DBG:core:__search_avp_map: looking for [domainsuffix] avp  - found -1
DBG:core:wait_status_code: read code 76 ? rc = 0, errno=Success
INFO:core:daemonize: pre-daemon process exiting with -1

Backtrace leads to the code for domain_suffix_avp which differs from the way how other AVPs are parsed, stack corruption follows in no time after calling get_avp_id(&domain_suffix_avp).

Proposed patch in the attachment just brings it line and seems to resolve the issue.


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

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-06-19 08:17

Message:
Yaroslav, thanks for the patch - it was uploaded on SVN.

Regards,
Bogdan

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

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



More information about the Devel mailing list