Capture Daemon Segfaults using LibVLC RTSP source

Forum for questions and support relating to the 1.27.x releases only.
Locked
jbova
Posts: 2
Joined: Tue Jul 01, 2014 6:42 am

Capture Daemon Segfaults using LibVLC RTSP source

Post by jbova »

When using LibVLC as a source with an IP camera's RTSP path, the capture daemon eventually crashes with a segmentation fault. This has occurred on both a Debian distribution with 1.27 compiled from source, and an Ubuntu distribution with 1.27.0-quantal-1. The backtrace is as follows:

Code: Select all

02:03:17 zmc_m9[1599]: ERR [Got signal 11 (Segmentation fault), crashing]
02:03:17 zmc_m9[1599]: ERR [Signal address is (nil), from 0x4a375e]
02:03:17 zmc_m9[1599]: ERR [Backtrace 0: /usr/local/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x59) [0x4741f9]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0xf210) [0x7f07d051f210]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 2: /usr/local/bin/zmc(_ZN6SocketD1Ev+0x2e) [0x4a375e]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 3: /usr/lib/x86_64-linux-gnu/libgroupsock.so.1(_ZN9GroupsockD0Ev+0x9) [0x7f07ac101009]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 4: /usr/lib/x86_64-linux-gnu/libliveMedia.so.32(_ZN15MediaSubsession10deInitiateEv+0x52) [0x7f07ac3c50f2]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 5: /usr/lib/x86_64-linux-gnu/libliveMedia.so.32(_ZN15MediaSubsessionD1Ev+0x1a) [0x7f07ac3c514a]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 6: /usr/lib/x86_64-linux-gnu/libliveMedia.so.32(_ZN12MediaSessionD1Ev+0x40) [0x7f07ac3c52e0]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 7: /usr/lib/x86_64-linux-gnu/libliveMedia.so.32(_ZN12MediaSessionD0Ev+0x9) [0x7f07ac3c53a9]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 8: /usr/lib/vlc/plugins/access/liblive555_plugin.so(+0x2dad) [0x7f07ac62adad]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 9: /usr/lib/libvlccore.so.7(vlc_module_unload+0x92) [0x7f07c4ebbcc2]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 10: /usr/lib/libvlccore.so.7(+0x3b3ad) [0x7f07c4e7b3ad]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 11: /usr/lib/libvlccore.so.7(+0x467bf) [0x7f07c4e867bf]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 12: /usr/lib/libvlccore.so.7(+0x468d5) [0x7f07c4e868d5]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 13: /usr/lib/libvlccore.so.7(+0x4c21d) [0x7f07c4e8c21d]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 14: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e0e) [0x7f07d0517e0e]]
02:03:17 zmc_m9[1599]: ERR [Backtrace 15: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f07ccfe90fd]]
The following packages are installed:

Code: Select all

ZoneMinder 1.27
ii  liblivemedia-dev                      2:2014.06.28-dmo1              amd64        multimedia RTSP streaming library
ii  liblivemedia32                        2:2014.06.28-dmo1              amd64        multimedia RTSP streaming library
ii  libvlc-dev                            1:2.1.4-dmo3                   amd64        development files for libvlc
ii  libvlc5                               1:2.1.4-dmo3                   amd64        multimedia player and streamer library
ii  libvlccore-dev                        1:2.1.4-dmo3                   amd64        development files for libvlccore
ii  libvlccore7                           1:2.1.4-dmo3                   amd64        base library for VLC and its modules
ii  phonon-backend-vlc:amd64              0.7.1-1                        amd64        Phonon VLC backend
ii  vlc                                   1:2.1.4-dmo3                   amd64        multimedia player and streamer
ii  vlc-data                              1:2.1.4-dmo3                   all          Common data for VLC
ii  vlc-nox                               1:2.1.4-dmo3                   amd64        multimedia player and streamer (without X support)
ii  vlc-plugin-notify                     1:2.1.4-dmo3                   amd64        LibNotify plugin for VLC
ii  vlc-plugin-pulse                      1:2.1.4-dmo3                   amd64        PulseAudio plugin for VLC
The system is as follows:

Code: Select all

Linux oipnvr 3.12-1-amd64 #1 SMP Debian 3.12.6-2 (2013-12-29) x86_64 GNU/Linux
The cameras used are VivoTek IP8332 and Dahua IPC-HDW2100 and IPC-HFW2100 cameras. All are 1.3 MP cameras streaming H.264 at 15 FPS.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Capture Daemon Segfaults using LibVLC RTSP source

Post by linuxsense »

ZM is a bit picky on the versions of libs you have installed prior to building. I have found that the current vlc libs from the videolan nightly repo work well along with this particular version of ffmpeg that I build after building x264: https://dl.dropboxusercontent.com/u/651 ... 688.tar.gz

You might want to grab the current git repo source and build it using the ffmpeg and vlc like I mentioned above. How long does it run before the segfault? What settings are you using on the ZM side?
jbova
Posts: 2
Joined: Tue Jul 01, 2014 6:42 am

Re: Capture Daemon Segfaults using LibVLC RTSP source

Post by jbova »

Thank you. I'm going to try building with the latest libraries as you suggested. It segfaults after 3 hours, and prior to 24 hours.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: Capture Daemon Segfaults using LibVLC RTSP source

Post by linuxsense »

You might want to take a crack at building off the latest git repo of ZoneMinder. Its very good and I believe nearing the 1.28 release. Best ZM I have ever used by a wide margin. If you do go that route I would suggest starting with a fresh 14.04 install of a minimal server, I can supply a list of the packages you need as well as the stuff that is best built from source like ffmpeg. I am sure it can be done a few ways but my method works extremely well.
Locked