ZM 1.24.1 Seg Faults

Forum for questions and support relating to the 1.24.x releases only.
Locked
akupsta
Posts: 34
Joined: Sat Mar 10, 2007 8:11 pm

ZM 1.24.1 Seg Faults

Post by akupsta »

Hi Everyone.

I recently installed v1.24.1 and started migrating from my working 1.22.3 install.

The new config consists of:

- CentOS 5.2 32-bit. Both OS and ZM 1.24.1 installed as per procedures posted on the ZM Wiki.
- I had to use git (as per ffmpeg's web site) to download the ffmpeg sources as the svn method failed to compile properly.

ZM was compiled without any issues and the install process was a lot smoother than 1.22.

- I'm using Toshiba IKWB-15A IP Camera (work fine under 1.22) and have ported over my control script to module for 1.24 (currently testing).

Here are the issues:

1. (not major, but a pain): The new (ajax) web interface has some issues with Safari (Mac OS X - 10.5.6). Specifically with zone creation -- can't create / modify zones -- seems to be referencing # on the page. Firefox 3.0 works fine. Given that Safari & FF share / based on the same rendering engine, perhaps it's a quick fix. BTW: Safari is also available for Windows.

One more note: ZM 1.22 had no issues with Safari.

2. (major) zmc seems to repeatedly crash. Below are logs. Every 5-10 seconds or so the two monitors that I'm running go black for a second until the daemons are restarted. Seg. Faults - Signal 11.

Steps done thus far:

- Increase shared memory values in /etc/sysctl.conf:

Code: Select all

# Controls the maximum shared segment size, in bytes
#kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
#kernel.shmall = 268435456


# ZoneMinder specific shared memory settings
kernel.shmall = 4294967295
kernel.shmmax = 4294967295

- Cleared value for PATH_MAP (Options --> Path)

- A few reboots.

zm_debug.log (level 9)

Code: Select all

03/19/09 08:11:24.377172 zmc_m1[13852].DB4-zm_remote_camera_http.cpp/839 [Got content length subheader ' 42090']
03/19/09 08:11:24.377213 zmc_m1[13852].DB3-zm_remote_camera_http.cpp/865 [Got boundary '--TOSHIBA_IK-WB15_getstream.cgi...']
03/19/09 08:11:24.377256 zmc_m1[13852].DB3-zm_remote_camera_http.cpp/871 [Got subcontent length '42090']
03/19/09 08:11:24.377297 zmc_m1[13852].DB3-zm_remote_camera_http.cpp/878 [Got subcontent type 'image/jpeg']
03/19/09 08:11:24.377372 zmc_m1[13852].DB3-zm_remote_camera_http.cpp/165 [Socket closed]
03/19/09 08:11:24.377736 zmc_m1[13852].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
03/19/09 08:11:24.377880 zmc_m1[13852].ERR-zm_signal.cpp/84 [Signal address is 0xdfcd7e6c, from 0x8079055]
03/19/09 08:11:24.378290 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8079055]]
03/19/09 08:11:24.378384 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8079055]]
03/19/09 08:11:24.378472 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x807a25c]]
03/19/09 08:11:24.378551 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x807bfba]]
03/19/09 08:11:24.378645 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x806d31a]]
03/19/09 08:11:24.378731 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
03/19/09 08:11:24.378774 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
03/19/09 08:11:24.378902 zmc_m1[13852].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804c741]]
03/19/09 08:11:24.378988 zmc_m1[13852].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
03/19/09 08:11:24.379066 zmc_m1[13852].INF-zm_signal.cpp/126 [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
tail: zm_debug.log: file truncated
03/19/09 08:11:34.135618 zmc_m2[13875].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
03/19/09 08:11:34.137164 zmc_m2[13875].DB1-zm_monitor.cpp/2260 [Got 1 monitors]
03/19/09 08:11:34.139044 zmc_m2[13875].DB2-zm_remote_camera_http.cpp/68 [Request: GET /user/cgi-bin/getstream.cgi?11&&&&0&1&0&0&0 HTTP/1.1
User-Agent: ZoneMinder/1.24.1
Here's /var/log/messages:

Code: Select all

Mar 19 08:13:00 sv01 zmc_m2[13892]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Signal address is 0xdfe4cfdc, from 0x8079055]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x807a25c]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x807bfba]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x806d31a]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: ERR [Backtrace: /usr/local/bin/zmc [0x804c741]]
Mar 19 08:13:00 sv01 zmc_m2[13892]: INF [Backtrace complete, please execute the following command for more information]
Mar 19 08:13:00 sv01 zmc_m2[13892]: INF [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
Mar 19 08:13:00 sv01 zmdc[2137]: ERR ['zmc -m 2' exited abnormally, exit status 11] 
Mar 19 08:13:06 sv01 zmwatch[2183]: INF [Restarting capture daemon for Back-NE, time since last capture 6 seconds (1237464786-1237464780)] 
Mar 19 08:13:06 sv01 zmdc[2137]: INF ['zmc -m 2' starting at 09/03/19 08:13:06, pid = 13902] 
Mar 19 08:13:06 sv01 zmdc[13902]: INF ['zmc -m 2' started at 09/03/19 08:13:06] 
Mar 19 08:13:06 sv01 zmc_m2[13902]: INF [Debug Level = 0, Debug Log = <none>]
Mar 19 08:13:06 sv01 zmwatch[2183]: INF ['zmc -m 2' starting at 09/03/19 08:13:06, pid = 13902] 
Mar 19 08:13:06 sv01 zmc_m2[13902]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
Mar 19 08:13:07 sv01 zmc_m2[13902]: INF [Starting Capture]
Mar 19 08:13:22 sv01 zmc_m1[13897]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Signal address is 0xdfa283bc, from 0x8079055]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x807a25c]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x807bfba]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x806d31a]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: ERR [Backtrace: /usr/local/bin/zmc [0x804c741]]
Mar 19 08:13:22 sv01 zmc_m1[13897]: INF [Backtrace complete, please execute the following command for more information]
Mar 19 08:13:22 sv01 zmc_m1[13897]: INF [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
Mar 19 08:13:22 sv01 zmdc[2137]: ERR ['zmc -m 1' exited abnormally, exit status 11] 
Mar 19 08:13:32 sv01 zmc_m2[13902]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Signal address is 0xdf91229c, from 0x8079055]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x807a25c]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x807bfba]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x806d31a]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: ERR [Backtrace: /usr/local/bin/zmc [0x804c741]]
Mar 19 08:13:32 sv01 zmc_m2[13902]: INF [Backtrace complete, please execute the following command for more information]
Mar 19 08:13:32 sv01 zmc_m2[13902]: INF [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
Mar 19 08:13:32 sv01 zmdc[2137]: ERR ['zmc -m 2' exited abnormally, exit status 11] 
Mar 19 08:13:36 sv01 zmwatch[2183]: INF [Restarting capture daemon for Front-SE, time since last capture 15 seconds (1237464816-1237464801)] 
Mar 19 08:13:36 sv01 zmdc[2137]: INF ['zmc -m 1' starting at 09/03/19 08:13:36, pid = 13906] 
Mar 19 08:13:37 sv01 zmdc[13906]: INF ['zmc -m 1' started at 09/03/19 08:13:37] 
Mar 19 08:13:37 sv01 zmc_m1[13906]: INF [Debug Level = 0, Debug Log = <none>]
Mar 19 08:13:37 sv01 zmwatch[2183]: INF ['zmc -m 1' starting at 09/03/19 08:13:36, pid = 13906] 
Mar 19 08:13:37 sv01 zmc_m1[13906]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
Mar 19 08:13:37 sv01 zmc_m1[13906]: INF [Starting Capture]
Mar 19 08:13:47 sv01 zmwatch[2183]: INF [Restarting capture daemon for Back-NE, time since last capture 15 seconds (1237464827-1237464812)] 
Mar 19 08:13:47 sv01 zmdc[2137]: INF ['zmc -m 2' starting at 09/03/19 08:13:47, pid = 13910] 
Mar 19 08:13:47 sv01 zmdc[13910]: INF ['zmc -m 2' started at 09/03/19 08:13:47] 
Mar 19 08:13:47 sv01 zmc_m2[13910]: INF [Debug Level = 0, Debug Log = <none>]
Mar 19 08:13:47 sv01 zmc_m2[13910]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
Mar 19 08:13:47 sv01 zmc_m2[13910]: INF [Starting Capture]
Mar 19 08:13:47 sv01 zmwatch[2183]: INF ['zmc -m 2' starting at 09/03/19 08:13:47, pid = 13910] 
Mar 19 08:14:10 sv01 zmc_m1[13906]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Signal address is 0xdfbd1a2c, from 0x8079055]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x807a25c]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x807bfba]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x806d31a]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: ERR [Backtrace: /usr/local/bin/zmc [0x804c741]]
Mar 19 08:14:10 sv01 zmc_m1[13906]: INF [Backtrace complete, please execute the following command for more information]
Mar 19 08:14:10 sv01 zmc_m1[13906]: INF [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
Mar 19 08:14:10 sv01 zmdc[2137]: ERR ['zmc -m 1' exited abnormally, exit status 11] 
Mar 19 08:14:17 sv01 zmwatch[2183]: INF [Restarting capture daemon for Front-SE, time since last capture 7 seconds (1237464857-1237464850)] 
Mar 19 08:14:18 sv01 zmdc[2137]: INF ['zmc -m 1' starting at 09/03/19 08:14:18, pid = 13915] 
Mar 19 08:14:18 sv01 zmdc[13915]: INF ['zmc -m 1' started at 09/03/19 08:14:18] 
Mar 19 08:14:18 sv01 zmc_m1[13915]: INF [Debug Level = 0, Debug Log = <none>]
Mar 19 08:14:18 sv01 zmwatch[2183]: INF ['zmc -m 1' starting at 09/03/19 08:14:18, pid = 13915] 
Mar 19 08:14:18 sv01 zmc_m1[13915]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
Mar 19 08:14:18 sv01 zmc_m1[13915]: INF [Starting Capture]
Mar 19 08:14:29 sv01 zmc_m2[13910]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Signal address is 0xdfadac6c, from 0x8079055]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x807a25c]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x807bfba]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x806d31a]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: ERR [Backtrace: /usr/local/bin/zmc [0x804c741]]
Mar 19 08:14:29 sv01 zmc_m2[13910]: INF [Backtrace complete, please execute the following command for more information]
Mar 19 08:14:29 sv01 zmc_m2[13910]: INF [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
Mar 19 08:14:29 sv01 zmdc[2137]: ERR ['zmc -m 2' exited abnormally, exit status 11] 
Mar 19 08:14:38 sv01 zmwatch[2183]: INF [Restarting capture daemon for Back-NE, time since last capture 9 seconds (1237464878-1237464869)] 
Mar 19 08:14:38 sv01 zmdc[2137]: INF ['zmc -m 2' starting at 09/03/19 08:14:38, pid = 13921] 
Mar 19 08:14:38 sv01 zmdc[13921]: INF ['zmc -m 2' started at 09/03/19 08:14:38] 
Mar 19 08:14:38 sv01 zmc_m2[13921]: INF [Debug Level = 0, Debug Log = <none>]
Mar 19 08:14:38 sv01 zmwatch[2183]: INF ['zmc -m 2' starting at 09/03/19 08:14:38, pid = 13921] 
Mar 19 08:14:38 sv01 zmc_m2[13921]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
Mar 19 08:14:39 sv01 zmc_m2[13921]: INF [Starting Capture]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

4evernoob
Posts: 2
Joined: Thu Mar 19, 2009 9:48 pm

Post by 4evernoob »

I also have the same problem as above, IF I use the "video for linux 2" to setup camera. If i use version 1 then there is no backtrace but the debug error is:

Code: Select all

zmc_dvideo0[-1].ERR-zm_local_camera.cpp/1175 [Capture failure for frame 0: Invalid argument]
03/19/09 23:47:28.229489 zmc_dvideo0[-1].ERR-zmc.cpp/199 [Failed to prime capture of initial monitor]
Here is output of addr2line:

Code: Select all

addr2line -e /usr/local/bin/zmc 0x3746e0de70 0x3746230155 0x3746231bf0 0x40d68e 0x41c255 0x41c67d 0x404ed5 0x374621d8b4 0x404a79]
??:0
??:0
??:0
??:0
/root/ZoneMinder-1.24.1/src/zm_local_camera.cpp:387
/root/ZoneMinder-1.24.1/src/zm_local_camera.cpp:1140
/root/ZoneMinder-1.24.1/src/zmc.cpp:197
??:0
??:0
akupsta
Posts: 34
Joined: Sat Mar 10, 2007 8:11 pm

