ZoneMinder refuses to start, segmentation faults

Support and queries relating to all previous versions of ZoneMinder
Locked
Fivern
Posts: 17
Joined: Tue Jun 20, 2006 11:01 am

ZoneMinder refuses to start, segmentation faults

Post 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?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What does your messages or syslog say?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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?
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
Fivern
Posts: 17
Joined: Tue Jun 20, 2006 11:01 am

Post 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?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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?
Last edited by cordel on Thu Jun 22, 2006 9:33 am, edited 1 time in total.
Fivern
Posts: 17
Joined: Tue Jun 20, 2006 11:01 am

Post 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: ]
Fivern
Posts: 17
Joined: Tue Jun 20, 2006 11:01 am

Post 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:)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Well I must say I'm a bit jealous. I want to play :D
NP, We'll do what we can.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
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
Locked