Hmm a Bug ???

Support and queries relating to all previous versions of ZoneMinder
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Hmm a Bug ???

Post by voronwe »

Hi all

Zoneminder 1.22.1
Linux FC4 i386

I get the following error in my zmdc.log when i change my Axis network cams to resolutions 320x240 from any other, and yes the camera have the same resolution as ZoneMinder, and there are no errors in messages.

Code: Select all

05/03/06 18:46:09.235973 zmdc[20585].INF ['zmc -m 1' starting at 06/05/03 18:46:09, pid = 20608]
*** glibc detected *** /usr/libexec/zm/bin/zmc: realloc(): invalid next size: 0x0fee1888 ***
======= Backtrace: =========
/lib/libc.so.6[0x338045]
/lib/libc.so.6(__libc_realloc+0x101)[0x338a30]
/lib/libc.so.6[0x32ee7b]
/lib/libc.so.6(fclose+0xa6)[0x327b9e]
/lib/libc.so.6(vsyslog+0x17e)[0x399f63]
/lib/libc.so.6(syslog+0x22)[0x39a37f]
/usr/libexec/zm/bin/zmc[0x806a681]
/usr/libexec/zm/bin/zmc[0x804e7e9]
/usr/libexec/zm/bin/zmc[0x80545e4]
/usr/libexec/zm/bin/zmc[0x80574d2]
/usr/libexec/zm/bin/zmc[0x8067e44]
/usr/libexec/zm/bin/zmc[0x804ae2f]
/lib/libc.so.6(__libc_start_main+0xdf)[0x2e7d5f]
/usr/libexec/zm/bin/zmc(__gxx_personality_v0+0xa1)[0x804aa89]
======= Memory map: ========
00111000-0011a000 r-xp 00000000 fd:00 947540     /lib/libnss_files-2.3.5.so
0011a000-0011b000 r-xp 00008000 fd:00 947540     /lib/libnss_files-2.3.5.so
0011b000-0011c000 rwxp 00009000 fd:00 947540     /lib/libnss_files-2.3.5.so
002ae000-002b1000 r-xp 00000000 fd:00 394001     /usr/lib/libavutil-CVS.so
002b1000-002b2000 rwxp 00002000 fd:00 394001     /usr/lib/libavutil-CVS.so
002b4000-002b5000 r-xp 002b4000 00:00 0          [vdso]
002b5000-002cf000 r-xp 00000000 fd:00 951466     /lib/ld-2.3.5.so
002cf000-002d0000 r-xp 00019000 fd:00 951466     /lib/ld-2.3.5.so
002d0000-002d1000 rwxp 0001a000 fd:00 951466     /lib/ld-2.3.5.so
002d3000-003f6000 r-xp 00000000 fd:00 951785     /lib/libc-2.3.5.so
003f6000-003f8000 r-xp 00123000 fd:00 951785     /lib/libc-2.3.5.so
003f8000-003fa000 rwxp 00125000 fd:00 951785     /lib/libc-2.3.5.so
003fa000-003fc000 rwxp 003fa000 00:00 0 
003fe000-00421000 r-xp 00000000 fd:00 951788     /lib/libm-2.3.5.so
00421000-00422000 r-xp 00022000 fd:00 951788     /lib/libm-2.3.5.so
00422000-00423000 rwxp 00023000 fd:00 951788     /lib/libm-2.3.5.so
00425000-00427000 r-xp 00000000 fd:00 951787     /lib/libdl-2.3.5.so
00427000-00428000 r-xp 00001000 fd:00 951787     /lib/libdl-2.3.5.so
00428000-00429000 rwxp 00002000 fd:00 951787     /lib/libdl-2.3.5.so
0042b000-0043d000 r-xp 00000000 fd:00 393310     /usr/lib/libz.so.1.2.2.2
0043d000-0043e000 rwxp 00011000 fd:00 393310     /usr/lib/libz.so.1.2.2.2
00440000-0045d000 r-xp 00000000 fd:00 413554     /usr/lib/libtheora.so.0.1.0
0045d000-0045e000 rwxp 0001c000 fd:00 413554     /usr/lib/libtheora.so.0.1.0
00460000-004a6000 r-xp 00000000 fd:00 413539     /usr/lib/libmp3lame.so.0.0.0
004a6000-004a9000 rwxp 00045000 fd:00 413539     /usr/lib/libmp3lame.so.0.0.0
004a9000-004fe000 rwxp 004a9000 00:00 0 
00516000-00524000 r-xp 00000000 fd:00 951789     /lib/libpthread-2.3.5.so
00524000-00525000 r-xp 0000d000 fd:00 951789     /lib/libpthread-2.3.5.so
00525000-00526000 rwxp 0000e000 fd:00 951789     /lib/libpthread-2.3.5.so
00526000-00528000 rwxp 00526000 00:00 0 
0053b000-00549000 r-xp 00000000 fd:00 394007     /usr/lib/libfaac.so.0.0.0
00549000-0054c000 rwxp 0000e000 fd:00 394007     /usr/lib/libfaac.so.0.0.0
0054e000-00558000 r-xp 00000000 fd:00 394598     /usr/lib/liba52.so.0.0.0
00558000-0055a000 rwxp 00009000 fd:00 394598     /usr/lib/liba52.so.0.0.0
0055a000-0055b000 rwxp 0055a000 00:00 0 
0055d000-0056a000 r-xp 00000000 fd:00 394027     /usr/lib/libgsm.so.1.0.10
0056a000-0056b000 rwxp 0000c000 fd:00 394027     /usr/lib/libgsm.so.1.0.10
0056d000-00576000 r-xp 00000000 fd:00 396263     /usr/lib/libpostproc.so.0.0.1
00576000-00577000 rwxp 00008000 fd:00 396263     /usr/lib/libpostproc.so.0.0.1
00579000-005e9000 r-xp 00000000 fd:00 413555     /usr/lib/libavformat-CVS.so
005e9000-005ef000 rwxp 0006f000 fd:00 413555     /usr/lib/libavformat-CVS.so
00628000-00631000 r-xp 00000000 fd:00 951790     /lib/libgcc_s-4.0.2-20051126.so.1
00631000-00632000 rwxp 00009000 fd:00 951790     /lib/libgcc_s-4.0.2-20051126.so.1
00634000-00709000 r-xp 00000000 fd:00 393405     /usr/lib/libstdc++.so.6.0.7
00709000-0070e000 rwxp 000d5000 fd:00 393405     /usr/lib/libstdc++.so.6.0.7
0070e000-00713000 rwxp 0070e000 00:00 0 
00799000-0079d000 r-xp 00000000 fd:00 397120     /usr/lib/libogg.so.0.5.2
0079d000-0079e000 rwxp 00003000 fd:00 397120     /usr/lib/libogg.so.0.5.2
0080b000-00829000 r-xp 00000000 fd:00 393312     /usr/lib/libjpeg.so.62.0.0
00829000-0082a000 rwxp 0001d000 fd:00 393312     /usr/lib/libjpeg.so.62.0.0
0082c000-00837000 r-xp 00000000 fd:00 397172     /usr/lib/libvorbisenc.so.2.0.0
00837000-00928000 rwxp 0000a000 fd:00 397172     /usr/lib/libvorbisenc.so.2.0.0
00928000-0092a000 rwxp 00928000 00:00 0 
0092c000-009c2000 r-xp 00000000 fd:00 394535     /usr/lib/libxvidcore.so.4.0
009c2000-009c3000 rwxp 00095000 fd:00 394535     /usr/lib/libxvidcore.so.4.0
009c3000-00a36000 rwxp 009c3000 00:00 0 
00a69000-00a8c000 r-xp 00000000 fd:00 413551     /usr/lib/libk5crypto.so.3.0
00a8c000-00a8d000 rwxp 00023000 fd:00 413551     /usr/lib/libk5crypto.so.3.0
00a8f000-00a9e000 r-xp 00000000 fd:00 947677     /lib/libresolv-2.3.5.so
00a9e000-00a9f000 r-xp 0000e000 fd:00 947677     /lib/libresolv-2.3.5.so
00a9f000-00aa0000 rwxp 0000f000 fd:00 947677     /lib/libresolv-2.3.5.so
00aa0000-00aa2000 rwxp 00aa0000 00:00 0 
00aa4000-00aa6000 r-xp 00000000 fd:00 413537     /usr/lib/libkrb5support.so.0.0
00aa6000-00aa7000 rwxp 00001000 fd:00 413537     /usr/lib/libkrb5support.so.0.0
00aa9000-00ac0000 r-xp 00000000 fd:00 413553     /usr/lib/libgssapi_krb5.so.2.2
00ac0000-00ac1000 rwxp 00017000 fd:00 413553     /usr/lib/libgssapi_krb5.so.2.2
00ac3000-00ac5000 r-xp 00000000 fd:00 947679     /lib/libcom_err.so.2.1
00ac5000-00ac6000 rwxp 00001000 fd:00 947679     /lib/libcom_err.so.2.1
00ac8000-00ad9000 r-xp 00000000 fd:00 947678     /lib/libpcre.so.0.0.1
00ad9000-00ada000 rwxp 00010000 fd:00 947678     /lib/libpcre.so.0.0.1
00add000-00af6000 r-xp 00000000 fd:00 397610     /usr/lib/libvorbis.so.0.3.0
00af6000-00b05000 rwxp 00019000 fd:00 397610     /usr/lib/libvorbis.so.0.3.0
00b6e000-00ba3000 r-xp 00000000 fd:00 947681     /lib/libssl.so.0.9.7f
00ba3000-00ba6000 rwxp 00035000 fd:00 947681     /lib/libssl.so.0.9.7f
00bcc000-00bde000 r-xp 00000000 fd:00 951786     /lib/libnsl-2.3.5.so
00bde000-00bdf000 r-xp 00011000 fd:00 951786     /lib/libnsl-2.3.5.so
00bdf000-00be0000 rwxp 00012000 fd:00 951786     /lib/libnsl-2.3.5.so
00be0000-00be2000 rwxp 00be0000 00:00 0 
00be4000-00be9000 r-xp 00000000 fd:00 951793     /lib/libcrypt-2.3.5.so
00be9000-00bea000 r-xp 00004000 fd:00 951793     /lib/libcrypt-2.3.5.so
00bea000-00beb000 rwxp 00005000 fd:00 951793     /lib/libcrypt-2.3.5.so
00beb000-00c12000 rwxp 00beb000 00:00 0 
00c73000-00cb8000 r-xp 00000000 fd:00 556256     /usr/lib/mysql/libmysqlclient.so.14.0.0
00cb8000-00d92000 rwxp 00045000 fd:00 556256     /usr/lib/mysql/libmysqlclient.so.14.0.0
00d92000-00d95000 rwxp 00d92000 00:00 0 
05680000-05902000 r-xp 00000000 fd:00 395294     /usr/lib/libavcodec-CVS.so
05902000-0592a000 rwxp 00281000 fd:00 395294     /usr/lib/libavcodec-CVS.so
0592a000-0598a000 rwxp 0592a000 00:00 0 
0598c000-059fb000 r-xp 00000000 fd:00 393997     /usr/lib/libkrb5.so.3.2
059fb000-059fe000 rwxp 0006e000 fd:00 393997     /usr/lib/libkrb5.so.3.2
05a00000-05af8000 r-xp 00000000 fd:00 947680     /lib/libcrypto.so.0.9.7f
05af8000-05b0a000 rwxp 000f8000 fd:00 947680     /lib/libcrypto.so.0.9.7f
05b0a000-05b0d000 rwxp 05b0a000 00:00 0 
08048000-08077000 r-xp 00000000 fd:00 427002     /usr/libexec/zm/bin/zmc
08077000-08082000 rw-p 0002f000 fd:00 427002     /usr/libexec/zm/bin/zmc
08082000-0ecc1000 rw-p 08082000 00:00 0 
0fe9c000-0fee9000 rw-p 0fe9c000 00:00 0          [heap]
b7400000-b7421000 rw-p b7400000 00:00 0 
b7421000-b7500000 ---p b7421000 00:00 0 
b7592000-b7e5d000 rw-s 00000000 00:07 819202     /SYSV7a6d2001 (deleted)
b7e5d000-b7f10000 rw-p b7e5d000 00:00 0 
b7f25000-b7f26000 rw-p b7f25000 00:00 0 
bfe10000-bfe25000 rwxp bfe10000 00:00 0          [stack]
05/03/06 18:46:09.326894 zmdc[20585].INF ['zmc -m 1' crashed, signal 6]
05/03/06 18:46:09.327814 zmdc[20585].INF [Starting pending process, zmc -m 1]
Does any one else get this error.

