Segmentation Faults on motion detection.

Current Development version likely to have breaking changes
Post Reply
Droid
Posts: 5
Joined: Thu May 26, 2022 9:25 pm

Segmentation Faults on motion detection.

Post by Droid »

When a motion event is activated, I get the following crash. It fills up the log files and eventually run out of disk space.

Version: 1.37.62 - Updated via APT today.

Code: Select all

uname -a
Linux cctv 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

07/08/24 10:33:51.707268 zmc_m1[9527].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
07/08/24 10:33:51.707406 zmc_m1[9527].ERR-zm_signal.cpp/82 [Signal address is 0x55ff96d3f, from 0x7f31e32d64cb]
07/08/24 10:33:51.707897 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 0: /usr/bin/zmc(+0x8a2b2) [0x55ff94f1f2b2]]
07/08/24 10:33:51.707925 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f31e208d520]]
07/08/24 10:33:51.707934 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 2: /lib/x86_64-linux-gnu/libavutil.so.56(av_buffer_ref+0x2b) [0x7f31e32d64cb]]
07/08/24 10:33:51.707941 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 3: /lib/x86_64-linux-gnu/libavcodec.so.58(av_packet_ref+0x44) [0x7f31e37fa784]]
07/08/24 10:33:51.707947 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 4: /usr/bin/zmc(+0x15888b) [0x55ff94fed88b]]
07/08/24 10:33:51.707954 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 5: /usr/bin/zmc(+0x10ab1f) [0x55ff94f9fb1f]]
07/08/24 10:33:51.707960 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 6: /usr/bin/zmc(+0x112e05) [0x55ff94fa7e05]]
07/08/24 10:33:51.707983 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f31e2457253]]
07/08/24 10:33:51.707989 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 8: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f31e20dfac3]]
07/08/24 10:33:51.707995 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f31e2171850]]
07/08/24 10:33:51.708001 zmc_m1[9527].ERR-zm_signal.cpp/127 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/08/24 10:33:51.708007 zmc_m1[9527].ERR-zm_signal.cpp/128 [and execute the following command for more information:]
07/08/24 10:33:51.708013 zmc_m1[9527].ERR-zm_signal.cpp/129 [addr2line -Cfip -e /usr/bin/zmc 0x8a2b2 0x15888b 0x10ab1f 0x112e05]
07/08/24 10:33:51.708031 zmc_m1[9527].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
07/08/24 10:33:51.708041 zmc_m1[9527].ERR-zm_signal.cpp/82 [Signal address is 0x55ff96d3f, from 0x7f31e32d64cb]
07/08/24 10:33:51.708266 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 0: /usr/bin/zmc(+0x8a2b2) [0x55ff94f1f2b2]]
07/08/24 10:33:51.708275 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f31e208d520]]
07/08/24 10:33:51.708281 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 2: /lib/x86_64-linux-gnu/libavutil.so.56(av_buffer_ref+0x2b) [0x7f31e32d64cb]]
07/08/24 10:33:51.708288 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 3: /lib/x86_64-linux-gnu/libavcodec.so.58(av_packet_ref+0x44) [0x7f31e37fa784]]
07/08/24 10:33:51.708295 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 4: /usr/bin/zmc(+0x15888b) [0x55ff94fed88b]]
07/08/24 10:33:51.708302 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 5: /usr/bin/zmc(+0x10ab1f) [0x55ff94f9fb1f]]
07/08/24 10:33:51.708308 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 6: /usr/bin/zmc(+0x112e05) [0x55ff94fa7e05]]
07/08/24 10:33:51.708314 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f31e2457253]]
07/08/24 10:33:51.708320 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 8: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f31e20dfac3]]
07/08/24 10:33:51.708326 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f31e2171850]]
07/08/24 10:33:51.708332 zmc_m1[9527].ERR-zm_signal.cpp/127 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/08/24 10:33:51.708338 zmc_m1[9527].ERR-zm_signal.cpp/128 [and execute the following command for more information:]
07/08/24 10:33:51.708344 zmc_m1[9527].ERR-zm_signal.cpp/129 [addr2line -Cfip -e /usr/bin/zmc 0x8a2b2 0x15888b 0x10ab1f 0x112e05]
07/08/24 10:33:51.708359 zmc_m1[9527].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
07/08/24 10:33:51.708368 zmc_m1[9527].ERR-zm_signal.cpp/82 [Signal address is 0x55ff96d3f, from 0x7f31e32d64cb]
07/08/24 10:33:51.708586 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 0: /usr/bin/zmc(+0x8a2b2) [0x55ff94f1f2b2]]
07/08/24 10:33:51.708654 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f31e208d520]]
07/08/24 10:33:51.708661 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 2: /lib/x86_64-linux-gnu/libavutil.so.56(av_buffer_ref+0x2b) [0x7f31e32d64cb]]
07/08/24 10:33:51.708668 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 3: /lib/x86_64-linux-gnu/libavcodec.so.58(av_packet_ref+0x44) [0x7f31e37fa784]]
07/08/24 10:33:51.708674 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 4: /usr/bin/zmc(+0x15888b) [0x55ff94fed88b]]
07/08/24 10:33:51.708681 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 5: /usr/bin/zmc(+0x10ab1f) [0x55ff94f9fb1f]]
07/08/24 10:33:51.708688 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 6: /usr/bin/zmc(+0x112e05) [0x55ff94fa7e05]]
07/08/24 10:33:51.708694 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f31e2457253]]
07/08/24 10:33:51.708700 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 8: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f31e20dfac3]]
07/08/24 10:33:51.708706 zmc_m1[9527].ERR-zm_signal.cpp/108 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f31e2171850]]
07/08/24 10:33:51.708712 zmc_m1[9527].ERR-zm_signal.cpp/127 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/08/24 10:33:51.708717 zmc_m1[9527].ERR-zm_signal.cpp/128 [and execute the following command for more information:]
07/08/24 10:33:51.708723 zmc_m1[9527].ERR-zm_signal.cpp/129 [addr2line -Cfip -e /usr/bin/zmc 0x8a2b2 0x15888b 0x10ab1f 0x112e05]
Installing debug symbols and running the suggested command gives the following.

