Capture crash on 1.36.1 (CentOS 8)

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
don-code
Posts: 3
Joined: Fri May 28, 2021 8:40 pm

Capture crash on 1.36.1 (CentOS 8)

Post by don-code »

I just upgraded to ZoneMinder 1.36.1 on a CentOS 8 box and am having issues getting capture to run on any cameras. Each gives the following backtrace:

Code: Select all

[root@localhost yum.repos.d]# uname -a
Linux localhost.localdomain 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost yum.repos.d]# zmc --version
1.36.1

Code: Select all

May 28 16:22:22 localhost.localdomain zmc_m1[5033]: INF [zmc_m1] [Starting Capture version 1.36.1]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Got signal 6 (Aborted), crashing]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Signal address is 0x30000013a9, from 0x7f6c8c1487ff]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 0: /usr/bin/zmc(+0xd002a) [0x55f74e37602a]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 1: /lib64/libpthread.so.0(+0x12b20) [0x7f6c8f89fb20]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 2: /lib64/libc.so.6(gsignal+0x10f) [0x7f6c8c1487ff]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 3: /lib64/libc.so.6(abort+0x127) [0x7f6c8c132c35]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 4: /usr/bin/zmc(+0x54418) [0x55f74e2fa418]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 5: /usr/bin/zmc(+0xb9ec7) [0x55f74e35fec7]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 6: /usr/bin/zmc(+0xbb358) [0x55f74e361358]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 7: /lib64/libstdc++.so.6(+0xc2ba3) [0x7f6c8cb30ba3]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 8: /lib64/libpthread.so.0(+0x814a) [0x7f6c8f89514a]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: ERR [zmc_m1] [Backtrace 9: /lib64/libc.so.6(clone+0x43) [0x7f6c8c20df23]]
May 28 16:22:23 localhost.localdomain zmc_m1[5033]: INF [zmc_m1] [Backtrace complete, please execute the following command for more information: addr2line -e /usr/bin/zmc 0x55f74e37602a 0x7f6c8f89fb20 0x7f6c8c1487ff 0x7f6c8c132c35 0x55f74e2fa418 0x55f74e35fec7 0x55f74e361358 0x7f6c8cb30ba3 0x7f6c8f89514a 0x7f6c8c20df23]
The packages I have installed (from RPM Fusion) are as follows. I didn't have the debug packages installed at the time the issue started.

Code: Select all

[root@localhost yum.repos.d]# rpm -qa | grep zoneminder
zoneminder-common-debuginfo-1.36.1-1.el8.x86_64
zoneminder-1.36.1-1.el8.x86_64
zoneminder-common-1.36.1-1.el8.x86_64
zoneminder-httpd-1.36.1-1.el8.x86_64
zoneminder-debugsource-1.36.1-1.el8.x86_64
Happy to help debug in any way I can. have two other CentOS 8 boxes that I have not yet upgraded, and I can walk through the upgrade process on one of them to help debug, provided I come up with some restore process for them first. The machine with the issue is not remotely accessible, so there may be a few days between my access to it.
don-code
Posts: 3
Joined: Fri May 28, 2021 8:40 pm

Re: Capture crash on 1.36.1 (CentOS 8)

Post by don-code »

I have upgraded to 1.36.3 and see the same crash.

Code: Select all

Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Got signal 6 (Aborted), crashing]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Signal address is 0x30001107c1, from 0x7f8a57ded37f]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 0: /usr/bin/zmc(+0xd002a) [0x56114a2e402a]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 1: /lib64/libpthread.so.0(+0x12b20) [0x7f8a5b546b20]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 2: /lib64/libc.so.6(gsignal+0x10f) [0x7f8a57ded37f]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 3: /lib64/libc.so.6(abort+0x127) [0x7f8a57dd7db5]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 4: /usr/bin/zmc(+0x54418) [0x56114a268418]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 5: /usr/bin/zmc(+0xb9ec7) [0x56114a2cdec7]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 6: /usr/bin/zmc(+0xbb358) [0x56114a2cf358]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 7: /lib64/libstdc++.so.6(+0xc2ba3) [0x7f8a587d7ba3]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 8: /lib64/libpthread.so.0(+0x814a) [0x7f8a5b53c14a]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: ERR [zmc_m3] [Backtrace 9: /lib64/libc.so.6(clone+0x43) [0x7f8a57eb2dc3]]
Jun 04 23:54:29 localhost.localdomain zmc_m3[1116097]: INF [zmc_m3] [Backtrace complete, please execute the following command for mor...
I also updated another host on CentOS 8 and am not seeing the crash. Unlike this host, the new host I upgraded is remotely accessible.

I am additionally going to try a fresh install of Zoneminder on a CentOS 8 VM and see if this works. If it does, I'll take a database dump the next time I'm at the isolated host, restore it, and see if I can reproduce.
don-code
Posts: 3
Joined: Fri May 28, 2021 8:40 pm

Re: Capture crash on 1.36.1 (CentOS 8)

Post by don-code »

I took a backup of the Zoneminder database and determined two things from it:

1. I can't reproduce the crash if the cameras are unavailable - the capture daemon exits gracefully in this situation. (This limits how effectively I can test off-site, since I can't also bring the cameras with me.)
2. If I restore the database to another host with a clean install of Zoneminder 1.36.3 on CentOS 8, I see the same crash.

