[asterisk-bugs] [JIRA] (ASTERISK-26373) channel: Crash when appending cap during dialing to a channel

Denis S.Davydov (JIRA) noreply at issues.asterisk.org
Thu Sep 22 00:46:01 CDT 2016


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

Denis S.Davydov commented on ASTERISK-26373:
--------------------------------------------

This is strange! But crashes does not occur again after I rebuilt Asterisk excluding these parameters:

--enable DONT_OPTIMIZE \
--enable BETTER_BACKTRACES \
--enable MALLOC_DEBUG \

:)

To see the frequency of last accidents following:
{code}
$ ls -ltr /data/tmp/core-asterisk-11-0-0-*
-rw------- 1 root root  654843904 Sep 13 09:16 /data/tmp/core-asterisk-11-0-0-21797-1473758164
-rw------- 1 root root  156868608 Sep 13 09:17 /data/tmp/core-asterisk-11-0-0-8487-1473758271
-rw------- 1 root root  229892096 Sep 13 09:49 /data/tmp/core-asterisk-11-0-0-8816-1473760145
-rw------- 1 root root  775057408 Sep 13 14:57 /data/tmp/core-asterisk-11-0-0-12760-1473778643
-rw------- 1 root root 1149308928 Sep 14 13:56 /data/tmp/core-asterisk-11-0-0-23807-1473861417
-rw------- 1 root root  821338112 Sep 15 07:26 /data/tmp/core-asterisk-11-0-0-5189-1473924415
-rw------- 1 root root  606130176 Sep 15 11:30 /data/tmp/core-asterisk-11-0-0-14960-1473939034
-rw------- 1 root root  172089344 Sep 15 11:34 /data/tmp/core-asterisk-11-0-0-11633-1473939274
-rw------- 1 root root  125165568 Sep 15 11:35 /data/tmp/core-asterisk-11-0-0-12237-1473939337
-rw------- 1 root root  612769792 Sep 15 15:28 /data/tmp/core-asterisk-11-0-0-12418-1473953330
-rw------- 1 root root  156487680 Sep 15 15:32 /data/tmp/core-asterisk-11-0-0-9172-1473953519
-rw------- 1 root root  527540224 Sep 16 05:40 /data/tmp/core-asterisk-11-0-0-9648-1474004432
-rw------- 1 root root  249794560 Sep 16 07:05 /data/tmp/core-asterisk-11-0-0-29189-1474009559
-rw------- 1 root root  401727488 Sep 16 09:21 /data/tmp/core-asterisk-11-0-0-5569-1474017671
-rw------- 1 root root 1367691264 Sep 17 18:54 /data/tmp/core-asterisk-11-0-0-3437-1474138469
-rw------- 1 root root  881455104 Sep 18 12:27 /data/tmp/core-asterisk-11-0-0-9423-1474201667
-rw------- 1 root root  129671168 Sep 19 02:31 /data/tmp/core-asterisk-11-0-0-11556-1474252278
-rw------- 1 root root  198107136 Sep 19 05:06 /data/tmp/core-asterisk-11-0-0-18144-1474261600
-rw------- 1 root root  608952320 Sep 19 09:44 /data/tmp/core-asterisk-11-0-0-27734-1474278267
-rw------- 1 root root  171937792 Sep 19 09:50 /data/tmp/core-asterisk-11-0-0-25708-1474278648
-rw------- 1 root root  175071232 Sep 19 09:59 /data/tmp/core-asterisk-11-0-0-26470-1474279180
-rw------- 1 root root  288841728 Sep 19 11:13 /data/tmp/core-asterisk-11-0-0-27725-1474283584
-rw------- 1 root root  242311168 Sep 19 11:55 /data/tmp/core-asterisk-11-0-0-4450-1474286131
-rw------- 1 root root  145694720 Sep 19 11:58 /data/tmp/core-asterisk-11-0-0-9887-1474286299
-rw------- 1 root root  190824448 Sep 19 12:09 /data/tmp/core-asterisk-11-0-0-10292-1474286981
-rw------- 1 root root  231333888 Sep 19 12:42 /data/tmp/core-asterisk-11-0-0-12044-1474288921
{code}

At the 19/09 I've rebuilt Asterisk the same Asterisk 13.11.2 without debug options and now have no crashes yet.

> channel: Crash when appending cap during dialing to a channel
> -------------------------------------------------------------
>
>                 Key: ASTERISK-26373
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26373
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Channels
>    Affects Versions: 13.11.2
>         Environment: Virtual Machine on ESXi6 (VM Version 11, 4vCPU, 16Gb RAM), OS: CentOS release 6.8 (Final) x86_84
>            Reporter: Denis S.Davydov
>            Assignee: Unassigned
>         Attachments: 20160913_1457.log, full_20160913_1457.txt, mmlog_20160913
>
>
> Sep 13 14:57:23 pbx kernel: asterisk[18303] general protection ip:526f83 sp:7fa6e1854340 error:0 in asterisk[400000+370000]
> Segmentation fault in ast_format_cap_append_from_cap.
> {code}
> Program terminated with signal 11, Segmentation fault.
> #0  0x0000000000526f83 in ast_format_cap_append_from_cap (dst=0x7fa731384ab0, src=0x7fa6d5098350, type=AST_MEDIA_TYPE_UNKNOWN) at format_cap.c:308
> 308			struct format_cap_framed *framed = AST_VECTOR_GET(&src->preference_order, idx);
> #0  0x0000000000526f83 in ast_format_cap_append_from_cap (dst=0x7fa731384ab0, src=0x7fa6d5098350, type=AST_MEDIA_TYPE_UNKNOWN) at format_cap.c:308
>         __idx = 0
>         framed = 0x7fa6d512f190
>         idx = 0
>         res = 0
> #1  0x00000000004c2e53 in ast_request (type=0x7fa6e1854580 "SIP", request_cap=0x7fa6d5098350, assignedids=0x0, requestor=0x7fa6d54b3068, addr=0x7fa6e1854584 "3112", cause=0x7fa6e1854680) at channel.c:6068
>         tmp_cap = 0x7fa7313bf700
>         tmp_fmt = 0xbc67d0
>         best_audio_fmt = 0xbc67d0
>         joint_cap = 0x7fa731384ab0
>         chan = 0x17a62c0
>         c = 0x7fa6e1855fc0
>         res = 0
>         foo = 32679
>         __PRETTY_FUNCTION__ = "ast_request"
> {code}
> backtrace.txt and full.txt are in attachment.
> Compiled flags on my Asterisk-PBX is DONT_OPTIMIZE, COMPILE_DOUBLE, LOADABLE_MODULES, BETTER_BACKTRACES, MALLOC_DEBUG, BULD_NATIVE. Mmlog useless, there's nothing.



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



More information about the asterisk-bugs mailing list