Can't get running zmc -d

Support and queries relating to all previous versions of ZoneMinder
Locked
bugor
Posts: 6
Joined: Thu Jun 01, 2006 10:41 am
Contact:

Can't get running zmc -d

Post by bugor »

Hello!
I looked at forums but did not found anything about this
using webcam on video0
flyVIDEO2000 on video1
bt848a on video2
runing 1.22.1 version

I'a getting this in logs:
06/01/06 14:53:34.059642 zmdc[17585].INF [Starting pending process, zmc -d /dev/video1]
06/01/06 14:53:34.063215 zmdc[17687].INF ['zmc -d /dev/video1' started at 06/06/01 14:53:34]
06/01/06 14:53:34.068096 zmdc[17585].INF ['zmc -d /dev/video1' starting at 06/06/01 14:53:34, pid = 17687]
*** glibc detected *** double free or corruption (out): 0x0ed37210 ***
06/01/06 14:53:34.153755 zmdc[17585].INF ['zmc -d /dev/video1' crashed, signal 6]
06/01/06 14:53:35.055657 zmdc[17585].INF [Starting pending process, zmc -d /dev/video2]
06/01/06 14:53:35.060187 zmdc[17585].INF ['zmc -d /dev/video2' starting at 06/06/01 14:53:35, pid = 17689]
06/01/06 14:53:35.059250 zmdc[17689].INF ['zmc -d /dev/video2' started at 06/06/01 14:53:35]
*** glibc detected *** double free or corruption (out): 0x0ed11a00 ***
06/01/06 14:53:35.149467 zmdc[17585].INF ['zmc -d /dev/video2' crashed, signal 6]

zmc -d /dev/video1
*** glibc detected *** double free or corruption (out): 0x0ed37210 ***
Aborted

uname -a:
Linux sms 2.6.16-gentoo-r7 #1 SMP PREEMPT Fri May 12 14:17:02 MSD 2006 i686 Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux

xawvt -d /dev/video1 & 2
working ok

1.22.2 version:

zmc -d /dev/video1
Aborted

if I install from liveCD 1.22.3 on the same hadrware the all devices are working fine...

somebody help!!!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

why not stick with the live cd?
Gentoo is unknown to me im afraid
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
bugor
Posts: 6
Joined: Thu Jun 01, 2006 10:41 am
Contact:

Post by bugor »

HI!
why not stick with the live cd?
Gentoo is unknown to me im afraid
What the difference? It must work with gentoo as well!

I was using RH for long time, then got the gentoo and quite pleased with it...
I would like to work with one system and so tired off hopping from one to another!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There were a few funny memory bugs in 1.22.1. I would recommend trying 1.22.2 as a first resort.
Phil
bugor
Posts: 6
Joined: Thu Jun 01, 2006 10:41 am
Contact:

Post by bugor »

Yes I installed 1.22.2 but non of my cams sucssided to start!

now I'm using 1.22.2 with zmc from 1.22.1 and ass before
just webcam is working...

Whst else can I try?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

*** glibc detected *** double free or corruption (out): 0x0ed37210 ***
This is the bit that worries me. Im unsure what it means but im thinking, unsucseful build (i have read about bugs in gcc in certain versions) or a mem issue, but other than that i dont knoww, but as ive never experienced this then im not much use im afraid
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Przemo_Poland
Posts: 4
Joined: Thu Jun 01, 2006 6:45 pm
Location: Poland

I've the same problem...

Post by Przemo_Poland »

I'm sorry for my English. I haven't wrote in this language for 5 years.

I think that problems with run zmc on Gentoo are caused the build fail while compiling zmc. I've found this problems in the config.log file in ZoneMinder catalog.

I'm using Gentoo Linux:

Code: Select all

# uname -a
Linux Serwer_1 2.6.16-gentoo-r3 #3 SMP PREEMPT Wed May 31 10:53:10 UTC
2006 i686 AMD Sempron(tm)   2300+ GNU/Linux 
zmc returns this message, when I try to run it from command line:

Code: Select all

# /usr/local/bin/zmc -d /dev/video0
*** glibc detected *** malloc(): memory corruption: 0x0ecd7430 ***
Aborted 
Yesterday I have tried to emerge this packet. It is masked (~x86). When I try to accept this word - ebuild don't want to compile on my machine. Those are the bugs:

Code: Select all