Post by akupsta »

Here are the details of my seg faluts. This morning I had a closer look at it. I have two monitors defined, same camera (the Toshiba IKWB15A), same http string (MJPEG), and identical buffer settings.

Monitor 1 is the only one that is affected. Seg Faults every 10 seconds or so. Monitor 2 is solid. Even with monitor 2 disabled, monitor 1 seg faults.

Here are the debug dumps:

/var/log/messages:

Code: Select all

Mar 20 04:59:15 sv01 zmwatch[2299]: INF [Restarting capture daemon for Front-SE, time since last capture 8 seconds (1237539555-1237539547)] 
Mar 20 04:59:16 sv01 zmdc[2254]: INF ['zmc -m 1' starting at 09/03/20 04:59:15, pid = 13363] 
Mar 20 04:59:16 sv01 zmdc[13363]: INF ['zmc -m 1' started at 09/03/20 04:59:16] 
Mar 20 04:59:16 sv01 zmc_m1[13363]: INF [Debug Level = 0, Debug Log = <none>]
Mar 20 04:59:16 sv01 zmwatch[2299]: INF ['zmc -m 1' starting at 09/03/20 04:59:15, pid = 13363] 
Mar 20 04:59:16 sv01 zmc_m1[13363]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log]
Mar 20 04:59:16 sv01 zmc_m1[13363]: INF [Starting Capture]
Mar 20 05:00:15 sv01 zmc_m1[13363]: INF [Got signal 11 (Segmentation fault), crashing]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Signal address is 0xdffac70c, from 0x8079055]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x8079055]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x807a25c]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x807bfba]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x806d31a]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: ERR [Backtrace: /usr/local/bin/zmc [0x804c741]]
Mar 20 05:00:15 sv01 zmc_m1[13363]: INF [Backtrace complete, please execute the following command for more information]
Mar 20 05:00:15 sv01 zmc_m1[13363]: INF [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]
Mar 20 05:00:15 sv01 zmdc[2254]: ERR ['zmc -m 1' exited abnormally, exit status 11] 

