New CentOS 7.1 package install 1.28.109

Forum for questions and support relating to the 1.28.x releases only.
Locked
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

New CentOS 7.1 package install 1.28.109

Post by asker »

Hi, I followed the instructions at zmrepo and installed the 109 package.
I also configured everything as per /usr/share/doc/zoneminder-1.28.109/README.Centos7 for a new install.

It looks like CentOS enables SSL by default. I am able to get to the portal and configure monitors, but streaming does not work.

I currently have only 1 monitor - when I see live view

Code: Select all

root@localhost shm]# ls -l /dev/shm
total 180004
-rw------- 1 apache apache 184321760 Dec  9 19:06 zm.mmap.1
But /var/log/messages keeps saying WAR: waiting for capture daemon

Code: Select all

Dec  9 19:45:46 localhost zmdc[4838]: INF ['zmwatch.pl' started at 15/12/09 19:45:46]
Dec  9 19:45:47 localhost systemd: Started ZoneMinder CCTV recording and security system.
Dec  9 19:45:47 localhost zmwatch[4838]: INF [Watchdog starting]
Dec  9 19:45:47 localhost zmwatch[4838]: INF [Watchdog pausing for 30 seconds]
Dec  9 19:45:51 localhost zmdc[4753]: INF [Starting pending process, zma -m 1]
Dec  9 19:45:51 localhost zmdc[4753]: INF ['zma -m 1' starting at 15/12/09 19:45:51, pid = 4861]
Dec  9 19:45:51 localhost zmdc[4861]: INF ['zma -m 1' started at 15/12/09 19:45:51]
Dec  9 19:45:51 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:52 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:53 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:54 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:55 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:56 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:57 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
Dec  9 19:45:58 localhost zma_m1[4861]: WAR [Waiting for capture daemon]
D
And here is what ssl_error logs show when I click on live view . Note the malloc errors

Code: Select all

ews/monitor.php on line 46, referer: https://192.168.1.223/zm/index.php?view=monitor
[Wed Dec 09 12:35:04.383458 2015] [:error] [pid 13025] [client 192.168.1.6:58176] PHP Notice:  Undefined index: object in /usr/share/zoneminder/www/includes/actions.php on line 769, referer: https://192.168.1.223/zm/index.php
[Wed Dec 09 12:35:29.965016 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: *** Error in `/usr/libexec/zoneminder/cgi-bin/nph-zms': malloc(): memory corruption: 0x00007f29307a7e50 ***, referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965253 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: ======= Backtrace: =========, referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965322 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /lib64/libc.so.6(+0x7ebbc)[0x7f29263e3bbc], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965361 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /lib64/libc.so.6(__libc_malloc+0x5c)[0x7f29263e518c], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965492 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /lib64/libstdc++.so.6(_Znwm+0x1d)[0x7f2926c9d0ad], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965531 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /lib64/libstdc++.so.6(_Znam+0x9)[0x7f2926c9d1a9], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965596 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /usr/libexec/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x103c)[0x7f292a89bbac], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965642 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /usr/libexec/zoneminder/cgi-bin/nph-zms(main+0x9f6)[0x7f292a85bff6], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965675 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f2926386af5], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965703 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: /usr/libexec/zoneminder/cgi-bin/nph-zms(+0x1fcf9)[0x7f292a85ccf9], referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965715 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: ======= Memory map: ========, referer: https://192.168.1.223/zm/index.php?view=watch&mid=1
[Wed Dec 09 12:35:29.965773 2015] [cgi:error] [pid 12235] [client 192.168.1.6:58184] AH01215: 7f2905037000-7f2910000000 rw-s 00000000 00:11 36407                      /dev/shm/zm.mmap.1, referer: https://192.168.1.223/zm/index.php?view=watch&mid=1

Any thoughts?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New CentOS 7.1 package install 1.28.109

Post by knight-of-ni »

Yep, you got bugz. Misery loves company.

The good news is it is fixed in master:
https://github.com/ZoneMinder/ZoneMinder/issues/1153
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: New CentOS 7.1 package install 1.28.109

Post by asker »

but this same camera works on ubuntu. You sure its this?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New CentOS 7.1 package install 1.28.109

Post by knight-of-ni »

I'm positive.
/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x103c)[0x7f292a89bbac]
You and I have already been down this path. Recall when this first appeared and I was asking you about mjpeg cameras?
The problem has always existed, but due to the way certain pointers were held in memory it only started manifesting itself in builds newer than 1.28.1 and only on CentOS. The problem was never camera specific. If you read through the link I posted, you'll see where I came to that conclusion.

Also notice where I documented, turning on debug, makes the problem go away. Crazy. I know.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked