Floating Point exceptions Ubuntu 64bit
Posted: Thu Jul 09, 2009 6:35 pm
I can't get zoneminder working on my fresh Ubuntu 64bit install with ACTi IP cameras.
I've followed the build and install guides on the wiki several times with the same results.
Zoneminder and ffmpeg where built from the svn repositories. I even went back to the
ffmpeg 0.5 and zoneminder 1.24.1 bases but no luck there either.
zmc is crashing with signal 8 (floating point exception). At this point I'm not sure if it's a shared memory, zmc, 64 bit O/S or combination.
When I turn on debug I'm seeing that the capture daemon does grab frames but gets errors trying to decode the frame. Am I correct to assume if zmc is getting frames
then shared memory is working?
ffmpeg works capturing video streams from the camera using rtsp and I can playback with mplayer.
I'm running out of ideas. does anyone out there have any clues whats going on here?
Any help and/or suggestions would be greatly appreciated.
Thank you.
zmdc.log:
Shared memory segments are there for the two monitors:
Errors in the apache log but I think these are just an artifact of the capture daemon barfing:
While composing this post I just got this in the syslog:
My build options:
I'm seeing alot of these messages in syslog. Are these something to be concerned about?
I've followed the build and install guides on the wiki several times with the same results.
Zoneminder and ffmpeg where built from the svn repositories. I even went back to the
ffmpeg 0.5 and zoneminder 1.24.1 bases but no luck there either.

zmc is crashing with signal 8 (floating point exception). At this point I'm not sure if it's a shared memory, zmc, 64 bit O/S or combination.
When I turn on debug I'm seeing that the capture daemon does grab frames but gets errors trying to decode the frame. Am I correct to assume if zmc is getting frames
then shared memory is working?
ffmpeg works capturing video streams from the camera using rtsp and I can playback with mplayer.
I'm running out of ideas. does anyone out there have any clues whats going on here?
Any help and/or suggestions would be greatly appreciated.
Thank you.
zmdc.log:
Code: Select all
Jul 9 08:29:37 zm1 zmc_m1[9156]: INF [Starting Capture]
Jul 9 08:29:37 zm1 zmdc[9111]: WAR [Can't find process with command of 'zma -m
1']
Jul 9 08:29:39 zm1 zmc_m1[9156]: ERR [Error while decoding frame 1]
Jul 9 08:29:39 zm1 zmc_m1[9156]: ERR [256: 74 88 a4 73 9a 5a 1c bc a3 a1 a1 20
e0 1d 05 ca 48 17 a0 e5 82 64 ec 1d a3 30 71 f0 76 8d d1 c3 e5 62 10 84 33 47 60
e1 58 38 15 d4 fe a4 5c 1c 5a 7c 46 d0 e4 3c 58 4c 56 b0 e4 26 e2 76 87 03 91 b
1 39 47 13 73 b1 09 30 0a 11 a6 52 54 dd 28 a5 90 9d 18 72 56 23 a0 77 01 c2 12
02 39 b8 88 a9 a6 97 b6 6a 47 39 36 9b 59 1a 06 d3 f0 5e 9a 71 7a 38 4a 1c 3b 81
c2 3c 65 7a 22 ad b1 c8 70 37 4b 88 88 c4 6d 54 83 bd ce a4 95 85 86 fa 48 9b 7
b 5b e7 17 a1 b0 8d 39 1d 57 4e 58 9d 31 31 49 69 a0 71 20 8f 21 07 60 7e 31 67
4b 22 5d bc 17 0e 42 fd 36 99 18 39 be 30 38 23 c0 74 29 29 26 04 66 ca 70 6a de
8e ae 51 c4 2c 09 84 75 dd 2d 2a 15 62 f7 31 42 cd a4 16 de 23 a8 3d 7d 9a 97 9
4 dd 6e f6 b7 6e ae c8 b5 0a 73 e2 37 60 a9 27 18 65 96 57 38 54 ca 40 f4 09 86
62 18 a8 18]
Code: Select all
root@:/tmp# ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d0001 262144 www-data 700 36865524 1
0x7a6d0002 294913 www-data 700 36865524 1
root@:/tmp# sysctl -a | grep shm
kernel.shmmax = 4194304000
kernel.shmall = 2048000
kernel.shmmni = 4096
Code: Select all
[Thu Jul 09 10:31:32 2009] [error] [client 10.16.1.95] array (\n 0 => \n array (\n 'file' => '/srv/zm/www/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-017705s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/srv/zm/www/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/srv/zm/www/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://zoneminder.merfinllc.com/index.php?view=watch&mid=2
Code: Select all
Jul 9 11:01:39 zm1 zmc_m1[23559]: INF [Got signal 11 (Segmentation fault), crashing]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Signal address is 0x10206, no eip]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libpthread.so.0 [0x7f82523ac0f0]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x15b) [0x7f82512e424b]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x43604a]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x43a43e]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x43912a]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /usr/local/bin/zmc [0x44bb85]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libpthread.so.0 [0x7f82523a43ea]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: ERR [Backtrace: /lib/libc.so.6(clone+0x6d) [0x7f8251345cbd]]
Jul 9 11:01:39 zm1 zmc_m1[23559]: INF [Backtrace complete, please execute the following command for more information]
Jul 9 11:01:39 zm1 zmc_m1[23559]: INF [addr2line -e /lib/libc.so.6(clone+0x6d) 0x7f82523ac0f0 0x7f82512e424b 0x43604a 0x43a43e 0x43912a 0x44bb85 0x7f82523a43ea 0x7f8251345cbd]
Jul 9 11:01:39 zm1 zmdc[23436]: ERR ['zmc -m 1' exited abnormally, exit status 11]
Jul 9 11:01:43 zm1 zmwatch[23468]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
Jul 9 11:04:44 zm1 zmwatch[23468]: INF [Restarting capture daemon for CompRmWest, time since last capture 15 seconds (1247162684-1247162669)]
Jul 9 11:04:44 zm1 zmdc[23436]: INF ['zmc -m 1' starting at 09/07/09 11:04:44, pid = 23614]
Code: Select all
/usr/src/ffmpeg# ./configure --enable-shared --enable-pthreads --arch=x86_64
/usr/src/zm# ./configure --with-webdir=/srv/zm/www --with-cgidir=/srv/zm/www/cgi-bin \
--enable-debug=yes --with-webgroup=www-data --with-webuser=www-data \
ZM_SSL_LIB=openssl ZM_DB_HOST=localhost ZM_DB_NAME=zm \
ZM_DB_USER=zmuser ZM_DB_PASS=zmpass
Code: Select all
Jul 9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 57c0a53a]
Jul 9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 23c155ce]
Jul 9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 8401aa73]
Jul 9 11:32:33 zm1 zmc_m1[24112]: WAR [Discarding packet for unrecognised ssrc 6e8440cb]