addr2line dumps: ( did 2 at different times (30 min apart), same output )

Code: Select all

[root@sv01 ~]# addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:133
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:133
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:930
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:1040
/root/zmbuild/ZoneMinder-1.24.1/src/zm_monitor.cpp:2472
/root/zmbuild/ZoneMinder-1.24.1/src/zmc.cpp:256
??:0
??:0


[root@sv01 ~]# addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:133
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:133
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:930
/root/zmbuild/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:1040
/root/zmbuild/ZoneMinder-1.24.1/src/zm_monitor.cpp:2472
/root/zmbuild/ZoneMinder-1.24.1/src/zmc.cpp:256
??:0
??:0
[root@sv01 ~]# 
akupsta
Posts: 34
Joined: Sat Mar 10, 2007 8:11 pm

Post by akupsta »

Bump.. Anyone?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You are getting a crash in a very odd place where I would not expect it. Can you rerun with debug for zmc set to about 5 or so (to begin with) and post what you get immediately before the crash.
Phil
akupsta
Posts: 34
Joined: Sat Mar 10, 2007 8:11 pm

Post by akupsta »

Hi Phil,

I was a bit inaccurate in my initial overview of the problem. Both monitors (not just one as previously stated) are experiencing seg faults (sig. 11).

As far as I can tell, there is no configuration difference on the cameras from my working 1.22.3 setup. The monitors in 1.24.1 are pointing to the same URL (different session / client ID). The same problem still occurs when I completely shutdown the 1.22.3 server and just leave the 1.24.1 running. These are separate servers.