Code: Select all

addr2line -Cfip -e /usr/bin/zmc 0x8a2b2 0x15888b 0x10ab1f 0x112e05
addr2line: DWARF error: unable to read alt ref 10615
addr2line: DWARF error: unable to read alt ref 49443
addr2line: DWARF error: could not find variable specification at offset 0xb79a
addr2line: DWARF error: could not find variable specification at offset 0xe85
addr2line: DWARF error: unable to read alt ref 254220
zm_die_handler(int, siginfo_t*, void*) at ??:?
addr2line: DWARF error: unable to read alt ref 1166183
addr2line: DWARF error: could not find variable specification at offset 0xe617c
addr2line: DWARF error: could not find variable specification at offset 0x102f6
addr2line: DWARF error: could not find variable specification at offset 0x101f7
addr2line: DWARF error: unable to read alt ref 255615
addr2line: DWARF error: unable to read alt ref 619482
addr2line: DWARF error: unable to read alt ref 4206317
addr2line: DWARF error: unable to read alt ref 262931
addr2line: DWARF error: unable to read alt ref 261308
addr2line: DWARF error: unable to read alt ref 200897
addr2line: DWARF error: unable to read alt ref 1135413
addr2line: DWARF error: unable to read alt ref 1269
addr2line: DWARF error: unable to read alt ref 105506
VideoStore::writeVideoFramePacket(std::shared_ptr<ZMPacket>) [clone .isra.0] at :?
addr2line: DWARF error: unable to read alt ref 582988
Event::AddPacket_(std::shared_ptr<ZMPacket>) at :?
addr2line: DWARF error: unable to read alt ref 105586
Event::Run() at ??:?
The web interface log has this message repeating:

