[asterisk-bugs] [JIRA] (ASTERISK-27930) res_pjsip: PJSIP TCP Segfault.

George Joseph (JIRA) noreply at issues.asterisk.org
Wed Jun 27 08:06:54 CDT 2018


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

George Joseph commented on ASTERISK-27930:
------------------------------------------

It looks like there was a race condition between a phone doing a re-register and Asterisk trying to send an OPTIONS message to the phone.   To help us reproduce the issue, could you run {{ast_coredumper --tarball-coredumps --no-default-search <coredump>}} where {{<coredump}} is the actual core file that you generated the files in the attachments from?   It'll contain the actual coredump and the compiled asterisk code that was in use at the time so it'll be quite large.  You can then post it to dropbox or another file sharing service and email the link to asteriskteam at asterisk.org mentioning this issue.  This way you won't be exposing any sensitive information to the public.

BTW, Thanks for supplying the detailed problem description.  We usually don't get this level of information without prompting the reporter several times. :)




> res_pjsip: PJSIP TCP Segfault.
> ------------------------------
>
>                 Key: ASTERISK-27930
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27930
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.19.0, 13.19.1, 13.19.2, 13.20.0, 13.21.0
>         Environment: Virtual box on VMWare
> CentOS Linux release 7.4.1708 (Core) 
> Linux  3.10.0-693.5.2.el7.x86_64
> CPU: 4 cores, Intel(R) Xeon(R) CPU E5-2637 v2 @ 3.50GHz
> RAM: 6GB
>            Reporter: Anna
>            Assignee: Unassigned
>              Labels: pjsip
>         Attachments: core-2018-06-21T08-28-01+0300-brief.txt, core-2018-06-21T08-28-01+0300-full.txt, core-2018-06-21T08-28-01+0300-locks.txt, core-2018-06-21T08-28-01+0300-thread1.txt, full_log.txt, pjsip.conf, pjsip_users.conf
>
>
> Hello,
> I experience random segfault crashes on Asterisk 13 setup with pjsip. Crashes happen for no apparent reason, it can be twice a day, can be once in 2 weeks. I have 2 servers with the same configuration and they both segfault from time to time. I can't reproduce this crash and don't know what is the reason. Also all endpoints that were registered before crash don't come back and register, i need to manually reboot/re-register all phones.
> I created a topic on Asterisk community and was advised to update my version since there is some issue with PJSIP using TCP protocol and if that won't help then i need to submit issue here.
> https://community.asterisk.org/t/segmentation-fault-asterisk-13-19-0/74289/9
> My asterisk is build from source with these options:
> PBX Core settings
> -----------------
>   Version:                     13.21.0
>   Build Options:               DONT_OPTIMIZE, DEBUG_THREADS, BETTER_BACKTRACES, BUILD_NATIVE, OPTIONAL_API
>   Maximum calls:               10000 (Current 4)
>   Maximum open file handles:   10000
>   Root console verbosity:      4
>   Current console verbosity:   4
>   Debug level:                 0
>   Maximum load average:        10.000000
>   Minimum free memory:         0 MB
>   Startup time:                08:28:10
>   Last reload time:            08:28:10
>   System:                      Linux/3.10.0-693.5.2.el7.x86_64 built by root on x86_64 2018-05-31 11:24:50 UTC
>   System name:                 
>   Entity ID:                   MY_MAC
>   PBX UUID:                    592b015e-a035-4b57-9bbe-8d8f785d663d
>   Default language:            en
>   Language prefix:             Enabled
>   User name and group:         asterisk/asterisk
>   Executable includes:         Disabled
>   Transcode via SLIN:          Enabled
>   Transmit silence during rec: Disabled
>   Generic PLC:                 Enabled
>   Generic PLC on equal codecs: Disabled
>   Min DTMF duration::          80
>   Cache media frames:          Enabled
>   RTP dynamic payload types:   96-127
> * Subsystems
>   -------------
>   Manager (AMI):               Enabled
>   Web Manager (AMI/HTTP):      Disabled
>   Call data records:           Enabled
>   Realtime Architecture (ARA): Enabled
> I have about 125 endpoints with static and dynamic AORs, i attached my pjsip config files. I have endpoints using TCP transport and trunks using UDP.
> I also attached backtraces from the core dump created on crash.



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



More information about the asterisk-bugs mailing list