Here's a snip of the zmdc.log (logging set to 5 in options):

Code: Select all

03/26/09 22:24:32.739838 zmdc[20302].INF [Server starting at 09/03/26 22:24:32]
03/26/09 22:24:36.114654 zmdc[20302].INF ['zmc -m 1' starting at 09/03/26 22:24:36, pid = 20325]
03/26/09 22:24:36.750916 zmdc[20302].INF ['zmc -m 2' starting at 09/03/26 22:24:36, pid = 20329]
03/26/09 22:24:37.467888 zmdc[20302].INF ['zmfilter.pl' starting at 09/03/26 22:24:37, pid = 20333]
03/26/09 22:24:38.266810 zmdc[20302].INF ['zmaudit.pl -c' starting at 09/03/26 22:24:38, pid = 20338]
03/26/09 22:24:38.920601 zmdc[20302].INF ['zmwatch.pl' starting at 09/03/26 22:24:38, pid = 20343]
03/26/09 22:24:39.486476 zmdc[20302].INF ['zmupdate.pl -c' starting at 09/03/26 22:24:39, pid = 20347]
03/26/09 22:25:12.015552 zmdc[20302].ERR ['zmc -m 1' exited abnormally, exit status 11]
03/26/09 22:25:12.017089 zmdc[20302].INF [Starting pending process, zmc -m 1] 
03/26/09 22:25:12.038792 zmdc[20302].INF ['zmc -m 1' starting at 09/03/26 22:25:12, pid = 20377]
03/26/09 22:25:56.458143 zmdc[20302].ERR ['zmc -m 1' exited abnormally, exit status 11]
03/26/09 22:26:01.065676 zmdc[20302].INF [Starting pending process, zmc -m 1] 
03/26/09 22:26:01.074305 zmdc[20302].INF ['zmc -m 1' starting at 09/03/26 22:26:01, pid = 20453]
03/26/09 22:26:38.355330 zmdc[20302].ERR ['zmc -m 1' exited abnormally, exit status 11]
03/26/09 22:26:48.089738 zmdc[20302].INF [Starting pending process, zmc -m 1]
03/26/09 22:26:48.101317 zmdc[20302].INF ['zmc -m 1' starting at 09/03/26 22:26:48, pid = 20471]
03/26/09 22:27:22.123347 zmdc[20302].ERR ['zmc -m 1' exited abnormally, exit status 11]
03/26/09 22:27:29.551782 zmdc[20302].INF ['zmc -m 1' starting at 09/03/26 22:27:29, pid = 20503]
03/26/09 22:28:04.555553 zmdc[20302].ERR ['zmc -m 1' exited abnormally, exit status 11]
03/26/09 22:28:20.164184 zmdc[20302].INF ['zmc -m 1' starting at 09/03/26 22:28:20, pid = 20534]