1.36.4 hasn't yet hit the RPM Fusion testing repo, and I didn't have time to manually install during my last visit, so I will try again whenever it's pushed there.
pszonem
Posts: 4
Joined: Tue Sep 14, 2021 8:20 pm

Re: Capture crash on 1.36.1 (CentOS 8)

Post by pszonem »

I am facing the same issue. Centos7 clean install. My previous installation is gone due to HDD failure. I don't want to use backup, thus install from scratch. So tried to use Monitor/Nodect for my cameras, but no success :(
I did use RPMFusion repo.

Code: Select all

zmc 1.36.5
CentOS Linux release 7.9.2009 (Core)
Updated
log:

Code: Select all

Sep 14 22:46:18 cent02 zmdc[3397]: INF [Starting pending process, zmc -m 2]
Sep 14 22:46:18 cent02 zmdc[3397]: INF ['zmc -m 2' starting at 21/09/14 22:46:18, pid = 6270]
Sep 14 22:46:18 cent02 zmdc[6270]: INF ['zmc -m 2' started at 21/09/14 22:46:18]
Sep 14 22:46:18 cent02 zmc_m2[6270]: INF [zmc_m2] [Starting Capture version 1.36.5]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Got signal 6 (Aborted), crashing]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Signal address is 0x300000187e, from 0x7f597891e387]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 0: /usr/bin/zmc() [0x4bbedc]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 1: /lib64/libpthread.so.0(+0xf630) [0x7f597c0df630]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 2: /lib64/libc.so.6(gsignal+0x37) [0x7f597891e387]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 3: /lib64/libc.so.6(abort+0x148) [0x7f597891fa78]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 4: /lib64/libc.so.6(+0x78f67) [0x7f5978960f67]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 5: /lib64/libc.so.6(+0x7f474) [0x7f5978967474]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 6: /lib64/libc.so.6(+0x816a4) [0x7f59789696a4]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 7: /usr/bin/zmc() [0x49eccc]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 8: /usr/bin/zmc() [0x49fdb6]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 9: /lib64/libstdc++.so.6(+0xb5330) [0x7f5979283330]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 10: /lib64/libpthread.so.0(+0x7ea5) [0x7f597c0d7ea5]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: ERR [zmc_m2] [Backtrace 11: /lib64/libc.so.6(clone+0x6d) [0x7f59789e69fd]]
Sep 14 22:46:18 cent02 zmc_m2[6270]: INF [zmc_m2] [Backtrace complete, please execute the following command for more information: addr2line -e /usr/bin/zmc 0x4bbedc 0x7f597c0df630 0x7f597891e387 0x7f597891fa78 0x7f5978960f67 0x7f5978967474 0x7f59789696a4 0x49eccc 0x49fdb6 0x7f5979283330 0x7f597c0d7ea5 0x7f59789e69fd]
Sep 14 22:46:18 cent02 zmdc[3397]: ERR ['zmc -m 2' exited abnormally, exit status 6]
addr2line -e /usr/bin/zmc 0x4bbedc 0x7f597c0df630 0x7f597891e387 0x7f597891fa78 0x7f5978960f67 0x7f5978967474 0x7f59789696a4 0x49eccc 0x49fdb6 0x7f5979283330 0x7f597c0d7ea5 0x7f59789e69fd:

Code: Select all

??:?
??:0
??:0
??:0
??:0
??:0
??:0
??:?
??:?
??:0
??:0
??:0
pszonem
Posts: 4
Joined: Tue Sep 14, 2021 8:20 pm

Re: Capture crash on 1.36.1 (CentOS 8)

Post by pszonem »

Same issue with 'zoneminder-1.37.1 ' from 'https://zmrepo.zoneminder.com/el/7/x86_64/'. Don't have a time to fight with Docker, thus used my backup and put back 1.34-22 - which works like a charm!
pszonem
Posts: 4
Joined: Tue Sep 14, 2021 8:20 pm

Re: Capture crash on 1.36.1 (CentOS 8)

Post by pszonem »

No one? I accidentally updated to 1.36.10 - same issue. It is really so rare???
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Capture crash on 1.36.1 (CentOS 8)

Post by iconnor »

I'm running 1.36.10 and 11 on a ton of centos 7 boxes. No problems.

Perhaps if you gave us some information, llke what type of monitors, etc.

Perhaps some debug logs leading up to the crash.

We are not psychic.
pszonem
Posts: 4
Joined: Tue Sep 14, 2021 8:20 pm

Re: Capture crash on 1.36.1 (CentOS 8)

Post by pszonem »

iconnor wrote: Tue Nov 23, 2021 7:05 pm I'm running 1.36.10 and 11 on a ton of centos 7 boxes. No problems.

Perhaps if you gave us some information, llke what type of monitors, etc.

Perhaps some debug logs leading up to the crash.

We are not psychic.
Hmm, sad you didn't reply few months ago. Maybe original reporter will appreciate even current effort. Log (incl trace) was already cited as well...
Un-fortunately I started from scratch with 1.36.10-1 from rpmfusion; with Maria from 'base' repo on Centos7 (same installation - didn't reinstall).Using Monitors/Modect with RTSP for RLC IP cameras. They worked like a charm till that update... ..and now are working as well on fresh installation.
Post Reply