[rtmpdump] Bug: Segmentation fault due to infinite recursion

Omer Enbar omer at liveu.tv
Tue Jun 12 11:13:33 CEST 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20120612/e9ce5ccf/attachment.html>


More information about the rtmpdump mailing list