Here's a snip of zm_debug.log:

Code: Select all

????']
03/26/09 22:25:10.666271 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/845 [Got content type subheader ' image/jpeg']
03/26/09 22:25:10.666312 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/839 [Got content length subheader ' 40650']
03/26/09 22:25:10.666465 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/865 [Got boundary '--TOSHIBA_IK-WB15_getstream.cgi...']
03/26/09 22:25:10.666539 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/871 [Got subcontent length '40650']
03/26/09 22:25:10.666578 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/878 [Got subcontent type 'image/jpeg']
03/26/09 22:25:10.666618 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/936 [Got end of image by length, content-length = 40650]
03/26/09 22:25:10.666657 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/1003 [Returning 40650 (145379) bytes of captured content]
03/26/09 22:25:11.001177 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/833 [Got boundary subheader '--TOSHIBA_IK-WB15_getstream.cgi...
Content-Type: image/jpeg
Content-Length: 40598

????']
03/26/09 22:25:11.001246 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/845 [Got content type subheader ' image/jpeg']
03/26/09 22:25:11.001294 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/839 [Got content length subheader ' 40598']
03/26/09 22:25:11.001334 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/865 [Got boundary '--TOSHIBA_IK-WB15_getstream.cgi...']
03/26/09 22:25:11.001374 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/871 [Got subcontent length '40598']
03/26/09 22:25:11.001483 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/878 [Got subcontent type 'image/jpeg']
03/26/09 22:25:11.001523 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/936 [Got end of image by length, content-length = 40598]
03/26/09 22:25:11.001572 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/1003 [Returning 40598 (104640) bytes of captured content]
03/26/09 22:25:11.336062 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/833 [Got boundary subheader '--TOSHIBA_IK-WB15_getstream.cgi...
Content-Type: image/jpeg
Content-Length: 40619

????']
03/26/09 22:25:11.336132 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/845 [Got content type subheader ' image/jpeg']
03/26/09 22:25:11.336173 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/839 [Got content length subheader ' 40619']
03/26/09 22:25:11.336220 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/865 [Got boundary '--TOSHIBA_IK-WB15_getstream.cgi...']
03/26/09 22:25:11.336260 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/871 [Got subcontent length '40619']
03/26/09 22:25:11.336298 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/878 [Got subcontent type 'image/jpeg']
03/26/09 22:25:11.336337 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/936 [Got end of image by length, content-length = 40619]
03/26/09 22:25:11.336376 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/1003 [Returning 40619 (63953) bytes of captured content]
03/26/09 22:25:11.670982 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/833 [Got boundary subheader '--TOSHIBA_IK-WB15_getstream.cgi...
Content-Type: image/jpeg
Content-Length: 40710

????']
03/26/09 22:25:11.671060 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/845 [Got content type subheader ' image/jpeg']
03/26/09 22:25:11.671102 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/839 [Got content length subheader ' 40710']
03/26/09 22:25:11.671151 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/865 [Got boundary '--TOSHIBA_IK-WB15_getstream.cgi...']
03/26/09 22:25:11.671192 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/871 [Got subcontent length '40710']
03/26/09 22:25:11.671231 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/878 [Got subcontent type 'image/jpeg']
03/26/09 22:25:11.671286 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/170 [Expecting 53448 bytes]
03/26/09 22:25:11.671608 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/195 [Read 40960 bytes]
03/26/09 22:25:11.671629 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/195 [Read 12488 bytes]
03/26/09 22:25:11.671837 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/936 [Got end of image by length, content-length = 40710]
03/26/09 22:25:11.671876 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/1003 [Returning 40710 (76693) bytes of captured content]
03/26/09 22:25:12.005849 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/833 [Got boundary subheader '--TOSHIBA_IK-WB15_getstream.cgi...
Content-Type: image/jpeg
Content-Length: 40806

????']
03/26/09 22:25:12.005918 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/845 [Got content type subheader ' image/jpeg']
03/26/09 22:25:12.005972 zmc_m1[20325].DB4-zm_remote_camera_http.cpp/839 [Got content length subheader ' 40806']
03/26/09 22:25:12.006018 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/865 [Got boundary '--TOSHIBA_IK-WB15_getstream.cgi...']
03/26/09 22:25:12.006059 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/871 [Got subcontent length '40806']
03/26/09 22:25:12.006098 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/878 [Got subcontent type 'image/jpeg']
03/26/09 22:25:12.006152 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/165 [Socket closed]
03/26/09 22:25:12.006360 zmc_m1[20325].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
03/26/09 22:25:12.006482 zmc_m1[20325].ERR-zm_signal.cpp/84 [Signal address is 0xdfd6b7bc, from 0x8079055]
03/26/09 22:25:12.006885 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8079055]]
03/26/09 22:25:12.006985 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8079055]]
03/26/09 22:25:12.007069 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x807a25c]]
03/26/09 22:25:12.007145 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x807bfba]]
03/26/09 22:25:12.007351 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x806d31a]]
03/26/09 22:25:12.007429 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804cfa2]]
03/26/09 22:25:12.007505 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x5efdec]]
03/26/09 22:25:12.007586 zmc_m1[20325].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804c741]]
03/26/09 22:25:12.007663 zmc_m1[20325].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
03/26/09 22:25:12.007703 zmc_m1[20325].INF-zm_signal.cpp/126 [addr2line -e /usr/local/bin/zmc 0x8079055 0x8079055 0x807a25c 0x807bfba 0x806d31a 0x804cfa2 0x5efdec 0x804c741]


