Hmm a Bug ???

Support and queries relating to all previous versions of ZoneMinder
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

Let's see if this one is better...

Post by dsdee »

Code: Select all

grep -w 3207 /var/log/all.log
May  4 15:52:32 ogtzeta zmdc[22090]: INF ['zmc -m 2' starting at 06/05/04 15:52:31, pid = 3207]
May  4 15:52:32 ogtzeta zmdc[3207]: INF ['zmc -m 2' started at 06/05/04 15:52:31]
May  4 15:52:31 ogtzeta zmc_m2[3207]: INF [Debug Level = 0, Debug Log = <none>]
May  4 15:52:32 ogtzeta zmc_m2[3207]: INF [Starting Capture]
May  4 15:58:13 ogtzeta zmc_m2[3207]: INF [Cam2: 1000 - Capturing at 2.93 fps]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Got signal (Aborted), crashing]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Signal address is (nil), from 0xa7c402 ]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: [0xa7c402]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: [0xa7c402]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /lib/libc.so.6(gsignal+0x50) [0x5c6f90]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /lib/libc.so.6(abort+0xf8) [0x5c8678]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /lib/libc.so.6(__assert_fail+0xfd) [0x5c0269]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /usr/local/zm/bin/zmc [0x805f099]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /usr/local/zm/bin/zmc [0x804aca7]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdf) [0x5b3d7f]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: ERR [Backtrace: /usr/local/zm/bin/zmc(__gxx_personality_v0+0xa1) [0x804a52d]]
May  4 16:02:34 ogtzeta zmc_m2[3207]: INF [Backtrace complete]
[ogtzeta!pts/3!dsdee!889] 4:08pm /tmp/zm -> addr2line -e /usr/local/zm/bin/zmc 0xa7c402 0x5c6f90 0x5c8678 0x5c0269 0x805f099 0x804aca7 0x5b3d7f 0x804a52d
??:0
??:0
??:0
??:0
/home/dsdee/src/ZoneMinder-1.22.1/src/zm_image.h:229
/home/dsdee/src/ZoneMinder-1.22.1/src/zmc.cpp:254
??:0
??:0
[ogtzeta!pts/3!dsdee!890] 4:08pm /tmp/zm ->
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi All

I can allso confirm that the patch fixes the major problem fist described in this topic.

Iam looking in my log files and see the same error as dsdee have described above.
Best Regards
Tom Stage
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

but i patched...

Post by dsdee »

... and it still erred.
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

patch...

Post by dsdee »

let's try this. maybe I screwed up the patch command, although the changes look fine to me when i look at them individually.

What's the format of the patch command i should have used ??
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have posted a further patch at http://www.zoneminder.com/downloads/zm-1.22.1-p2.txt. This must be applied after p1. It doesn't contain any more fixes but does include additional debug and has had the asserts converted into fatal debug calls. Hopefully it will give us some clue as to what this last remaining issue is.
Phil
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

Post by dsdee »

ok, i'm still having to put this patch in by hand, because trying to use the patch command as 'patch -c1 --dry-run -i (patchfilename)' it's having problems locating the file to be patched:

Code: Select all

 -> patch -p1 -c --dry-run -i zm-1.22.1-p2.txt
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|*** src/zm_debug.c     17 Jan 2006 10:56:30 -0000      1.14
|--- src/zm_debug.c     5 May 2006 09:32:11 -0000
--------------------------
File to patch: -> patch -p1 -c --dry-run -i zm-1.22.1-p2.txt
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|*** src/zm_debug.c     17 Jan 2006 10:56:30 -0000      1.14
|--- src/zm_debug.c     5 May 2006 09:32:11 -0000
--------------------------


so i'm doing the patch by hand.



Is this an incorrect cmd format i'm using ?
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

answering my own post, again

Post by dsdee »

it's a "-p0" not a "-p1".

patches went through nicely and i'm recompiling/installing now and will watch out for more failures.

sorry for the multiple messages, but for those of us who don't patch so often, it's sometimes a battle.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I'm no expert but I think the number after the -p changes depending on where you apply the patch relative to where the files are. Or something like that :lol:
Phil
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi All

Hmm after revicing my logs today it seems that i dont get the error that dsdee reported anymore, witch is good for me but sad for the debugging point of view.

BTW. Phil i get this funny error while trying to apply your latest debug patch. :

Code: Select all

patch -p0 -b --suffix .zm-1.22.1-patch3 -s
1 out of 14 hunks FAILED -- saving rejects to file src/zm_image.cpp.rej
And the zm_image.cpp.rej contains the following. :

Code: Select all

***************
*** 437,443 ****
  	}
  	if ( lo_x < 0 || hi_x > (width-1) || ( lo_y < 0 || hi_y > (height-1) ) )
  	{
! 		Error(( "Attempting to crop outside image, %d,%d -> %d,%d not in %d,%d", lo_x, lo_y, hi_x, hi_y, width, height ));
  		return( false );
  	}
  
--- 451,457 ----
  	}
  	if ( lo_x < 0 || hi_x > (width-1) || ( lo_y < 0 || hi_y > (height-1) ) )
  	{
! 		Error(( "Attempting to crop outside image, %d,%d -> %d,%d not in %d,%d", lo_x, lo_y, hi_x, hi_y, width-1, height-1 ));
  		return( false );
  	}
Any idea why this happens other that the line numbers dont match, or maybe it is just me doing somthing wrong. :?
Best Regards
Tom Stage
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This line is only debug so it's not a big deal if it doesn't apply. I suspect it may have failed for reasons of white space. You can try using the -l (a small 'L' I think) option to patch which tells it to ignore white space.
Phil
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

90 minutes later...

Post by dsdee »

... and no backtraces, so it appears to be working a lot better.

I ended up removing the directory where I had everything untarred, untarred the tarfile again, re-applied the patches again, with the correct "p0" parameter, and then re-installed.

so far, so good. Potential typo in the original patch-by-hand method, or I might not have hit the problem again yet, but I will keep watch...

--d2
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi Phil

A Minor update to this Post.

My test server have been running without any errors for 2 weeks now, so in my eyes the problem have been solved.

Thanks for the fast responce and the quick fix.
Best Regards
Tom Stage
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Excellent, thanks for letting me know.
Phil
Locked