Code: Select all

7/8/24, 10:55:46 AM GMT+10	web_php	11923	ERR	Can't create frame images from video for this event incomplete.mp4Command was: /usr/bin/ffmpeg -ss 1 -i /camFootage/2/2024-07-08/494809/incomplete.mp4 -frames:v 1 /camFootage/2/2024-07-08/494809/00001-capture.jpg 2>&1Output was: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fc91eeb280] moov atom not found/camFootage/2/2024-07-08/494809/incomplete.mp4: Invalid data found when processing input	/usr/share/zoneminder/www/views/image.php	433
7/8/24, 10:55:42 AM GMT+10	web_php	10003	ERR	Can't create frame images from video for this event incomplete.mp4Command was: /usr/bin/ffmpeg -ss 1 -i /camFootage/2/2024-07-08/494809/incomplete.mp4 -frames:v 1 /camFootage/2/2024-07-08/494809/00001-capture.jpg 2>&1Output was: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a25c531280] moov atom not found/camFootage/2/2024-07-08/494809/incomplete.mp4: Invalid data found when processing input	/usr/share/zoneminder/www/views/image.php
Please let me know if you need anything else.
Thanks.
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Segmentation Faults on motion detection.

Post by iconnor »

Thanks so much for doing the addr2line thing. That helps a lot.

This looks like a problem that I thought was fixed recently. Certainly none of my machines are doing it anymore. But now I'm a little stumped again.
asunturd
Posts: 21
Joined: Thu Mar 05, 2020 4:27 pm

Re: Segmentation Faults on motion detection.

Post by asunturd »

Something definitely happened when updating to 1.37.62
As I also had something similar, and disk got full of logs full of errors

it helped to some degree to update the database again manually bug gui reports zero of any past events


Every previous 1.37.61 updates went smoothly with same setup, which is static on ubuntu 22.04, no gui.
my post is here for information: viewtopic.php?t=33330
Droid
Posts: 5
Joined: Thu May 26, 2022 9:25 pm

Re: Segmentation Faults on motion detection.

Post by Droid »

So I restarted the zoneminder service this morning to see what it would do - and it immediately crashed on monitor 5.

Code: Select all

07/09/24 08:25:32.741746 zmc_m5[39352].ERR-zm_signal.cpp/82 [Signal address is (nil), from 0x7ff97d811399]
07/09/24 08:25:32.741769 zmc_m5[39352].ERR-zm_signal.cpp/108 [Backtrace 0: /usr/bin/zmc(+0x8a2b2) [0x56018294c2b2]]
07/09/24 08:25:32.741783 zmc_m5[39352].ERR-zm_signal.cpp/108 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7ff97c6e2520]]
07/09/24 08:25:32.741793 zmc_m5[39352].ERR-zm_signal.cpp/108 [Backtrace 2: /lib/x86_64-linux-gnu/libjpeg.so.8(+0x45399) [0x7ff97d811399]]
07/09/24 08:25:32.741802 zmc_m5[39352].ERR-zm_signal.cpp/127 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/09/24 08:25:32.741811 zmc_m5[39352].ERR-zm_signal.cpp/128 [and execute the following command for more information:]
07/09/24 08:25:32.741819 zmc_m5[39352].ERR-zm_signal.cpp/129 [addr2line -Cfip -e /usr/bin/zmc 0x8a2b2]
07/09/24 08:25:32.741831 zmc_m5[39352].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]

Code: Select all

07/09/24 08:25:32.741875 addr2line -Cfip -e /usr/bin/zmc 0x8a2b2r/log/zm$ addr2line -Cfip -e /usr/bin/zmc 0x8a2b2
addr2line: DWARF error: unable to read alt ref 10615
addr2line: DWARF error: unable to read alt ref 49443
addr2line: DWARF error: could not find variable specification at offset 0xb79a
addr2line: DWARF error: could not find variable specification at offset 0xe85
addr2line: DWARF error: unable to read alt ref 254220
zm_die_handler(int, siginfo_t*, void*) at ??:?
Logfile is already large - and growing !!

