[asterisk-bugs] [JIRA] (ASTERISK-21775) FPE during MOH playback

Michael L. Young (JIRA) noreply at issues.asterisk.org
Tue Aug 27 17:03:03 CDT 2013


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

Michael L. Young commented on ASTERISK-21775:
---------------------------------------------

James,

Thanks for reporting back.

I think I may see the problem now.  There appears to be a race condition.

Thread 1 runs ast_moh_files_next and when it checks class->total_files, it is not set to 0 yet.  Thread 2 is running moh_scan_files and sets class->total_files = 0 and then, in Thread 1, you hit the line "state->pos %= state->class->total_files;" where class->total_files is now 0.

That is my theory on what is happening.
                
> 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: James Sharp
>            Assignee: Michael L. Young
>         Attachments: asterisk-21775-ref-mohclass_1.8.diff, backtrace-26Aug.txt, backtrace.txt
>
>
> 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