[asterisk-bugs] [JIRA] (ASTERISK-29535) Segmentation fault in libasteriskpj.so.2

Daniel Bonazzi (JIRA) noreply at issues.asterisk.org
Thu Jul 29 08:30:33 CDT 2021


Daniel Bonazzi created ASTERISK-29535:
-----------------------------------------

             Summary: Segmentation fault in libasteriskpj.so.2
                 Key: ASTERISK-29535
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29535
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: pjproject/pjsip
    Affects Versions: 18.5.1
         Environment: Linux 34104asterisk 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
            Reporter: Daniel Bonazzi
            Severity: Critical


I've been facing some segmentation faults on asterisk without any apparent reason.

This is what shows on the system logs:
Jul 27 09:16:30 34104asterisk kernel: asterisk[6556]: segfault at 0 ip 00007fcc4298678f sp 00007fcacf8ab938 error 6 in libasteriskpj.so.2[7fcc42871000+168000]
Jul 27 09:16:30 34104asterisk asterisk[223321]: /usr/sbin/safe_asterisk: line 171: 223349 Segmentation fault      (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}

Checking the logs of our system that connects to asterisk via ARI and checking the asterisk logs we could see some cases where it crashed after some calls to the ARI API were made in a certain order like:

POST /ari/channels/1627495070.126/snoop?app=stasis-&spy=both&whisper=none'

POST /ari/channels/1627495070.126/moh

DELETE /ari/channels/1627495070.126

POST /ari/channels/1627495070.126/moh

It is not always that those requests get to asterisk out of order that the crashes happen, but all the time that it crashed we I could saw this pattern.



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



More information about the asterisk-bugs mailing list