Code: Select all

/var/log/zm$ ls -lh
total 1.5G
-rw-r--r-- 1 www-data www-data  17K Jul  9 08:28 web_php.log
-rw-rw-rw- 1 www-data www-data 221M Jul  9 08:28 zmc_m1.log
-rw-rw-rw- 1 www-data www-data 1.3G Jul  9 08:26 zmc_m5.log
-rw-rw-r-- 1 www-data www-data  304 Jul  9 08:26 zmdc.log
-rw-rw-r-- 1 www-data www-data 1.3K Jul  9 08:28 zmesdetect_m1.log
-rw-rw-r-- 1 www-data www-data 3.1K Jul  9 08:26 zmesdetect_m5.log
-rw-rw-r-- 1 www-data www-data    0 Jul  9 08:23 zmeventnotification.log
-rw-rw-r-- 1 www-data www-data    0 Jul  9 08:23 zmfilter_1.log
-rw-rw-r-- 1 www-data www-data    0 Jul  9 08:23 zmfilter_2.log
-rw-rw-r-- 1 www-data www-data 1.4K Jul  9 08:28 zmfilter_3.log
-rw-r--r-- 1 www-data www-data    0 Jul  9 08:23 zmpkg.log
-rw-rw-r-- 1 www-data www-data    0 Jul  9 08:23 zmstats.log
-rw-rw-r-- 1 www-data www-data    0 Jul  9 08:23 zmtrigger.log
-rw-rw-r-- 1 www-data www-data    0 Jul  9 08:23 zmwatch.log

When I force an alarm on a different monitor - it also crashes

Code: Select all

07/09/24 08:30:51.003176 addr2line -Cfip -e /usr/bin/zmc 0x8a2b2 0x15888b 0x10ab1f 0x112e05fip -e /usr/bin/zmc 0x8a2b2 0x15888b 0x10ab1f 0x112e05
addr2line: DWARF error: unable to read alt ref 10615
addr2line: DWARF error: unable to read alt ref 49443
addr2line: DWARF error: could not find variable specification at offset 0xb79a
addr2line: DWARF error: could not find variable specification at offset 0xe85
addr2line: DWARF error: unable to read alt ref 254220
zm_die_handler(int, siginfo_t*, void*) at ??:?
addr2line: DWARF error: unable to read alt ref 1166183
addr2line: DWARF error: could not find variable specification at offset 0xe617c
addr2line: DWARF error: could not find variable specification at offset 0x102f6
addr2line: DWARF error: could not find variable specification at offset 0x101f7
addr2line: DWARF error: unable to read alt ref 255615
addr2line: DWARF error: unable to read alt ref 619482
addr2line: DWARF error: unable to read alt ref 4206317
addr2line: DWARF error: unable to read alt ref 262931
addr2line: DWARF error: unable to read alt ref 261308
addr2line: DWARF error: unable to read alt ref 200897
addr2line: DWARF error: unable to read alt ref 1135413
addr2line: DWARF error: unable to read alt ref 1269
addr2line: DWARF error: unable to read alt ref 105506
VideoStore::writeVideoFramePacket(std::shared_ptr<ZMPacket>) [clone .isra.0] at :?
addr2line: DWARF error: unable to read alt ref 582988
Event::AddPacket_(std::shared_ptr<ZMPacket>) at :?
addr2line: DWARF error: unable to read alt ref 105586
Event::Run() at ??:?
Here's the console log

Code: Select all

7/9/24, 8:30:50 AM GMT+10	zmc_m1	40264	ERR	Got signal 11 (Segmentation fault), crashing	zm_signal.cpp	50