And btw if i change the resolution to any higher it works.
Best Regards
Tom Stage
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Could it be possible that when you reduced the image size that the zones are still trying to analize a larger image size?

Regards,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you do

Code: Select all

addr2line -e /usr/libexec/zm/bin/zmc 0x806a681
and post the result. It sort of looks to me like it's crashing in a debug statement.
Phil
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi Phil

I ran the command :
zoneminder wrote:Can you do

Code: Select all

addr2line -e /usr/libexec/zm/bin/zmc 0x806a681
and post the result. It sort of looks to me like it's crashing in a debug statement.
And the result is :

Code: Select all

??:0
And ZoneMinder debug is off.

I can reproduse this error on my test server by getting ZM to work with the cam in res. 640x480, and change the res. in the cam to 320x240 and then change the res. in zm to 320x240 and there is the error.
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 »

I will try and see if I can reproduce this. Did you compile your binaries without -g by the way? If so perhaps you could compile them with it and run the addr2line command on a compiled binary. You don't need to install it at all, just compile, run the command and then delete!

It might help me pinpoint where to look and whether I find the same issue as you.
Phil
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi Phil

This is my configure command for my custemized rpm.

Code: Select all

./configure ZM_DB_USER=%{zm_db_user} ZM_DB_PASS=%{zm_db_user_pass} --prefix=%{zm_home} --sysconfdir=%{zm_config} --with-libarch=%{zm_lib} --with-mysql=%{mysql} --with-ffmpeg=%{ffmpeg} --with-webdir=%{zm_webdir} --with-cgidir=%{zm_cgibin} --with-webuser=%{zmuid} --with-webgroup=%{zmgid} --enable-debug=yes --enable-crashtrace=yes 
No not -g but i can do that tommorow, now it is time to sleep.
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 »

