Got signal 11 (Segmentation fault), crashing. Ubuntu 8.10

Forum for questions and support relating to the 1.24.x releases only.
Locked
wisekki
Posts: 39
Joined: Tue Feb 27, 2007 11:58 am

Got signal 11 (Segmentation fault), crashing. Ubuntu 8.10

Post by wisekki »

Hello,

Now I've tried the latest version of ZM with Ubuntu 8.10 64bit and here are the results.

zmdc.log says:

Code: Select all

02/26/09 08:18:31.754029 zmdc[28998].INF ['zmc -d /dev/video0' starting at 09/02/26 08:18:31, pid = 31649]
02/26/09 08:18:24.614057 zmdc[28998].ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
syslog says:

Code: Select all

Feb 26 08:20:15 router zmdc[28998]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11] 
Feb 26 08:20:16 router zmc_dvideo0[32052]: INF [Got signal 11 (Segmentation fault), crashing]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Signal address is 0x10206, no eip]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /lib/libpthread.so.0 [0x7fa7f46270f0]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /opt/lib/libswscale.so.0(rgb32to24+0x10) [0x7fa7f5ec2340]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /opt/lib/libswscale.so.0 [0x7fa7f5ecd40f]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /opt/lib/libswscale.so.0(sws_scale+0x590) [0x7fa7f5ec92d0]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /usr/local/bin/zmc [0x41e5e0]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /usr/local/bin/zmc [0x423f46]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /usr/local/bin/zmc [0x406cd2]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xe6) [0x7fa7f34db466]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: ERR [Backtrace: /usr/local/bin/zmc [0x4065f9]]
Feb 26 08:20:16 router zmc_dvideo0[32052]: INF [Backtrace complete, please execute the following command for more information]
Feb 26 08:20:16 router zmc_dvideo0[32052]: INF [addr2line -e /usr/local/bin/zmc 0x7fa7f46270f0 0x7fa7f5ec2340 0x7fa7f5ecd40f 0x7fa7f5ec92d0 0x41e5e0 0x423f46 0x406cd2 0x7fa7f34db466 0x4065f9]
When executed the suggested command:

Code: Select all

addr2line -e /usr/local/bin/zmc 0x7f6b8c8670f0 0x7f6b8e102340 0x7f6b8e10d40f 0x7f6b8e1092d0 0x41e5e0 0x423f46 0x406cd2 0x7f6b8b71b466 0x4065f9
??:0
??:0
??:0
??:0
??:0
/work/ZoneMinder-1.24.1/src/zm_local_camera.cpp:1297
/work/ZoneMinder-1.24.1/src/zm_monitor.cpp:2472
/work/ZoneMinder-1.24.1/src/zmc.cpp:256
??:0
??:0
So what is wrong? What should I do different? I've compiled ffmpeg and zm from source. I'm using the not-so-famous gspca driver with logitech's usb-cams and I've tried both v4l and v4l2.

If this is still a driver problem as some of you said with 1.23 when I had similiar problems then what can I do? Any other driver out there for Logitech usb-cams?

Thnx for your answers already!

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

Post by zoneminder »

Hmm. This looks a bit tricky as there isn't much information in the logs or backtrace. It doesn't look like it's crashing in the driver but rather in the software scaler of ffmpeg. This is either because there is a problem in swscale or there is a problem with what is being passed into it.

One thing to try might be to temporarily disable the swscale part. You can either do this by uninstalling ffmpeg and rerunning configure with the --enable-swscale and then rebuild and reinstall, then rerun configure and make etc for ZM. Or you can probably cheat by editing the config.h file in ZM and commenting out the HAVE_*_SWSCALE* entries.
Phil
wisekki
Posts: 39
Joined: Tue Feb 27, 2007 11:58 am

Post by wisekki »

Thnx for the answer!

I disabled swscale and recompiled zm again. Now it's like this:

syslog:

Code: Select all