7/9/24, 8:28:28 AM GMT+10	zmfilter_3	38920	ERR	Error deleting event directory at /camFootage/1/2024-07-09/494832 using /usr/bin/rm -rf /camFootage/1/2024-07-09/494832 2>&1	zmfilter.pl	
-
7/9/24, 8:28:15 AM GMT+10	web_php	39393	ERR	Can't create frame images from video for this event incomplete.mp4Command was: /usr/bin/ffmpeg -ss 1 -i /camFootage/1/2024-07-09/494832/incomplete.mp4 -frames:v 1 /camFootage/1/2024-07-09/494832/00001-capture.jpg 2>&1Output was: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55da10b98280] moov atom not found/camFootage/1/2024-07-09/494832/incomplete.mp4: Invalid data found when processing input	/usr/share/zoneminder/www/views/image.php
I thought maybe it looked like it couldn't write any files - but should be ok

Code: Select all

ls -l
total 3982436
lrwxrwxrwx   1 root     root              7 Apr 21  2022 bin -> usr/bin
drwxr-xr-x   5 root     root           4096 Jul  3 18:13 boot
drwxrwxrwx   1 www-data www-data          6 Jul  8 10:53 camFootage
drwxr-xr-x  20 root     root           4180 Jul  8 09:08 dev
drwxr-xr-x 129 root     root          12288 Jul  8 09:52 etc
drwxr-xr-x   3 root     root           4096 May 22  2022 home
Droid
Posts: 5
Joined: Thu May 26, 2022 9:25 pm

Re: Segmentation Faults on motion detection.

Post by Droid »

Updated to the latest version and still getting crashes.

This is generated after clicking "Force Alarm" on the Web GUI.

At least it's not filling up the disk space anymore - it only seems to log it a few times and then stops.

Code: Select all

