[asterisk-bugs] [JIRA] (ASTERISK-27412) asterisk 15 + ubuntu 16 + realtime chan_sip - segfault

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Mon Nov 13 18:23:40 CST 2017


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

Richard Mudgett commented on ASTERISK-27412:
--------------------------------------------

[^valgrind3.txt] and [^valgrind4.txt] are showing three things:
# 0x5BDFEC: normalise_history (plc.c:99) is using memcpy() when it should use memmove() because the memory blocks overlap.  This is minor and not really causing a problem.
# 0x46E17A: audio_audiohook_write_list (audiohook.c:953) is freeing a frame it shouldn't.  Apparently middle_frame == start_frame.  In that case it shouldn't free it.  This is the main memory corruption mechanism seen in the backtraces.  The regression change was introduced by ASTERISK-26926.
# Chan_sip is destroying its pvt data structure before it is time due to a ref counting error.  This is causing the FRACKs and many invalid reads/writes after the FRACKs.  Be aware that chan_sip is extended support so someone from the community needs to address this problem.

The first two I'm going to consider as what needs to be fixed to complete this issue.  The third issue with chan_sip is reported in other issues and is a duplicate.  However, the valgrind output is very useful for the chan_sip problem.

> asterisk 15 + ubuntu 16 + realtime chan_sip - segfault
> ------------------------------------------------------
>
>                 Key: ASTERISK-27412
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27412
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General, PBX/pbx_realtime
>    Affects Versions: 15.1.0, 15.1.1
>         Environment: ubuntu server 16.04 x64
>            Reporter: Mikhail
>            Assignee: Unassigned
>            Severity: Critical
>         Attachments: autosupport.tar.gz, debug_log_123456, jira_asterisk_27413_v15.1.patch, valgrind3.txt, valgrind4.txt, valgrind.txt
>
>
> I've installed Asterisk 15.1.0 on Ubuntu server 16.04. I configured realtime sippeers (tried via odbc and res_config_mysql - all the same). And asterisk core crashes after 20-40 minutes of working. 
> System has 4gb of RAM and 4 gb swap:
>                     total        used        free      shared  buff/cache   available
> Mem:           3849         438        1079          24        2330        3094
> Swap:          3993         466        3527
> processor is Intel(R) Core(TM) i3 CPU         560  @ 3.33GHz
> backtraces:
> https://drive.google.com/file/d/179L3aN2iey2nN_zdGKyJZ5EGNGGOpEHh/view?usp=sharing
> https://drive.google.com/file/d/1RuLZ-eqyhEyFYHc1bLANof1COuXfYKUq/view?usp=sharing



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



More information about the asterisk-bugs mailing list