No subject


Fri Mar 15 02:20:01 CDT 2013


#0  0x00002b57e084e99d in moh_files_readframe (chan=0x10040f38, data=<value optimized out>, len=<value optimized out>,
    samples=<value optimized out>) at res_musiconhold.c:309
309                             state->pos = ast_random() % state->class->total_files;


Some digging into the strucures showed that class->total_files is 0, thus triggering the FPE when trying to modulo divide by zero.

(gdb) print ((struct mohclass *)((struct ast_channel *) 0x10040f38)->musicclass)->total_files
$8 = 0


                
> FPE during MOH playback
> -----------------------
>
>                 Key: ASTERISK-21775
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21775
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: 1.8.21.0
>         Environment: Linux pbx 2.6.18-348.1.1.el5 #1 SMP Tue Jan 22 16:19:19 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: jpsharp
>
> Asterisk has dropped several calls and triage found core files in the MOH directory.  I will attach the backtrace and diagnostics.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list