07/15/24 10:10:03.648320 zmc_m1[1454].ERR-zm_signal.cpp/54 [Got signal 11 (Segmentation fault), crashing]
07/15/24 10:10:03.648411 zmc_m1[1454].ERR-zm_signal.cpp/86 [Signal address is 0x55f63f1f2, from 0x7f50b88d24cb]
07/15/24 10:10:03.648877 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 0: /usr/bin/zmc(+0x8ad39) [0x55f63e546d39]]
07/15/24 10:10:03.648905 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f50b7689520]]
07/15/24 10:10:03.648913 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 2: /lib/x86_64-linux-gnu/libavutil.so.56(av_buffer_ref+0x2b) [0x7f50b88d24cb]]
07/15/24 10:10:03.648936 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 3: /lib/x86_64-linux-gnu/libavcodec.so.58(av_packet_ref+0x44) [0x7f50b8df6784]]
07/15/24 10:10:03.648943 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 4: /usr/bin/zmc(+0x15810b) [0x55f63e61410b]]
07/15/24 10:10:03.648962 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 5: /usr/bin/zmc(+0x10af7f) [0x55f63e5c6f7f]]
07/15/24 10:10:03.648968 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 6: /usr/bin/zmc(+0x113265) [0x55f63e5cf265]]
07/15/24 10:10:03.648974 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f50b7a53253]]
07/15/24 10:10:03.648979 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 8: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f50b76dbac3]]
07/15/24 10:10:03.648984 zmc_m1[1454].ERR-zm_signal.cpp/112 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f50b776d850]]
07/15/24 10:10:03.648989 zmc_m1[1454].ERR-zm_signal.cpp/131 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/15/24 10:10:03.648994 zmc_m1[1454].ERR-zm_signal.cpp/132 [and execute the following command for more information:]
07/15/24 10:10:03.648999 zmc_m1[1454].ERR-zm_signal.cpp/133 [addr2line -Cfip -e /usr/bin/zmc 0x8ad39 0x15810b 0x10af7f 0x113265]
07/15/24 10:10:03.649017 zmc_m1[1454].FAT-zm_signal.cpp/52 [Got signal 11 (Segmentation fault), crashing]
07/15/24 10:25:39.387656 zmc_m1[1767].ERR-zm_signal.cpp/54 [Got signal 11 (Segmentation fault), crashing]
07/15/24 10:25:39.387729 zmc_m1[1767].ERR-zm_signal.cpp/86 [Signal address is 0x5576cdf2f, from 0x7f03481624cb]
07/15/24 10:25:39.388082 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 0: /usr/bin/zmc(+0x8ad39) [0x5576cc674d39]]
07/15/24 10:25:39.388098 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f0346f19520]]
07/15/24 10:25:39.388103 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 2: /lib/x86_64-linux-gnu/libavutil.so.56(av_buffer_ref+0x2b) [0x7f03481624cb]]
07/15/24 10:25:39.388108 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 3: /lib/x86_64-linux-gnu/libavcodec.so.58(av_packet_ref+0x44) [0x7f0348686784]]
07/15/24 10:25:39.388112 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 4: /usr/bin/zmc(+0x15810b) [0x5576cc74210b]]
07/15/24 10:25:39.388115 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 5: /usr/bin/zmc(+0x10af7f) [0x5576cc6f4f7f]]
07/15/24 10:25:39.388119 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 6: /usr/bin/zmc(+0x113265) [0x5576cc6fd265]]
07/15/24 10:25:39.388123 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f03472e3253]]
07/15/24 10:25:39.388126 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 8: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f0346f6bac3]]
07/15/24 10:25:39.388130 zmc_m1[1767].ERR-zm_signal.cpp/112 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f0346ffd850]]
07/15/24 10:25:39.388134 zmc_m1[1767].ERR-zm_signal.cpp/131 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/15/24 10:25:39.388138 zmc_m1[1767].ERR-zm_signal.cpp/132 [and execute the following command for more information:]
07/15/24 10:25:39.388141 zmc_m1[1767].ERR-zm_signal.cpp/133 [addr2line -Cfip -e /usr/bin/zmc 0x8ad39 0x15810b 0x10af7f 0x113265]
07/15/24 10:25:39.388153 zmc_m1[1767].FAT-zm_signal.cpp/52 [Got signal 11 (Segmentation fault), crashing]
07/15/24 10:30:14.801457 zmc_m1[2278].ERR-zm_signal.cpp/54 [Got signal 11 (Segmentation fault), crashing]
07/15/24 10:30:14.801524 zmc_m1[2278].ERR-zm_signal.cpp/86 [Signal address is 0x55d886446, from 0x7f5e445f44cb]
07/15/24 10:30:14.801934 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 0: /usr/bin/zmc(+0x8ad39) [0x55d8843f9d39]]
07/15/24 10:30:14.801960 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f5e433ab520]]
07/15/24 10:30:14.801968 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 2: /lib/x86_64-linux-gnu/libavutil.so.56(av_buffer_ref+0x2b) [0x7f5e445f44cb]]
07/15/24 10:30:14.801974 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 3: /lib/x86_64-linux-gnu/libavcodec.so.58(av_packet_ref+0x44) [0x7f5e44b18784]]
07/15/24 10:30:14.801979 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 4: /usr/bin/zmc(+0x15810b) [0x55d8844c710b]]
07/15/24 10:30:14.801985 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 5: /usr/bin/zmc(+0x10af7f) [0x55d884479f7f]]
07/15/24 10:30:14.801988 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 6: /usr/bin/zmc(+0x113265) [0x55d884482265]]
07/15/24 10:30:14.801992 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 7: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7f5e43775253]]
07/15/24 10:30:14.801995 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 8: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7f5e433fdac3]]
07/15/24 10:30:14.801998 zmc_m1[2278].ERR-zm_signal.cpp/112 [Backtrace 9: /lib/x86_64-linux-gnu/libc.so.6(+0x126850) [0x7f5e4348f850]]
07/15/24 10:30:14.802001 zmc_m1[2278].ERR-zm_signal.cpp/131 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
07/15/24 10:30:14.802005 zmc_m1[2278].ERR-zm_signal.cpp/132 [and execute the following command for more information:]
07/15/24 10:30:14.802008 zmc_m1[2278].ERR-zm_signal.cpp/133 [addr2line -Cfip -e /usr/bin/zmc 0x8ad39 0x15810b 0x10af7f 0x113265]
07/15/24 10:30:14.802019 zmc_m1[2278].FAT-zm_signal.cpp/52 [Got signal 11 (Segmentation fault), crashing]

