Hi i'm trying to get Zoneminder 1.24.1 working on Gentoo.
I'm having a bit of a problem though. I've enabled mmap. I've then created a 500MB tmpfs mounted at /var/tmp/zoneminder. I've configured zoneminder via the web interface to use this new location instead of /dev/shm.
A USB webcam i'm using is working fine. I'm now trying to make a Linksys WVC200 work.
I've configured the device as ffmpeg and with a URL of http://10.3.0.35/img/video.asf. I've configured the device to output 640x480. And configured the device within zoneminder with the same parameters.
However I see this in my logs:
Mar 24 20:05:37 wormhole zmdc[12153]: INF ['zmc -m 4' started at 09/03/24 20:05:37]
Mar 24 20:05:37 wormhole zmc_m4[12153]: INF [Debug Level = 0, Debug Log = <none>]
Mar 24 20:05:37 wormhole zmc_m4[12153]: ERR [Got unexpected memory map file size 9217192, expected 36865192]
And this on the console:
*** glibc detected *** /usr/bin/zmc: double free or corruption (!prev): 0x0db53510 ***
======= Backtrace: =========
/lib/libc.so.6[0xb723f943]
/lib/libc.so.6(cfree+0x8a)[0xb724065e]
/usr/lib/libavformat.so.52(av_close_input_stream+0x80)[0xb7dd59a5]
/usr/bin/zmc[0x806ca68]
/usr/bin/zmc[0x804d3ab]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb71ee5f6]
/usr/bin/zmc(__gxx_personality_v0+0x361)[0x804cc31]
======= Memory map: ========
08048000-080ac000 r-xp 00000000 09:02 46580081 /usr/bin/zmc
080ac000-080ad000 r-xp 00063000 09:02 46580081 /usr/bin/zmc
080ad000-080b7000 rwxp 00064000 09:02 46580081 /usr/bin/zmc
080b7000-0dba1000 rwxp 080b7000 00:00 0 [heap]
b5975000-b59e6000 rwxp b5975000 00:00 0
b59e6000-b62b1000 rwxs 00000000 00:0f 3199596 /var/tmp/zoneminder/.zm.mmap.4
b6a00000-b6a21000 rwxp b6a00000 00:00 0
b6a21000-b6b00000 ---p b6a21000 00:00 0
b6b7c000-b6bee000 rwxp b6b7c000 00:00 0
b6c27000-b6c30000 r-xp 00000000 09:02 2622867 /lib/libnss_files-2.8.so
b6c30000-b6c31000 r-xp 00008000 09:02 2622867 /lib/libnss_files-2.8.so
b6c31000-b6c32000 rwxp 00009000 09:02 2622867 /lib/libnss_files-2.8.so
b6c32000-b6c34000 rwxp b6c32000 00:00 0
b6c34000-b6c38000 r-xp 00000000 09:02 31559370 /usr/lib/libogg.so.0.5.3
b6c38000-b6c39000 r-xp 00003000 09:02 31559370 /usr/lib/libogg.so.0.5.3
b6c39000-b6c3a000 rwxp 00004000 09:02 31559370 /usr/lib/libogg.so.0.5.3
b6c3a000-b6d60000 r-xp 00000000 09:02 46613485 /usr/lib/libcrypto.so.0.9.8
b6d60000-b6d68000 r-xp 00126000 09:02 46613485 /usr/lib/libcrypto.so.0.9.8
b6d68000-b6d77000 rwxp 0012e000 09:02 46613485 /usr/lib/libcrypto.so.0.9.8
b6d77000-b6d7a000 rwxp b6d77000 00:00 0
b6d7a000-b6db9000 r-xp 00000000 09:02 46613484 /usr/lib/libssl.so.0.9.8
b6db9000-b6dba000 r-xp 0003f000 09:02 46613484 /usr/lib/libssl.so.0.9.8
b6dba000-b6dbd000 rwxp 00040000 09:02 46613484 /usr/lib/libssl.so.0.9.8
b6dbd000-b6dbe000 rwxp b6dbd000 00:00 0
b6dbe000-b6dd0000 r-xp 00000000 09:02 2622873 /lib/libnsl-2.8.so
b6dd0000-b6dd1000 r-xp 00012000 09:02 2622873 /lib/libnsl-2.8.so
b6dd1000-b6dd2000 rwxp 00013000 09:02 2622873 /lib/libnsl-2.8.so
b6dd2000-b6dd4000 rwxp b6dd2000 00:00 0
b6dd4000-b6ddc000 r-xp 00000000 09:02 2622105 /lib/libcrypt-2.8.so
b6ddc000-b6ddd000 r-xp 00007000 09:02 2622105 /lib/libcrypt-2.8.so
b6ddd000-b6dde000 rwxp 00008000 09:02 2622105 /lib/libcrypt-2.8.so
b6dde000-b6e05000 rwxp b6dde000 00:00 0
b6e05000-b6e98000 r-xp 00000000 09:02 46613598 /usr/lib/libgnutls.so.26.4.5
b6e98000-b6e9d000 r-xp 00093000 09:02 46613598 /usr/lib/libgnutls.so.26.4.5
b6e9d000-b6e9f000 rwxp 00098000 09:02 46613598 /usr/lib/libgnutls.so.26.4.5
b6e9f000-b6ea2000 r-xp 00000000 09:02 31558966 /usr/lib/libgpg-error.so.0.4.0
b6ea2000-b6ea3000 r-xp 00002000 09:02 31558966 /usr/lib/libgpg-error.so.0.4.0
b6ea3000-b6ea4000 rwxp 00003000 09:02 31558966 /usr/lib/libgpg-error.so.0.4.0
b6ea4000-b6f06000 r-xp 00000000 09:02 31735879 /usr/lib/libgcrypt.so.11.4.3
b6f06000-b6f07000 r-xp 00061000 09:02 31735879 /usr/lib/libgcrypt.so.11.4.3
b6f07000-b6f0c000 rwxp 00062000 09:02 31735879 /usr/lib/libgcrypt.so.11.4.3
b6f0c000-b6f0d000 rwxp b6f0c000 00:00 0
b6f0d000-b6f1b000 r-xp 00000000 09:02 46613144 /usr/lib/libtasn1.so.3.0.14
b6f1b000-b6f1c000 r-xp 0000e000 09:02 46613144 /usr/lib/libtasn1.so.3.0.14
b6f1c000-b6f1d000 rwxp 0000f000 09:02 46613144 /usr/lib/libtasn1.so.3.0.14
b6f1d000-b6fbb000 r-xp 00000000 09:02 31719991 /usr/lib/libxvidcore.so.4.1
b6fbb000-b6fbc000 r-xp 0009d000 09:02 31719991 /usr/lib/libxvidcore.so.4.1
b6fbc000-b6fbd000 rwxp 0009e000 09:02 31719991 /usr/lib/libxvidcore.so.4.1
b6fbd000-b7030000 rwxp b6fbd000 00:00 0
b7030000-b7048000 r-xp 00000000 09:02 29655053 /usr/lib/libvorbis.so.0.4.1
b7048000-b7049000 r-xp 00017000 09:02 29655053 /usr/lib/libvorbis.so.0.4.1
b7049000-b7058000 rwxp 00018000 09:02 29655053 /usr/lib/libvorbis.so.0.4.1
b7058000-b7063000 r-xp 00000000 09:02 29655055 /usr/lib/libvorbisenc.so.2.0.4
b7063000-b7064000 r-xp 0000a000 09:02
If I lower the device settings to 320x240 and do the same for the device within zoneminder. The device works fine and I see none of the above errors.
Is this likely to be related to the experimental nature of the mmap support or am I doing something wrong?
Any help is greatly appreciated.
Thanks
Got unexpected memory map file size
Try enabling debug and see if you can get anything more descriptive in the debug logs which you can limit to just zmc.
Also would be helpful to have backtrace info with it, see here:
http://www.zoneminder.com/wiki/index.ph ... do_I_do.3F
Also would be helpful to have backtrace info with it, see here:
http://www.zoneminder.com/wiki/index.ph ... do_I_do.3F
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: