Page 1 of 1

ZoneMinder refuses to start, segmentation faults

Posted: Thu Jun 22, 2006 8:43 am
by Fivern
Zoneminder compiled successfully on arm-xscale, but will not start when calling zmpkg.pl. No errors are given. zmpkg.log and apache-error-log give no errors. Syslog gives no errors.
When running zmdc.pl -d 0 from bash gives "segmentation fault". Permissions to /tmp/ /var/log /var/run is 777.

zmpkg.log

Code: Select all

06/22/06 09:31:49.697677 zmpkg[15366].INF [Command: start
No other logfiles were created.

In zoneminder console(www) says Zoneminder is stopped. When trying to start, some seconds pass, then it goes back to stopped.

Any ideas?

Posted: Thu Jun 22, 2006 8:48 am
by cordel
What does your messages or syslog say?

Posted: Thu Jun 22, 2006 9:11 am
by jameswilson
i see you say that there are no errors in syslog/messages, is this nothing at all?
Also you can turn on the debugging option setting upto 9 to see if that adds any light?

Posted: Thu Jun 22, 2006 9:15 am
by Fivern
/var/log/syslog.log says nothing.. haven't got messages...
I have a feeling that zmdc.pl is where it goes wrong, but no error messages anywhere other than the segmentation fault.. weird!
Think it could be my perl install?

Posted: Thu Jun 22, 2006 9:21 am
by jameswilson
I would think its to do with the distro used, but im afraid if its not logging anything even with debug turned up then i will bow out as i have no idea

Posted: Thu Jun 22, 2006 9:32 am
by cordel
Are you working with one of their preview kits or a current version with the full tool chain?
Also are you sure the kernel has v4l2 drivers built?

Posted: Thu Jun 22, 2006 9:32 am
by Fivern
This is the log file from zmpkg.log with debug level 9:

Code: Select all

06/22/06 10:29:15.007970 zmpkg[17186].INF [Command: start]
06/22/06 10:29:15.013230 zmpkg[17186].DBG [Testing valid shell syntax]
06/22/06 10:29:15.014984 zmpkg[17186].DBG [Testing "sudo -u www true"]
06/22/06 10:29:15.056375 zmpkg[17186].DBG [Test failed, '']
06/22/06 10:29:15.057491 zmpkg[17186].DBG [Testing "su www --shell=/bin/sh --command='true'"]
06/22/06 10:29:15.145278 zmpkg[17186].DBG [Test ok, using format "su www --shell=/bin/sh --command='<command>'"]
06/22/06 10:29:15.146709 zmpkg[17186].DBG [Command: su www --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check']
06/22/06 10:29:23.076031 zmpkg[17186].DBG [Output: ]

Posted: Thu Jun 22, 2006 9:39 am
by Fivern
I'm using Montavista Linux 3.1 which is pretty much stripped of all header files.. so I have made a toolchain and copied missing files over to the distro. This can of course be part of the problem, but as I have managed to install mysql, bison, pcre etc. using the source distibutions, I would think it is okay. What I'm a little bit concerned about is the perl install, so working on that one now, seems that all the perl scripts in ZM are getting segmentation fault when run..
Thanks for helping btw:)

Posted: Thu Jun 22, 2006 9:44 am
by cordel
Well I must say I'm a bit jealous. I want to play :D
NP, We'll do what we can.

Posted: Thu Jun 22, 2006 9:46 am
by jameswilson
lol Corey me too, ive been looking into these things. Thisnk the faults are over my head though so ill keep quiet for a bit and watch you too