Code: Select all

addr2line -Cfip -e /usr/bin/zmc 0x8ad39 0x15810b 0x10af7f 0x113265
addr2line: DWARF error: unable to read alt ref 10588
addr2line: DWARF error: unable to read alt ref 49416
addr2line: DWARF error: could not find variable specification at offset 0xb781
addr2line: DWARF error: could not find variable specification at offset 0xe6c
addr2line: DWARF error: unable to read alt ref 254309
zm_die_handler(int, siginfo_t*, void*) at ??:?
addr2line: DWARF error: could not find variable specification at offset 0xe602a
addr2line: DWARF error: could not find variable specification at offset 0x102dd
addr2line: DWARF error: could not find variable specification at offset 0x101de
addr2line: DWARF error: unable to read alt ref 255704
addr2line: DWARF error: unable to read alt ref 619296
addr2line: DWARF error: unable to read alt ref 4203073
addr2line: DWARF error: unable to read alt ref 263020
addr2line: DWARF error: unable to read alt ref 261397
addr2line: DWARF error: unable to read alt ref 200941
addr2line: DWARF error: unable to read alt ref 1134937
addr2line: DWARF error: unable to read alt ref 1242
addr2line: DWARF error: unable to read alt ref 105531
VideoStore::writeVideoFramePacket(std::shared_ptr<ZMPacket>) [clone .isra.0] at :?
addr2line: DWARF error: unable to read alt ref 582802
Event::AddPacket_(std::shared_ptr<ZMPacket>) at :?
addr2line: DWARF error: unable to read alt ref 105611
Event::Run() at ??:?
GUI log errors

Code: Select all

7/15/24, 10:30:20 AM GMT+10	web_php	1164	ERR	Can't create frame images from video for this event incomplete.mp4Command was: /usr/bin/ffmpeg -ss 1 -i /camFootage/1/2024-07-15/494845/incomplete.mp4 -frames:v 1 /camFootage/1/2024-07-15/494845/00000-capture.jpg 2>&1Output was: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5644a04fe280] moov atom not found/camFootage/1/2024-07-15/494845/incomplete.mp4: Invalid data found when processing input	/usr/share/zoneminder/www/views/image.php	433
7/15/24, 10:30:16 AM GMT+10	web_php	856	ERR	Can't create frame images from video for this event incomplete.mp4Command was: /usr/bin/ffmpeg -ss 1 -i /camFootage/1/2024-07-15/494845/incomplete.mp4 -frames:v 1 /camFootage/1/2024-07-15/494845/00000-capture.jpg 2>&1Output was: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a97094a280] moov atom not found/camFootage/1/2024-07-15/494845/incomplete.mp4: Invalid data found when processing input	/usr/share/zoneminder/www/views/image.php	433
7/15/24, 10:30:14 AM GMT+10	zmdc	879	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	-
7/15/24, 10:30:14 AM GMT+10	zmc_m1	2278	ERR	Got signal 11 (Segmentation fault), crashing
Droid
Posts: 5
Joined: Thu May 26, 2022 9:25 pm

Re: Segmentation Faults on motion detection.

Post by Droid »

Not sure if it helps, but I downgraded to 1.37.60 - and everything is running perfectly.
Post Reply