[asterisk-bugs] [JIRA] (ASTERISK-26832) res_pjsip: Segfault when calling pjsip_hdr_print_on in sip_msg.c:581

Ross Beer (JIRA) noreply at issues.asterisk.org
Thu Jan 4 10:36:39 CST 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Beer updated ASTERISK-26832:
---------------------------------

    Description: 
A segfault is thrown regularly  when sending ‘183 Session Progress’ messages.

The issue happens in sip_msg.c here:

{noformat}
PJ_DEF(int) pjsip_hdr_print_on( void *hdr_ptr, char *buf, pj_size_t len)
{
    pjsip_hdr *hdr = (pjsip_hdr*) hdr_ptr;
    return (*hdr->vptr->print_on)(hdr_ptr, buf, len); <<< HERE
}
{noformat}

Please see attached backtrace.


  was:
A segfault is thrown regularly  when sending ‘183 Session Progress’ messages.

The issue happens in sip_msg.c here:

{noformat}
PJ_DEF(int) pjsip_hdr_print_on( void *hdr_ptr, char *buf, pj_size_t len)
{
    pjsip_hdr *hdr = (pjsip_hdr*) hdr_ptr;
    return (*hdr->vptr->print_on)(hdr_ptr, buf, len);
}
{noformat}

Please see attached backtrace.



> res_pjsip: Segfault when calling pjsip_hdr_print_on in sip_msg.c:581
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-26832
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26832
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.14.0, 13.18.5, GIT
>         Environment: CentOS 6
>            Reporter: Ross Beer
>              Labels: pjsip
>         Attachments: backtrace_20170203_clean.txt
>
>
> A segfault is thrown regularly  when sending ‘183 Session Progress’ messages.
> The issue happens in sip_msg.c here:
> {noformat}
> PJ_DEF(int) pjsip_hdr_print_on( void *hdr_ptr, char *buf, pj_size_t len)
> {
>     pjsip_hdr *hdr = (pjsip_hdr*) hdr_ptr;
>     return (*hdr->vptr->print_on)(hdr_ptr, buf, len); <<< HERE
> }
> {noformat}
> Please see attached backtrace.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list