[rtmpdump] Bug: Segmentation fault due to infinite recursion

NhJm nhjm449 at gmail.com
Wed Jun 13 05:58:47 CEST 2012


http://lists.mplayerhq.hu/pipermail/rtmpdump/2012-May/001988.html

On Tue, Jun 12, 2012 at 4:13 AM, Omer Enbar <omer at liveu.tv> wrote:

> Hello all,
>
> I've been using ffmpeg + librtmp for a while, and I've encountered a bug
> where the network gets disconnected and then reconnected, you get a
> segmentation fault after:
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> [h264 @ 0x3b124e0] error while decoding MB 23 14, bytestream (-4)
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> [h264 @ 0x3b124e0] concealing 426 DC, 426 AC, 426 MV errors
> WriteN, RTMP send error 32 (136 bytes)
> WriteN, RTMP send error 32 (136 bytes)
> [ This * 1000 ]
> Segmentation fault
>
>
> This seems to be caused by an infinite recursion (also present in the
> latest 2.4).
> WriteN->RTMP_Close->SendFCUnPublish->RTMP_SendPacket->WriteN->RTMP_Close
>
> Right now, I just patched it on my build to not call RTMP_Close in WriteN,
> but it's probably not a good solution.
>
> Regards,
> Omer Enbar.
>
>
> _______________________________________________
> rtmpdump mailing list
> rtmpdump at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120612/6c3810bc/attachment.html>


More information about the rtmpdump mailing list