[Live-devel] Segmentation fault on streaming server with several unicast clients

Bruno Filipe Basilio Bruno.Basilio at brisa.pt
Wed Aug 31 12:46:23 PDT 2016


Hi!

Following up this pending discussion:
http://lists.live555.com/pipermail/live-devel/2016-March/019977.html

> Another thing I suggest is running your code under ?valgrind?.  If - as I suspect - the code is trying to access an object that has recently been deleted, then ?valgrind? may be able to tell you specifically where in the code the object was deleted.
I have resume the previous analysis but I'm still trying to workaroud the Valgring overhead when running the full system.

In between runs I've caught a valgrind alert when closing VLC players, after repeatedly connecting a pair of VLC clients to different ondemand stream.
It doesn't crash but seems to be the same conditions when the segmentation fault is observed after some days.

Based on this observation I've modified a test program in live555 and the problem seems to be observable when multiple ondemand subssession and one multicast are registered.

DeviceSource -> StreamReplicator
  + -> multicast subsession: H264VideoStreamDiscreteFramer -> MPEG2TransportStreamFromESSource -> SimpleRTPSink
  + -> ondemand subsession 1:  H264VideoStreamDiscreteFramer -> MPEG2TransportStreamFromESSource -> SimpleRTPSink
  + -> ondemand subsession 2:  H264VideoStreamDiscreteFramer -> MPEG2TransportStreamFromESSource -> SimpleRTPSink

I've only tested this with an H.264 ES live source encoder, I think it could be replicated with a lengthy file source.
See valgrind output and RTSPServer debug output in the file attached to this message.

Any suggestion to direct this analysis would be much appreciated.

Best regards,
Bruno Basilio


Bruno Filipe Basílio
Departamento de Investigação, Desenvolvimento e Inovação

Tel: (+351) 214233436

http://www.brisainovacao.pt







--------------------------------------------------------------------------------

Declaração:
A informação contida nesta mensagem, e os ficheiros anexos, é privilegiada e confidencial, destinando-se exclusivamente ao(s) destinatário(s).Se não é o destinatário (ou o responsável pela sua entrega ao destinatário) e recebeu a mesma por engano, fica notificado que é estritamente proibido reproduzir, guardar ou distribuir toda ou qualquer parte desta mensagem e ficheiros anexos. Por favor reencaminhe a mensagem para o responsável pelo seu envio ou contacte-nos por telefone e elimine a mensagem e ficheiros anexos do seu computador, sem os reproduzir.

Disclaimer:
The information contained in this message, and any files attached, is privileged and confidential, and intended exclusively for the included addresses. If you are not the intended recipient (or the person responsible for delivering to the intended recipient) and received this message by mistake, be aware that copy, storage, distribution or any other use of all or part of this message and the files attached is strictly prohibited. Please notify the sender by reply e-mail or contact us by telephone and delete this message and the files attached, without retaining a copy.

--------------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind_20160831_1923.log.gz
Type: application/x-gzip
Size: 12050 bytes
Desc: valgrind_20160831_1923.log.gz
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20160831/b483643e/attachment.bin>


More information about the live-devel mailing list