Page 1 of 1

zms segfault on ubuntu 13.10 64-bit

Posted: Fri Feb 21, 2014 9:17 pm
by spyd4r
This is on a VM, with 2 GB RAM and 2 CPU. 1 IP Camera connected

Code: Select all

zoneminder                                    1.26.5-raring               amd64
the following sysctl.conf tweak is in place, tried different values.. no difference

Code: Select all

kernel.shmall = 167772160
kernel.shmmax = 536870912
whenever trying to view the camera stream, it dumps this segfault

Code: Select all

Feb 21 16:10:44 ubuntu zms[2615]: INF [Authenticated user 'admin']
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Got signal 11 (Segmentation fault), crashing]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Signal address is 0x10, from 0x7f6fa9d2e578]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 0: /usr/lib/cgi-bin/nph-zms() [0x470250]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0xfbb0) [0x7f6fa8475bb0]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 2: /usr/lib/x86_64-linux-gnu/libavformat.so.53(avio_write+0x18) [0x7f6fa9d2e578]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 3: /usr/lib/x86_64-linux-gnu/libavformat.so.53(+0xb0132) [0x7f6fa9db2132]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 4: /usr/lib/x86_64-linux-gnu/libavformat.so.53(avformat_write_header+0x2b6) [0x7f6fa9dbc766]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 5: /usr/lib/cgi-bin/nph-zms() [0x4524eb]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 6: /usr/lib/cgi-bin/nph-zms() [0x452b58]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 7: /usr/lib/cgi-bin/nph-zms() [0x44cef5]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 8: /usr/lib/cgi-bin/nph-zms() [0x44e1d3]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 9: /usr/lib/cgi-bin/nph-zms() [0x407642]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 10: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f6fa7114de5]]
Feb 21 16:10:44 ubuntu zms[2615]: ERR [Backtrace 11: /usr/lib/cgi-bin/nph-zms() [0x406709]]
Feb 21 16:10:44 ubuntu zms[2615]: INF [Backtrace complete, please execute the following command for more information]
Feb 21 16:10:44 ubuntu zms[2615]: INF [addr2line -e /usr/lib/cgi-bin/nph-zms 0x470250 0x7f6fa8475bb0 0x7f6fa9d2e578 0x7f6fa9db2132 0x7f6fa9dbc766 0x4524eb 0x452b58 0x44cef5 0x44e1d3 0x407642 0x7f6fa7114de5 0x406709]
which afterward leaves you with the following in the logs

Code: Select all

Feb 21 16:10:46 ubuntu web_php[2607]: ERR [socket_sendto( /tmp/zm/zms-231077s.sock ) failed: Connection refused]
Feb 21 16:10:46 ubuntu web_php[2607]: ERR [getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-231077s.sock ) failed: Connection refused - checkStreamForErrors()]
been going at this a few days now, any help would be appreciated.

Re: zms segfault on ubuntu 13.10 64-bit

Posted: Wed Mar 26, 2014 6:23 am
by elbek
Hi.,

Im not sure if this will fix your problem but check at http://www.zoneminder.com/wiki/index.ph ... on_changes

In the last part says:

CGI is not enabled in Ubuntu 13.10 by default. Enable it this way: sudo a2enmod cgi

This fixed problems for me in Debian testing and ZM 1.26.5

Hope this help you.