Unless you turned it off with CXXFLAGS or CFLAGS I would expect -g to have been used. I will try and reproduce the issue tomorrow anyway.
Phil
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi Phil

This is my make part :

Code: Select all

make

This is my make install part :

Code: Select all

make DESTDIR=$RPM_BUILD_ROOT install
Hope this can help you to reproduce the problem.

It would seem to me that there is a problem with the low resolutions like 320x240 and below, iam not 100% sure on this thou, but i cant get zm 1.22.1 to work with these low resolutions.
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 »

I have identified a couple of issues with Zones, specifically, though not excleusively, to do with resizing of monitors. I suspect this may be the problem in your case. I am testing some fixes and will post a patch a bit later.
Phil
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi Phil

That sounds good, that a possible bug have been found and identified, then we can get that out of the way.

No hurry from my part, i have installed zm v. 1.21.4 at the custemers site, since it is a live system, but i will be glad to test the patch on my test server when it is ready.
Best Regards
Tom Stage
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Ohh and btw Cordel

Yes that could be the problem, but then again iam not that much of a programmer so the backtrace dont tell me anything.
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 »

Patch attached if anyone is feeling brave. Also available from http://www.zoneminder.com/downloads/zm-1.22.1-p1.txt

Code: Select all

*** src/zm_image.cpp    30 Mar 2006 13:46:48 -0000  1.46
--- src/zm_image.cpp    4 May 2006 11:12:12 -0000
***************
*** 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 );
    }

