[asterisk-bugs] [JIRA] (ASTERISK-26474) res_musiconhold: Crash when scanning files
Joshua Colp (JIRA)
noreply at issues.asterisk.org
Mon Oct 17 08:53:01 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Colp updated ASTERISK-26474:
-----------------------------------
Summary: res_musiconhold: Crash when scanning files (was: res_musiconhold segfault in free)
> res_musiconhold: Crash when scanning files
> ------------------------------------------
>
> Key: ASTERISK-26474
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26474
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_musiconhold
> Affects Versions: 13.11.2, 14.0.2
> Environment: Fedora 23
> Reporter: Ross Beer
> Attachments: backtrace_clean.txt
>
>
> Asterisk crashes in music on hold free when playing from within a queue:
> {noformat}
> #0 0x00007f149f800a28 in raise () at /lib64/libc.so.6
> #1 0x00007f149f80262a in abort () at /lib64/libc.so.6
> #2 0x00007f149f843dea in () at /lib64/libc.so.6
> #3 0x00007f149f84c22a in _int_free () at /lib64/libc.so.6
> #4 0x00007f149f84f78c in free () at /lib64/libc.so.6
> #5 0x00007f1398536ca7 in moh_scan_files (class=0x7f1418003348) at res_musiconhold.c:1099
> {noformat}
> This looks to be related to the option 'cachertclasses=yes' and has been raised before in Asterisk 1.8 under ticket ASTERISK-22083
> Before the segfault, the CLI showed the following:
> {noformat}
> [2016-10-17 08:42:19] WARNING[26321][C-00000147]: res_musiconhold.c:361 ast_moh_files_next: Unable to open file '▒': No such file or directory
> [2016-10-17 08:42:19] WARNING[26331][C-0000014f]: file.c:774 ast_openstream_full: File does not exist in any format
> [2016-10-17 08:42:19] WARNING[26331][C-0000014f]: res_musiconhold.c:361 ast_moh_files_next: Unable to open file '': No such file or directory
> [2016-10-17 08:42:19] WARNING[26321][C-00000147]: file.c:774 ast_openstream_full: File does not exist in any format
> [2016-10-17 08:42:19] WARNING[26321][C-00000147]: res_musiconhold.c:361 ast_moh_files_next: Unable to open file '': No such file or directory
> [2016-10-17 08:42:19] WARNING[26331][C-0000014f]: file.c:774 ast_openstream_full: File does not exist in any format
> [2016-10-17 08:42:19] WARNING[26331][C-0000014f]: res_musiconhold.c:361 ast_moh_files_next: Unable to open file '': No such file or directory
> [2016-10-17 08:42:19] WARNING[26321][C-00000147]: file.c:774 ast_openstream_full: File does not exist in any format
> {noformat}
> I believe that the file scan process did not return cleanly to other threads and therefore they output the above messages. This eventually lead to the crash.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list