Let me know what other info you require.

Thanks for your help.

Adam.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

03/26/09 22:25:12.006152 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/165 [Socket closed]
Looks like the camera closed the connection.
Might try capturing the stream with wget saving to /dev/null and see how long it goes before closing the stream. Not sure why it would do that unless it has some sort of timeout feature.
akupsta
Posts: 34
Joined: Sat Mar 10, 2007 8:11 pm

Post by akupsta »

cordel wrote:
03/26/09 22:25:12.006152 zmc_m1[20325].DB3-zm_remote_camera_http.cpp/165 [Socket closed]
Looks like the camera closed the connection.
Might try capturing the stream with wget saving to /dev/null and see how long it goes before closing the stream. Not sure why it would do that unless it has some sort of timeout feature.
I did the wget test and I was able to save the stream for well over an hour without any interruptions (I stopped it manually). ZM 1.22.3 has no issues with the stream either. ( copied and pasted the url out of the ZM 1.24.1 config )

ZM 1.24.1 crashes within 5 minutes.

The camera is not closing the connection, ZM is. If the camera closed it then ZM should exist gracefully not seg fault.
akupsta
Posts: 34
Joined: Sat Mar 10, 2007 8:11 pm

Post by akupsta »

Would it be an ffmpeg issue? Here are the contents of version.h (used with 1.24.1):

