[asterisk-bugs] [JIRA] (ASTERISK-21391) Asterisk fails to load chan_sip.so after compiling with "#define REF_DEBUG 1" in chan_sip.c

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Apr 9 09:29:01 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205085#comment-205085 ] 

Matt Jordan commented on ASTERISK-21391:
----------------------------------------

Unlike Asterisk 1.8, Asterisk 11 has the SIP security event framework that was added in Asterisk 10. The SIP Security Event Framework exists in a separate file from {{channels/chan_sip.c}} - {{channels/sip/security_events.c}}. The security event code also uses {{ao2}} objects and is compiled into {{chan_sip}}. If you don't enable {{REF_DEBUG}} in *both* files, you get an undefined symbol error, as {{security_events.c}} will still be attempting to access the non-REF_DEBUG version of the functions that modify the reference count on peers.

Note that this is documented in Asterisk 11's {{chan_sip.c}}, right above the {{REF_DEBUG}} comment:

{noformat}
   Note: This must also be enabled in channels/sip/security_events.c
*/
#define  REF_DEBUG 1
{noformat}

This probably just needs to be updated on the wiki.
                
> Asterisk fails to load chan_sip.so after compiling with "#define  REF_DEBUG 1" in chan_sip.c
> --------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-21391
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21391
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.3.0
>         Environment: SVN-branch-11-r385048M
>            Reporter: Rusty Newton
>
> Following the guide at https://wiki.asterisk.org/wiki/display/AST/Reference+Count+Debugging for chan_sip results in chan_sip failing to load:
> {noformat}
> [Apr  8 21:00:11] WARNING[20719]: loader.c:486 load_dynamic_module: Error loading module 'chan_sip.so': /usr/lib/asterisk/modules/chan_sip.so: undefined symbol: sip_unref_peer
> [Apr  8 21:00:11] WARNING[20719]: loader.c:902 load_resource: Module 'chan_sip.so' could not be loaded.
> {noformat}
> No other relevant messages of any type around the time of attempted load with VERBOSE and DEBUG turned up to 5.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list