then mv -f ".deps/zm.Tpo" ".deps/zm.Po"; else rm -f ".deps/zm.Tpo"; exit 1; fi
In file included from zmc.cpp:24:
zm.h:28:23: zm_config.h: No such file or directory
In file included from /usr/include/math.h:70,
                from zm_image.h:29,
                from zm_monitor.h:28,
                from zmc.cpp:26:
/usr/include/bits/mathcalls.h:310: error: declaration of `double round(double) throw ()' throws different exceptions
zm.h:33: error: than previous declaration `double round(double)'
In file included from zm_zone.h:27,
                from zm_monitor.h:29,
                from zmc.cpp:26:
zm_event.h: In static member function `static void Event::Initialise()':
zm_event.h:86: error: `config' undeclared (first use this function)
zm_event.h:86: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from zmc.cpp:26:
zm_monitor.h: In member function `int Monitor::PostCapture()':
zm_monitor.h:287: error: `config' undeclared (first use this function)
zmc.cpp: In function `int main(int, char**)':
zmc.cpp:155: error: `zmLoadConfig' undeclared (first use this function)
zmc.cpp:225: error: `config' undeclared (first use this function)
In file included from zm.cpp:20:
zm.h:28:23: zm_config.h: No such file or directory
make[2]: *** [zmc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [zm.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/zoneminder-1.21.4/work/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/zoneminder-1.21.4/work/zm-1.21.4'
make: *** [all] Error 2

!!! ERROR: www-misc/zoneminder-1.21.4 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! emake failed
Now I am updateing gcc. Maybe this is a problem.
Please, help as. This project is very, very important for me.
--
Przemek
bugor
Posts: 6
Joined: Thu Jun 01, 2006 10:41 am
Contact:

Post by bugor »

I did't have those problems in compiling masked package
but nothing was working after installing
all sql and permissions had to do by hands...
but after this zm working as i sad, just onw cam...
it is worth to install zm-1.22.2 over from sorces and it's
working the same way...
I dont know shel I updete gcc or not!
somebody help as!
Przemo_Poland
Posts: 4
Joined: Thu Jun 01, 2006 6:45 pm
Location: Poland

closer to resolving a problem - I hope...

Post by Przemo_Poland »

I am still upgrading my GCC, then system and world packages. I don't have leisure enough, I'm very busy in my own firm, so I do everything with Gentoo and ZoneMinder in parts...For few weeks.

I hope, that I'll solve this problem. I am closer and closer to find a reason of our problem.

I'll be so happy, that I'll drunk :D
--
Przemek
Przemo_Poland
Posts: 4
Joined: Thu Jun 01, 2006 6:45 pm
Location: Poland

Post by Przemo_Poland »

Probably our problems are caused by wrong options in kernel configuration before compiling...
I don't know, which are wrong... I don't know even, how to check them.

I've used configuration by make menuconfig, not by genkernel. I'll try to use genkernel...
--
Przemek
Przemo_Poland
Posts: 4
Joined: Thu Jun 01, 2006 6:45 pm
Location: Poland

Post by Przemo_Poland »

Code: Select all

# uname -a
Linux Serwer_1 2.6.16-gentoo-r3 #3 SMP PREEMPT Wed May 31 10:53:10 UTC 2006 i686 AMD Sempron(tm)   2300+ GNU/Linux
I've installed masked ZM 1.22.2 from ebuild by emerge, but now I've another problem:

Code: Select all

Jun  9 10:36:01 Serwer_1 zmpkg[8591]: INF [Command: start]
Jun  9 10:36:01 Serwer_1 zmpkg[8591]: ERR [Unable to find valid 'su' syntax]
I am very sad :(( Help me please...
--
Przemek
bugor
Posts: 6
Joined: Thu Jun 01, 2006 10:41 am
Contact:

Post by bugor »

to Przemo_Poland

you have to be able start it from the web!
or you have to search on forums it was somwhere
the starting script for gentoo!
darkunderlord
Posts: 2
Joined: Mon Jul 11, 2005 6:43 pm

Post by darkunderlord »

I've got the same 'su' issue. Any luck?
bugor
Posts: 6
Joined: Thu Jun 01, 2006 10:41 am
Contact:

I've got the same 'su' issue. Any luck

Post by bugor »

I did this!
./configure --with-libarch=lib \
--with-mysql=/usr \
--with-ffmpeg=/usr \
--with-webdir=/var/www/localhost/htdocs \
--with-cgidir=/var/www/localhost/cgi-bin \
--with-webuser=apache \
--with-webgroup=apache \
--enable-debug=yes \
--enable-crashtrace=yes
and all things start to work
Locked