[asterisk-bugs] [JIRA] (ASTERISK-24914) Division by zero in file.c when playback of voicemail with video as h264

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Mar 27 09:59:34 CDT 2015


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

Rusty Newton commented on ASTERISK-24914:
-----------------------------------------

Thanks for the log. We don't want you to post any private information. If you can sanitize the relevant files and then post the full thing then that works.

The log itself may be enough, but we are not sure.

> Division by zero in file.c when playback of voicemail with video as h264
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-24914
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24914
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/PBX
>    Affects Versions: 11.16.0, 13.2.0
>         Environment: Asterisk SVN-branch-13-r433338M 
>            Reporter: Marcello Ceschia
>            Assignee: Marcello Ceschia
>         Attachments: voicemail_with_video_full.log
>
>
> 1. recording voicemail with video as h264 
> 2. playback voicemail
> {code}
> Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
> Program terminated with signal SIGFPE, Arithmetic exception.
> #0  0x08157a3b in ast_readvideo_callback (s=s at entry=0xb2bad704) at file.c:975
> 975                     ast_channel_vstreamid_set(s->owner, ast_sched_add(ast_channel_sched(s->owner), whennext / (ast_format_get_sample_rate(s->fmt->format) / 1000), ast_fsread_video, s));
> print whennext
> $2 = 533
> (gdb) print s->fmt->format->codec->sample_rate
> $4 = 0
> (gdb) print *s->fmt->format
> $5 = {name = 0x8266457 "h264", codec = 0x98fbd8c, attribute_data = 0x0, interface = 0x0}
> (gdb) print *s->fmt->format->codec
> $6 = {id = 34, name = 0x8266457 "h264", description = 0x826645c "H.264 video", type = AST_MEDIA_TYPE_VIDEO, sample_rate = 0, minimum_ms = 0, maximum_ms = 0, default_ms = 0, minimum_bytes = 0, samples_count = 0x0, get_length = 0x0, smooth = 0, mod = 0x0}
> {code}
> as you can see:
> whennext / (ast_format_get_sample_rate(s->fmt->format) / 1000) == (533 / (0 / 1000))



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



More information about the asterisk-bugs mailing list