Segmentation fault general advice please

Forum for questions and support relating to the 1.24.x releases only.
Locked
ZonedOut
Posts: 8
Joined: Sat Nov 27, 2010 9:50 pm

Segmentation fault general advice please

Post by ZonedOut »

There doesnt seem to be a lot of answers as to the specific cause of segmentation faults with zoneminder. Maybe its not even zoneminder. But could someone give me a hint where or what to start looking for please?

I run ZM 1.24.2 on one Ubuntu 10.4 32 bit Dell box quite happily. On a new Dell box also running Ubuntu 10.4 64 bit, ZM 1.24.2 segfaults. If I compile the latest from source, it segfaults. If I run Ubuntu 32 bit on a VM on the same box, it also segfaults. Everything else on the box runs fine, no hint of any hardware faults or other applications failing.

Where should I start looking :

Should I suspect my hardware - memory, video card etc? (although everything else runs fine)
Should I suspect Ubuntu itself ? (althought its the same version)
Should I suspect one of the installed packages, Perl or something?
Should I suspect the way Ive installed ZM (although I just installed the package from repositories) ?
Maybe file paths or permissions, although this seems like a long shot!

I would really appreciate any hints on where to start or where to get help. Google has not been my friend on this one, although does reveal plenty of others with the same issue.
Oct 5 20:31:18 Pluto zmdc[2464]: INF [Starting pending process, zmc -d /dev/video0]
Oct 5 20:31:18 Pluto zmdc[2464]: INF ['zmc -d /dev/video0' starting at 11/10/05 20:31:18, pid = 2879]
Oct 5 20:31:18 Pluto zmdc[2879]: INF ['zmc -d /dev/video0' started at 11/10/05 20:31:18]
Oct 5 20:31:18 Pluto zmc_dvideo0[2879]: INF [Debug Level = 0, Debug Log = <none>]
Oct 5 20:31:18 Pluto zmc_dvideo0[2879]: INF [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.02879]
Oct 5 20:31:18 Pluto zmc_dvideo0[2879]: INF [Starting Capture]
Oct 5 20:31:18 Pluto zmc_dvideo0[2879]: WAR [Hue control is not suppported]
Oct 5 20:31:18 Pluto zmc_dvideo0[2879]: WAR [Saturation control is not suppported]
Oct 5 20:31:20 Pluto kernel: [ 6709.079848] zc3xx: probe 2wr ov vga 0x0000
Oct 5 20:31:21 Pluto zmc_dvideo0[2879]: INF [Got signal 11 (Segmentation fault), crashing]
Oct 5 20:31:21 Pluto zmdc[2464]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]


Debug log :
10/05/11 19:39:42.247616 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/654 [Setting up static colour tables]
10/05/11 19:39:42.247660 zmc_dvideo0[2497].DB2-zm_local_camera.cpp/1439 [Priming capture]
10/05/11 19:39:42.247675 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/1443 [Queueing buffers]
10/05/11 19:39:42.247719 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/1459 [Starting video stream]
10/05/11 19:39:45.290417 zmc_dvideo0[2497].DB2-zm_local_camera.cpp/1485 [Pre-capturing]
10/05/11 19:39:45.290523 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/1491 [Capturing]
10/05/11 19:39:45.290567 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/1514 [Capturing 1 frames]
10/05/11 19:39:45.372019 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/1538 [Captured frame 0/1 from channel 0]
10/05/11 19:39:45.372072 zmc_dvideo0[2497].DB3-zm_local_camera.cpp/1572 [Doing format conversion]
10/05/11 19:39:45.372643 zmc_dvideo0[2497].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
And the debug trace gives :
addr2line -e /usr/local/bin/zmc 0x7f30b67778f0 0x7f30b5687f13 0x41c13c 0x4247a6 0x405d2a 0x7f30b561fc4d 0x4055e9
??:0
??:0
/home/colic/zoneminder/src/zm_local_camera.cpp:1960
/home/colic/zoneminder/src/zm_monitor.cpp:2525
/home/colic/zoneminder/src/zmc.cpp:261
??:0
??:0
which leads to :

zm_local_camera :
Debug( 3, "Assigning image" );
image.Assign( width, height, colours, buffer );
zm_monitor :
int Monitor::Capture()
{
int captureResult = camera->Capture( image );
if ( captureResult == 1 )
{
and zmc :
grep "Failed to pre-capture monitor" zmc.cpp -B2 -A4
if ( monitors->PreCapture() < 0 )
{
Error( "Failed to pre-capture monitor %d (%d/%d)", monitors->Id(), i, n_monitors );
zm_terminate = true;
result = -1;
break;
==============================================================
Zoneminder 1.24.2, 4 Logitech usb webcams, Intel Pentium M 32 bit 1.4GHz, 500KB, Ubuntu 10.4
Building Zoneminder 1.24.4, 1 Logitec usb webcam, Core2Duo e6600 2.4GHz, 2GB.
Locked