--- 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-1, height-1 ));
        return( false );
    }

*** src/zm_zone.cpp 31 Mar 2006 15:33:12 -0000  1.39
--- src/zm_zone.cpp 4 May 2006 11:13:46 -0000
***************
*** 877,883 ****
        Debug( 5, ( "Parsing polygon %s", Coords ));
        Polygon polygon;
        if ( !ParsePolygonString( Coords, polygon ) )
!           continue;

        if ( false && !strcmp( Units, "Percent" ) )
        {
--- 877,886 ----
        Debug( 5, ( "Parsing polygon %s", Coords ));
        Polygon polygon;
        if ( !ParsePolygonString( Coords, polygon ) )
!           Fatal(( "Unable to parse polygon string '%s' for zone %d/%s for monitor %s", Coords, Id, Name, monitor->Name() ));
! 
!         if ( polygon.LoX() < 0 || polygon.HiX() >= monitor->Width() || polygon.LoY() < 0 || polygon.HiY() >= monitor->Height() )
!             Fatal(( "Zone %d/%s for monitor %s extends outside of image dimensions", Id, Name, monitor->Name() ));

        if ( false && !strcmp( Units, "Percent" ) )
        {
*** web/zm_actions.php  12 Apr 2006 13:27:44 -0000  1.97
--- web/zm_actions.php  4 May 2006 14:28:21 -0000
***************
*** 1221,1228 ****
                            $points = coordsToPoints( $zone['Coords'] );
                            for ( $i = 0; $i < count($points); $i++ )
                            {
!                               $points[$i]['x'] = intval(round((($points[$i]['x']*$new_w)/$old_w)));
!                               $points[$i]['y'] = intval(round((($points[$i]['y']*$new_h)/$old_h)));
                            }
                            $new_zone['Coords'] = pointsToCoords( $points );
                            $new_zone['Area'] = intval(round(($zone['Area']*$new_a)/$old_a));
--- 1221,1228 ----
                            $points = coordsToPoints( $zone['Coords'] );
                            for ( $i = 0; $i < count($points); $i++ )
                            {
!                                 $points[$i]['x'] = intval(($points[$i]['x']*($new_w-1))/($old_w-1));
!                                 $points[$i]['y'] = intval(($points[$i]['y']*($new_h-1))/($old_h-1));
                            }
                            $new_zone['Coords'] = pointsToCoords( $points );
                            $new_zone['Area'] = intval(round(($zone['Area']*$new_a)/$old_a));
*** web/zm_html_view_zone.php   23 Mar 2006 20:25:48 -0000  1.28
--- web/zm_html_view_zone.php   4 May 2006 11:43:25 -0000
***************
*** 548,555 ****
    var x_point, y_point;
    if ( event )
    {
!       x = event.layerX;
!       y = event.layerY;
    }
    else
    {
--- 548,555 ----
    var x_point, y_point;
    if ( event )
    {
!       x = event.layerX-1;
!       y = event.layerY-1;
    }
    else
    {
***************
*** 626,632 ****
  <input type="hidden" name="new_zone[NumCoords]" value="<?= count($new_zone['Points']) ?>">
  <input type="hidden" name="new_zone[Coords]" value="<?= $new_zone['Coords'] ?>">
  <input type="hidden" name="new_zone[Area]" value="<?= $new_zone['Area'] ?>">
! <input type="hidden" name="new_zone[AlarmRGB]" value=""
  <table border="0" cellspacing="0" cellpadding="1" width="100%">
  <tr>
  <td align="left" class="head"><?= $zmSlangMonitor ?> <?= $monitor['Name'] ?> - <?= $zmSlangZone ?> <?= $new_zone['Name'] ?></td>
--- 626,632 ----
  <input type="hidden" name="new_zone[NumCoords]" value="<?= count($new_zone['Points']) ?>">
  <input type="hidden" name="new_zone[Coords]" value="<?= $new_zone['Coords'] ?>">
  <input type="hidden" name="new_zone[Area]" value="<?= $new_zone['Area'] ?>">
! <input type="hidden" name="new_zone[AlarmRGB]" value="">
  <table border="0" cellspacing="0" cellpadding="1" width="100%">
  <tr>
  <td align="left" class="head"><?= $zmSlangMonitor ?> <?= $monitor['Name'] ?> - <?= $zmSlangZone ?> <?= $new_zone['Name'] ?></td>
Phil
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

not sure this helped?

Post by dsdee »

After applying the patch below and re-installing, I'm still seeing the following about every 10 or 15 minutes.

Code: Select all

May  4 11:41:34 ogtzeta zmdc[22062]: INF ['zmc -m 2' starting at 06/05/04 11:41:34, pid = 24002]
May  4 11:41:34 ogtzeta zmdc[24002]: INF ['zmc -m 2' started at 06/05/04 11:41:34]
May  4 11:41:34 ogtzeta zmc_m2[24002]: INF [Debug Level = 0, Debug Log = <none>]
May  4 11:41:34 ogtzeta zmc_m2[24002]: INF [Starting Capture]
May  4 11:47:17 ogtzeta zmc_m2[24002]: INF [Cam2: 1000 - Capturing at 2.92 fps]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Got signal (Aborted), crashing]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Signal address is (nil), from 0x6ca402 ]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: [0x6ca402]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: [0x6ca402]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /lib/libc.so.6(gsignal+0x50) [0x5c6f90]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /lib/libc.so.6(abort+0xf8) [0x5c8678]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /lib/libc.so.6(__assert_fail+0xfd) [0x5c0269]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /usr/local/zm/bin/zmc [0x805f099]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /usr/local/zm/bin/zmc [0x804aca7]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdf) [0x5b3d7f]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: ERR [Backtrace: /usr/local/zm/bin/zmc(__gxx_personality_v0+0xa1) [0x804a52d]]
May  4 11:51:37 ogtzeta zmc_m2[24002]: INF [Backtrace complete]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This looks like an assert failed. There _should_ not be any reason for these any more. Can you do the addr2line thing on the addresses in the backtrace?
Phil
dsdee
Posts: 29
Joined: Thu May 04, 2006 4:21 pm
Location: Denver, CO

not looking informative...

Post by dsdee »

Code: Select all

865:> egrep '22143' /var/log/all.log
May  4 14:12:02 ogtzeta zmdc[22090]: INF ['zmc -m 2' starting at 06/05/04 14:12:02, pid = 22143]
May  4 14:12:02 ogtzeta zmdc[22143]: INF ['zmc -m 2' started at 06/05/04 14:12:02]
May  4 14:12:02 ogtzeta zmc_m2[22143]: INF [Debug Level = 0, Debug Log = <none>]
May  4 14:12:02 ogtzeta zmc_m2[22143]: INF [Starting Capture]
May  4 14:17:42 ogtzeta zmc_m2[22143]: INF [Cam2: 1000 - Capturing at 2.94 fps]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Got signal (Aborted), crashing]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Signal address is (nil), from 0x14c402 ]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: [0x14c402]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: [0x14c402]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /lib/libc.so.6(gsignal+0x50) [0x5c6f90]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /lib/libc.so.6(abort+0xf8) [0x5c8678]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /lib/libc.so.6(__assert_fail+0xfd) [0x5c0269]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /usr/local/zm/bin/zmc [0x805f099]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /usr/local/zm/bin/zmc [0x804aca7]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdf) [0x5b3d7f]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: ERR [Backtrace: /usr/local/zm/bin/zmc(__gxx_personality_v0+0xa1) [0x804a52d]]
May  4 14:22:04 ogtzeta zmc_m2[22143]: INF [Backtrace complete]
866:> addr2line -e /usr/local/zm/bin/zmc 0x14c402
??:0
867:> addr2line -e /usr/local/zm/bin/zmc 0x5c6f90
??:0
868:> addr2line -e /usr/local/zm/bin/zmc 0x804a52d
??:0
869:>
got any pointers on what to look at next ?
Locked