"Got signal 11 (Segmentation fault), crashing"

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

"Got signal 11 (Segmentation fault), crashing"

Post by kitkat »

I was using 1.32.2 for months, but after changing to 1.32.3 I keep getting this in the log every few minutes...

Code: Select all

2019-10-10 15:36:56	zmdc		11894	ERR	'zma -m 1' exited abnormally, exit status 11	zmdc.pl	
2019-10-10 15:36:56	zma_m1		12122	INF	addr2line -e /usr/bin/zma 0x561a5ceefde2 0x7faa013b75f0 0x7faa01c9dc42 0x7faa01ca974a 0x7faa01c9d375 0x561a5ce8c225 0x561a5ce8c7a0 0x561a5cf37d88 0x561a5ce9dd78 0x561a5cea11b6 0x561a5ce6d26c 0x7fa9fd236505 0x561a5ce6dff7	zm_signal.cpp	110
2019-10-10 15:36:56	zma_m1		12122	INF	Backtrace complete, please execute the following command for more information	zm_signal.cpp	109
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 12: /usr/bin/zma(+0x24ff7) [0x561a5ce6dff7]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 11: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa9fd236505]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 10: /usr/bin/zma(main+0x3ec) [0x561a5ce6d26c]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 9: /usr/bin/zma(_ZN7Monitor7AnalyseEv+0x1846) [0x561a5cea11b6]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 8: /usr/bin/zma(_ZN7Monitor12DetectMotionERK5ImageRSt3setISsSt4lessISsESaISsEE+0x228) [0x561a5ce9dd78]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 7: /usr/bin/zma(_ZN4Zone11CheckAlarmsEPK5Image+0x1c8) [0x561a5cf37d88]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 6: /usr/bin/zma(_ZNK5Image9WriteJpegEPKc+0x10) [0x561a5ce8c7a0]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 5: /usr/bin/zma(_ZNK5Image9WriteJpegEPKci7timeval+0x155) [0x561a5ce8c225]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 4: /lib64/libjpeg.so.62(jpeg_write_scanlines+0xa5) [0x7faa01c9d375]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 3: /lib64/libjpeg.so.62(+0x1074a) [0x7faa01ca974a]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 2: /lib64/libjpeg.so.62(+0x4c42) [0x7faa01c9dc42]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 1: /lib64/libpthread.so.0(+0xf5f0) [0x7faa013b75f0]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Backtrace 0: /usr/bin/zma(_Z14zm_die_handleriP9siginfo_tPv+0x72) [0x561a5ceefde2]	zm_signal.cpp	102
2019-10-10 15:36:56	zma_m1		12122	ERR	Signal address is (nil), from 0x7faa01c9dc42	zm_signal.cpp	81
2019-10-10 15:36:56	zma_m1		12122	ERR	Got signal 11 (Segmentation fault), crashing
I've tried all the suggestions, and running the suggested command gives...

Code: Select all

addr2line -e /usr/bin/zma 0x55b978a23de2 0x7fa2327335f0 0x7fa233019c42 0x7fa23302574a 0x7fa233019375 0x55b9789c0225 0x55b9789c07a0 0x55b978a6bd88 0x55b9789d1d78 0x55b9789d51b6 0x55b9789a126c 0x7fa22e5b2505 0x55b9789a1ff7
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
??:0
Clean CentOS 7 install, with ZM installed from the RPMFusion.

Is there a way to downgrade (yum won't do it) or get hold of an RPM for 1.32.2?
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: "Got signal 11 (Segmentation fault), crashing"

Post by kitkat »

I grabbed the 1.32.2 source code, built an RPM, and installed it (after 'yum autoremove zoneminder' on the existing install).

I'd previously backed up the old 1.32.2 database before upgrading and as I wasn't sure how downgrading from 1.32.3 would work out I renamed the 1.32.3 version and created a new 1.32.2 one, importing the Monitors, Zones and Config tables from the backup.

The errors have gone away, and the CPU and disk activity have also dropped back to pre-upgrade levels.
User avatar
iconnor
Posts: 2882
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: "Got signal 11 (Segmentation fault), crashing"

Post by iconnor »

Great and now you have none of the fixes that are in 1.32.3.

If only someone was still developing ZM and there were more recent versions, with more fixes/features in them....
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: "Got signal 11 (Segmentation fault), crashing"

Post by kitkat »

iconnor wrote: Sat Oct 12, 2019 3:23 pm Great and now you have none of the fixes that are in 1.32.3.
Yeah, I know, but I couldn't fix the crashes otherwise, however I played with the options :(

The CPU usage and disk activity were hugely increased with 1.32.3 as well, which was mostly down to one of the ZMA processes, but changing the monitor options didn't seem to make much difference there either.

I'm no coder these days, other than a bit of shell scripting and PHP now and again, so the odds on me fixing it any other way were probably close to zero :(
Post Reply