Page 1 of 2

zmdc.pl: can`t find child with pid of 29448 ..

Posted: Fri Jun 23, 2006 9:32 am
by Fivern
Managed to get zm up and running, previous problems was related to a bad perl installation. I still get some errors when running the perl-modules tests, but I`m not sure if that`s the problem.

Running arm-xscale-be
mysql 3.23
perl 5.6.2

When I try to stream video I don`t get the feed.

tail -f /tmp/zm*.log /var/log/messages while running zmpkg restart gave this output:

Code: Select all

==> /tmp/zmpkg.log <==
06/23/06 10:13:53.587634 zmpkg[29581].INF [Command: restart]

==> /tmp/zmwatch.log <==
06/23/06 10:13:55.705370 zmwatch[29519].ERR [Can't get shared memory id '7a6d200
2', 2: No such file or directory]
06/23/06 10:13:55.707663 zmwatch[29519].INF [Restarting capture daemon for New,
shared memory not valid]

==> /tmp/zmdc.log <==
06/23/06 10:14:02.204595 zmdc[29480].INF ['zmc -m 2' starting at 06/06/23 10:14:
02, pid = 29594]
06/23/06 10:14:02.214021 zmdc[29594].INF ['zmc -m 2' started at 06/06/23 10:14:0
2]
06/23/06 10:14:02.284305 zmdc[29480].INF ['zmc -m 2' crashed, signal 10]

==> /tmp/zmwatch.log <==
06/23/06 10:14:02.315398 zmwatch[29519].INF ['zmc -m 2' starting at 06/06/23 10:
14:02, pid = 29594]

==> /tmp/zmdc.log <==
06/23/06 10:14:06.356132 zmdc[29480].INF ['zmwatch.pl ' stopping at 06/06/23 10:
14:06]
06/23/06 10:14:06.367571 zmdc[29480].INF ['zmwatch.pl ' crashed, signal 14]
06/23/06 10:14:06.371166 zmdc[29480].INF ['zmaudit.pl -c' stopping at 06/06/23 1
0:14:06]
06/23/06 10:14:06.382682 zmdc[29480].INF ['zmaudit.pl -c' crashed, signal 14]
06/23/06 10:14:06.386133 zmdc[29480].INF ['zmupdate.pl -c' stopping at 06/06/23
10:14:06]
06/23/06 10:14:06.399321 zmdc[29480].INF ['zmupdate.pl -c' crashed, signal 14]
06/23/06 10:14:06.402759 zmdc[29480].INF ['zmfilter.pl ' stopping at 06/06/23 10
:14:06]
06/23/06 10:14:06.415991 zmdc[29480].INF ['zmfilter.pl ' crashed, signal 14]
06/23/06 10:14:11.495814 zmdc[29480].INF [Can't find child with pid of '29603']

....loads of this message ...  (with ascending pids)

06/23/06 10:14:16.793424 zmdc[29480].INF [Can't find child with pid of '29619']
06/23/06 10:14:16.797104 zmdc[29480].INF [Server shutdown at 06/06/23 10:14:16]
06/23/06 10:14:22.951450 zmdc[29634].INF [Server starting at 06/06/23 10:14:22]

[8]+  Stopped                 tail -f /tmp/zm*.log /var/log/messages
So I got a "shared memory error", and a "cant find child with pid" error.. I have not installed FFMPEG, but that shouldn`t be neccessary just for viewing the cams? Oh and the cam does work when I access it directly through my firefox.

Ideas? Appreciate any help! :)

Posted: Fri Jun 23, 2006 9:37 am
by zoneminder
Which version of ZM are you using? I would also suggest checking your zones to make sure they are not broken, especially if using an older version of ZM than 1.22.2.

Posted: Fri Jun 23, 2006 9:40 am
by Fivern
Forgot..
1.22.2

Posted: Fri Jun 23, 2006 9:41 am
by zoneminder
Hmm, it's very unusual to see everything crashing. Can you run with debug up a bit, or run one of the zmc daemons directly in gdb?

Posted: Fri Jun 23, 2006 10:00 am
by Fivern
could this be as simple as a permission problem? ZM is installed as root, same with mysql and perl.
debug level 9:

Code: Select all

==> /tmp/zmwatch.log <==
06/23/06 10:55:18.441234 zmwatch[30318].ERR [Can't get shared memory id '7a6d200
2', 2: No such file or directory]
06/23/06 10:55:18.443523 zmwatch[30318].INF [Restarting capture daemon for New,
shared memory not valid]

==> /tmp/zmpkg.log <==
06/23/06 10:55:22.315372 zmpkg[30361].INF [Command: restart]
06/23/06 10:55:22.320068 zmpkg[30361].DBG [Testing valid shell syntax]
06/23/06 10:55:22.321818 zmpkg[30361].DBG [Testing "sudo -u www true"]
06/23/06 10:55:22.439099 zmpkg[30361].DBG [Test failed, '']
06/23/06 10:55:22.440149 zmpkg[30361].DBG [Testing "su www --shell=/bin/sh --com
mand='true'"]
06/23/06 10:55:22.533038 zmpkg[30361].DBG [Test ok, using format "su www --shell
=/bin/sh --command='<command>'"]
06/23/06 10:55:22.534395 zmpkg[30361].DBG [Command: su www --shell=/bin/sh --com
mand='/usr/local/bin/zmdc.pl check']

==> /tmp/zmdc.log <==
06/23/06 10:55:24.677668 zmdc[30279].INF ['zmc -m 2' starting at 06/06/23 10:55:
24, pid = 30371]
06/23/06 10:55:24.687774 zmdc[30371].INF ['zmc -m 2' started at 06/06/23 10:55:2
4]
06/23/06 10:55:24.765477 zmdc[30279].INF ['zmc -m 2' crashed, signal 10]

==> /tmp/zmwatch.log <==
06/23/06 10:55:25.066621 zmwatch[30318].INF ['zmc -m 2' starting at 06/06/23 10:
55:24, pid = 30371]

==> /tmp/zmpkg.log <==
06/23/06 10:55:26.513214 zmpkg[30361].DBG [Output: running]
06/23/06 10:55:26.514719 zmpkg[30361].DBG [Command: su www --shell=/bin/sh --com
mand='/usr/local/bin/zmdc.pl shutdown']

==> /tmp/zmdc.log <==
06/23/06 10:55:29.232140 zmdc[30279].INF ['zmwatch.pl ' stopping at 06/06/23 10:
55:29]
06/23/06 10:55:29.243671 zmdc[30279].INF ['zmwatch.pl ' crashed, signal 14]
06/23/06 10:55:29.247221 zmdc[30279].INF ['zmaudit.pl -c' stopping at 06/06/23 1
0:55:29]
06/23/06 10:55:29.259137 zmdc[30279].INF ['zmaudit.pl -c' crashed, signal 14]
06/23/06 10:55:29.262758 zmdc[30279].INF ['zmupdate.pl -c' stopping at 06/06/23
10:55:29]
06/23/06 10:55:29.275268 zmdc[30279].INF ['zmupdate.pl -c' crashed, signal 14]
06/23/06 10:55:29.278749 zmdc[30279].INF ['zmfilter.pl ' stopping at 06/06/23 10
:55:29]
06/23/06 10:55:29.292242 zmdc[30279].INF ['zmfilter.pl ' crashed, signal 14]
06/23/06 10:55:34.305316 zmdc[30279].DBG [killall --quiet --signal TERM zmc]
06/23/06 10:55:34.314097 zmdc[30279].DBG [killall --quiet --signal TERM zma]
06/23/06 10:55:34.329507 zmdc[30279].INF [Can't find child with pid of '30374']
06/23/06 10:55:34.338597 zmdc[30279].DBG [killall --quiet --signal TERM zmf]
06/23/06 10:55:34.357098 zmdc[30279].INF [Can't find child with pid of '30376']
06/23/06 10:55:34.360130 zmdc[30279].INF [Can't find child with pid of '30375']
06/23/06 10:55:34.362960 zmdc[30279].DBG [killall --quiet --signal TERM zmfilter
.pl]
06/23/06 10:55:34.375826 zmdc[30279].INF [Can't find child with pid of '30377']
06/23/06 10:55:34.379140 zmdc[30279].DBG [killall --quiet --signal TERM zmaudit.
pl]
06/23/06 10:55:34.386718 zmdc[30279].DBG [killall --quiet --signal TERM zmtrigge
r.pl]
06/23/06 10:55:34.402054 zmdc[30279].INF [Can't find child with pid of '30378']
06/23/06 10:55:34.409716 zmdc[30279].DBG [killall --quiet --signal TERM zmx10.pl
]
06/23/06 10:55:34.424406 zmdc[30279].INF [Can't find child with pid of '30379']
06/23/06 10:55:34.432035 zmdc[30279].DBG [killall --quiet --signal TERM zmwatch.
pl]
06/23/06 10:55:34.446719 zmdc[30279].INF [Can't find child with pid of '30380']
06/23/06 10:55:34.454407 zmdc[30279].DBG [killall --quiet --signal TERM zmupdate
.pl]
06/23/06 10:55:34.469047 zmdc[30279].INF [Can't find child with pid of '30381']
06/23/06 10:55:34.476716 zmdc[30279].DBG [killall --quiet --signal TERM zmtrack.
pl]
06/23/06 10:55:34.495409 zmdc[30279].INF [Can't find child with pid of '30383']
06/23/06 10:55:34.498428 zmdc[30279].INF [Can't find child with pid of '30382']

Posted: Fri Jun 23, 2006 12:50 pm
by Fivern
Here we go again...
I have now installed gdb, and I got this:

gdb zmc:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
Config::Config() (this=0x52148) at zm_config.cpp:218
218             items = 0;
(gdb) backtrace
#0  Config::Config() (this=0x52148) at zm_config.cpp:218
#1  0x0000c920 in __static_initialization_and_destruction_0 (__initialize_p=1,
    __priority=65535) at zm_config.cpp:316
#2  0x00032cc4 in __do_global_ctors_aux ()
#3  0x0000a07c in _init ()
Cannot access memory at address 0x7c00032c 
Config::Config() in config.cpp:

Code: Select all

Config::Config()
{
        n_citems = 0;
        items = 0;                 <--line 218
}

Posted: Fri Jun 23, 2006 4:10 pm
by zoneminder
Yuck! I would try a full rebuild ('make clean' before make) and also check that the DB doesn't have errors (mysqlcheck).

If you still get it we will try something else.

Posted: Mon Jun 26, 2006 11:54 am
by Fivern
Now I have completely reinstalled zoneminder, and also run mysqlcheck which shows nothing wrong.
Still zmdc.log gives this:

Code: Select all

06/26/06 11:36:03.789535 zmdc[7144].INF ['zmc -m 3' starting at 06/06/26 11:36:03, pid = 7167]
06/26/06 11:36:03.798232 zmdc[7167].INF ['zmc -m 3' started at 06/06/26 11:36:03]
06/26/06 11:36:03.871370 zmdc[7144].INF ['zmc -m 3' crashed, signal 10]
06/26/06 11:36:03.874220 zmdc[7144].INF [Can't find child with pid of '7164']
06/26/06 11:36:03.876726 zmdc[7144].INF [Can't find child with pid of '7163']
06/26/06 11:36:03.879232 zmdc[7144].INF [Can't find child with pid of '7162']
06/26/06 11:36:03.881727 zmdc[7144].INF [Can't find child with pid of '7161']
06/26/06 11:36:03.884245 zmdc[7144].INF [Can't find child with pid of '7160']
06/26/06 11:36:03.886697 zmdc[7144].INF [Can't find child with pid of '7159']
06/26/06 11:36:03.889211 zmdc[7144].INF [Can't find child with pid of '7158']
06/26/06 11:36:03.891710 zmdc[7144].INF [Can't find child with pid of '7157']
06/26/06 11:36:03.894226 zmdc[7144].INF [Can't find child with pid of '7156']
06/26/06 11:36:03.896691 zmdc[7144].INF [Can't find child with pid of '7155']
06/26/06 11:36:03.899210 zmdc[7144].INF [Can't find child with pid of '7154']
06/26/06 11:36:03.901697 zmdc[7144].INF [Can't find child with pid of '7153']
06/26/06 11:36:03.904218 zmdc[7144].INF [Can't find child with pid of '7152']
06/26/06 11:36:03.906679 zmdc[7144].INF [Can't find child with pid of '7151']
06/26/06 11:36:03.909195 zmdc[7144].INF [Can't find child with pid of '7150']
06/26/06 11:36:03.911691 zmdc[7144].INF [Can't find child with pid of '7149']
06/26/06 11:36:03.914202 zmdc[7144].INF [Can't find child with pid of '7148']
06/26/06 11:36:03.916699 zmdc[7144].INF [Can't find child with pid of '7147']
06/26/06 11:36:03.919227 zmdc[7144].INF [Can't find child with pid of '7146']
06/26/06 11:36:03.921750 zmdc[7144].INF [Can't find child with pid of '7145']
06/26/06 11:36:03.925498 zmdc[7144].INF [Starting pending process, zmc -m 3]
06/26/06 11:36:03.936275 zmdc[7144].INF ['zmc -m 3' starting at 06/06/26 11:36:03, pid = 7168]
06/26/06 11:36:03.945357 zmdc[7168].INF ['zmc -m 3' started at 06/06/26 11:36:03]
06/26/06 11:36:04.015485 zmdc[7144].INF ['zmc -m 3' crashed, signal 10]
06/26/06 11:36:06.782950 zmdc[7144].INF ['zmfilter.pl' starting at 06/06/26 11:36:06, pid = 7171]
06/26/06 11:36:06.792347 zmdc[7171].INF ['zmfilter.pl' started at 06/06/26 11:36:06]
06/26/06 11:36:09.085152 zmdc[7144].INF [Starting pending process, zmc -m 3]
06/26/06 11:36:09.096012 zmdc[7144].INF ['zmc -m 3' starting at 06/06/26 11:36:09, pid = 7174]
06/26/06 11:36:09.104956 zmdc[7174].INF ['zmc -m 3' started at 06/06/26 11:36:09]
06/26/06 11:36:09.194053 zmdc[7144].INF ['zmc -m 3' crashed, signal 10]
06/26/06 11:36:14.168760 zmdc[7144].INF ['zmaudit.pl -c' starting at 06/06/26 11:36:14, pid = 7176]
06/26/06 11:36:14.178295 zmdc[7176].INF ['zmaudit.pl -c' started at 06/06/26 11:36:14]
06/26/06 11:36:19.075126 zmdc[7144].INF [Starting pending process, zmc -m 3]
06/26/06 11:36:19.086252 zmdc[7144].INF ['zmc -m 3' starting at 06/06/26 11:36:19, pid = 7182]
06/26/06 11:36:19.095134 zmdc[7182].INF ['zmc -m 3' started at 06/06/26 11:36:19]
06/26/06 11:36:19.164778 zmdc[7144].INF ['zmc -m 3' crashed, signal 10]
06/26/06 11:36:19.909379 zmdc[7144].INF ['zmwatch.pl' starting at 06/06/26 11:36:19, pid = 7183]
06/26/06 11:36:19.918818 zmdc[7183].INF ['zmwatch.pl' started at 06/06/26 11:36:19]
06/26/06 11:36:25.245551 zmdc[7144].INF ['zmupdate.pl -c' starting at 06/06/26 11:36:25, pid = 7187]
06/26/06 11:36:25.254986 zmdc[7187].INF ['zmupdate.pl -c' started at 06/06/26 11:36:25]
06/26/06 11:36:39.045297 zmdc[7144].INF [Starting pending process, zmc -m 3]
06/26/06 11:36:39.056502 zmdc[7144].INF ['zmc -m 3' starting at 06/06/26 11:36:39, pid = 7195]
06/26/06 11:36:39.065558 zmdc[7195].INF ['zmc -m 3' started at 06/06/26 11:36:39]
and zmwatch.log:

Code: Select all

06/26/06 11:36:24.186390 zmwatch[7183].INF [Watchdog starting]
06/26/06 11:36:24.190985 zmwatch[7183].INF [Watchdog pausing for 30 seconds]
06/26/06 11:36:54.227610 zmwatch[7183].ERR [Can't get shared memory id '7a6d2003', 3: No such file or directory]
06/26/06 11:36:54.230664 zmwatch[7183].INF [Restarting capture daemon for web_cam, shared memory not valid]
06/26/06 11:36:58.986534 zmwatch[7183].INF ['zmc -m 3' starting at 06/06/26 11:36:58, pid = 7205]
06/26/06 11:37:09.007703 zmwatch[7183].ERR [Can't get shared memory id '7a6d2003', 3: No such file or directory]
06/26/06 11:37:09.010000 zmwatch[7183].INF [Restarting capture daemon for web_cam, shared memory not valid]
06/26/06 11:37:11.811467 zmwatch[7183].INF ['zmc -m 3' starting at 06/06/26 11:37:11, pid = 7210]
Also I get the same segmentation fault as before when trying to run zmc by itself..
Any ideas?

Posted: Mon Jun 26, 2006 12:49 pm
by jameswilson
is it recording, ie if you set to record or mocord do the events increase. If this was a standard system i would sy check the paths and remove nph- from the streaming patrh as it looks like it cant get images from the path supplied, but this isnt a normal distro and im unsure

Sorry

Posted: Tue Jun 27, 2006 8:14 am
by Fivern
Seems like it doesn't matter wheter I use record or monitor.. Looks to me that zmc is crashing with "signal 10" (what does that mean?), then zmwatch is trying to use the pid that zmc created before it crashed and gets shared memory error.
Another thing corey mentioned in another topic is that the kernel needs v4l2 - I doubt that it has that installed as it is created for embedded devices.. but do I really need it when all I use is network cameras (Axis 206M)?
Regards, Jon

Posted: Tue Jun 27, 2006 8:50 am
by cordel
You should not need v4l2 in the kernel if you don't plan on using the hardware (capture cards).
As far as your error, The only thing I can suggest is to increase your debug levels for _zmc and check the debug logs created for better detail.

Regards,
Corey

Posted: Tue Jun 27, 2006 9:22 am
by Fivern
thanks for all the help guys!
Going to try to install a different version of perl (yet again) as zmc only displays "segmentation fault" when run.. Will let you know how it goes!
Jon

Posted: Tue Jun 27, 2006 4:03 pm
by zoneminder
I don't think it's a perl issue as zmc doesn't use perl. It looks more like a database problem if anything.

Posted: Wed Jun 28, 2006 9:38 am
by Fivern
I tried to use a remote database running MySQL 5.0 (the arm uses 3.23) but the same problem.. ZMC does'nt want to start. As printed earlier, when running gdb, it says there's something wrong with zm_config.cpp, and it can't access memory.
The segmentation fault occurs even when zmc is run without variables, on my other pc it outputs some text on how to use it. :?

Posted: Wed Jun 28, 2006 1:43 pm
by Fivern
Found out that if I restart the machine and run zmc/zma/zmu before trying to start zmpkg.pl, everything is fine. After zmpkg.pl is run, everything starts crashing and they give segmentation fault when run seperately even after stopping zmpkg.pl.. maybe you're right about the database thing, but I tried databases both locally and remotely.. I'm drawing blanks here:(