Feb 26 15:03:06 router zmc_dvideo0[5659]: INF [Starting Capture]
Feb 26 15:03:08 router kernel: [278266.060014] zc3xx: probe 2wr ov vga 0x0000
Feb 26 15:03:09 router zmc_dvideo0[5659]: INF [Got signal 11 (Segmentation fault), crashing]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Signal address is 0x10216, no eip]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /lib/libpthread.so.0 [0x7f5ca9c580f0]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x283) [0x7f5ca8b73373]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /usr/local/bin/zmc [0x41c8e9]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /usr/local/bin/zmc [0x422246]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /usr/local/bin/zmc [0x405ca2]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f5ca8b0c466]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: ERR [Backtrace: /usr/local/bin/zmc [0x4055c9]]
Feb 26 15:03:09 router zmc_dvideo0[5659]: INF [Backtrace complete, please execute the following command for more information]
Feb 26 15:03:09 router zmc_dvideo0[5659]: INF [addr2line -e /usr/local/bin/zmc 0x7f5ca9c580f0 0x7f5ca8b73373 0x41c8e9 0x422246 0x405ca2 0x7f5ca8b0c466 0x4055c9]
Feb 26 15:03:09 router zmdc[5573]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
Running addr2line:

Code: Select all

??:0
??:0
/work/ZoneMinder-1.24.1/src/zm_local_camera.cpp:1580
/work/ZoneMinder-1.24.1/src/zm_monitor.cpp:2472
/work/ZoneMinder-1.24.1/src/zmc.cpp:256
??:0
??:0
I'm very confused now, but I know you guys can resolve this :)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you give us a few more details about your system and cams etc. This looks a bit odd.
Phil
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

I have the same initial problem - I haven't tried your solution of disabling ffmpeg etc yet.

Info on the logitech cam

Code: Select all

Video Capabilities
  Name: USB Camera (046d:08da)
  Type: 1
    Can capture
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 640
  Maximum Height: 480
  Minimum Width: 48
  Minimum Height: 32
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 640
  Height: 480
Picture Attributes
  Palette: 0 - Unknown
  Colour Depth: 8
  Brightness: 32896
  Hue: 0
  Colour :0
  Contrast: 32768
  Whiteness: 39321
Channel 0 Attributes
  Name: zc3xx
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
Using latest svn ffmpeg & zoneminder

Hope you can help

Nick
Jim.Pollard
Posts: 2
Joined: Mon Apr 13, 2009 4:23 pm

Segmentation Fault

Post by Jim.Pollard »

I'm seeing this too. I've done the disable swscale and recompile thing. Using 1.24.1 on Centos 5.3 and what I'm currently getting is:

Code: Select all

Jun 15 11:27:14 BME-ZM zmc_m2[427]: INF [Got signal 11 (Segmentation fault), crashing]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Signal address is 0xdf92d31c, from 0x8079285]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x8079285]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x8079285]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x807a48c]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x807c1ea]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x806d53a]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x804cfd2]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x99fe8c]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: ERR [Backtrace: /usr/local/bin/zmc [0x804c771]]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: INF [Backtrace complete, please execute the following command for more information]
Jun 15 11:27:14 BME-ZM zmc_m2[427]: INF [addr2line -e /usr/local/bin/zmc 0x8079285 0x8079285 0x807a48c 0x807c1ea 0x806d53a 0x804cfd2 0x99fe8c 0x804c771]
and running the back trace returns this:

Code: Select all

/root/ZM/src/zm_remote_camera_http.cpp:133
/root/ZM/src/zm_remote_camera_http.cpp:133
/root/ZM/src/zm_remote_camera_http.cpp:886
/root/ZM/src/zm_remote_camera_http.cpp:1040
/root/ZM/src/zm_monitor.cpp:2472
/root/ZM/src/zmc.cpp:256
??:0
??:0
Did ya'll ever reach a conclusion on this?
Locked