Code: Select all

root ffmpeg]# cat version.h
#define FFMPEG_VERSION "git-0420a83"
[root ffmpeg]# 

Is there another version that I should be running with ZM1.24?

FYI..

version.h from the working 1.22.3 install:

Code: Select all

[root ffmpeg]# cat version.h
#define FFMPEG_VERSION "SVN-r8273"
[root ffmpeg]# 
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you run ffmpeg -version what do you get
Not sure that a git revision holds much relevance as it is something newer.

Basically it needs to be a version of ffmpeg from the repositories on or after Feb 2nd or so.
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

akupsta, I have a feeling that your problem is related to mine, and that would be SHARED MEMORY related; are you sure you´re done ok with that ? did you set the values kernel.shmall and kernel.shmmax to fit your memory?
many people are experiencing that and so do I; if i find out my solution I promess to post here too, as I think its related;
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
rcswrc
Posts: 29
Joined: Thu Dec 29, 2005 10:19 pm
Location: Costa Rica

ZM 1.24.1 Seg Faults

Post by rcswrc »

I have those same dumps.

my error log:

Code: Select all

Jun  3 16:54:12 zm zmc_m4[20665]: INF [Got signal 11 (Segmentation fault), crashing]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Signal address is 0xdffbdd2c, from 0x80795ef]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc [0x80795ef]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc [0x80795ef]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc [0x807af43]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc [0x807c71a]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc [0x806d624]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc [0x804d0a0]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7073455]]
Jun  3 16:54:12 zm zmc_m4[20665]: ERR [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x385) [0x804c951]]
Jun  3 16:54:12 zm zmc_m4[20665]: INF [Backtrace complete, please execute the following command for more information]
Jun  3 16:54:12 zm zmc_m4[20665]: INF [addr2line -e /usr/local/bin/zmc(__gxx_personality_v0+0x385) 0x80795ef 0x80795ef 0x807af43 0x807c71a 0x806d624 0x804d0a0 0xb7073455 0x804c951]
Jun  3 16:54:12 zm zmdc[20007]: ERR ['zmc -m 4' exited abnormally, exit status 11]

This is the result of executing addr2line

Code: Select all

addr2line -e /usr/local/bin/zmc 0x80795ef 0x80795ef 0x807af43 0x807c71a 0x806d624 0x804d0a0 0xb6fb9455 0x804c951                           /opt/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:133
/opt/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:133
/opt/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:420
/opt/ZoneMinder-1.24.1/src/zm_remote_camera_http.cpp:1040
/opt/ZoneMinder-1.24.1/src/zm_monitor.cpp:2472
/opt/ZoneMinder-1.24.1/src/zmc.cpp:256
??:0
??:0
my ffmpeg version is :

Code: Select all

ffmpeg -v
FFmpeg version SVN-r19082, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --incdir=/usr/include/ --enable-avfilter --enable-nonfree --enable-gpl --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libxvid --enable-shared
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.30. 2 / 52.30. 2
  libavformat   52.34. 0 / 52.34. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    0. 5. 0 /  0. 5. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun  3 2009 16:12:25, gcc: 4.3.2
And my kernel shared memory is set to (RAM 4GB)
shmall: 2048000
shmmax: 4194304000

Got 4 ip cameras, in 640*480 24 bit color, 80 ring buffer (2xAxis206 1xPanasonic BLC1)

Also I'm using the libjpeg SIMD-MMX libraries for i386
  • - I already tried to upgrade the ffmpeg with no success , which is installed from the subversion source.
    - Shared memory configuration is already to maximun, I mean that's just enough
    - All the cameras crash apparently for the same reason (which I don't know), the events just end before time.
zmcomm
Posts: 2
Joined: Wed Jul 01, 2009 8:29 am

More info

Post by zmcomm »

Hi,

I would like to add some more detail to this problem (which I face too).

I have traced it to using more than 1 zone per image. As soon as I put 2 active zones in one cam I start getting the segfaults.

My (test) setup includes 1 BT848 cam using video4linux2 and some IP cameras.

The problem occurs in the bt848 one (I have not tested the IP cameras yet).
rcswrc
Posts: 29
Joined: Thu Dec 29, 2005 10:19 pm
Location: Costa Rica

Post by rcswrc »

Curious, I use only one zone per camera and all of them are remote.
Locked