SIGSEGV in zmc

Forum for questions and support relating to the 1.24.x releases only.
Locked
ace
Posts: 1
Joined: Wed Apr 29, 2009 2:58 pm

SIGSEGV in zmc

Post by ace »

I can't get to work my USB QuickCam Messanger with zoneminder. I've compiled latest version and got SIGSEGV when I run zmc -d /dev/video.

zoneminder version 1.24.1

lsusb:
Bus 003 Device 002: ID 046d:08da Logitech, Inc. QuickCam Messanger

zmc debug log:

Code: Select all

04/29/09 17:29:47.192131 zmc_dvideo[-1].DB1-zm_monitor.cpp/1810 [Loaded monitor 2(New), 1 zones]
04/29/09 17:29:47.192156 zmc_dvideo[-1].INF-zmc.cpp/186 [Starting Capture]
04/29/09 17:29:47.192509 zmc_dvideo[-1].DB3-zm_local_camera.cpp/350 [Opening video device /dev/video]
04/29/09 17:29:47.192595 zmc_dvideo[-1].DB2-zm_local_camera.cpp/356 [V4L2 support enabled, using V4L2 api]
04/29/09 17:29:47.192613 zmc_dvideo[-1].DB3-zm_local_camera.cpp/361 [Checking video device capabilities]
04/29/09 17:29:47.192649 zmc_dvideo[-1].DB3-zm_local_camera.cpp/371 [Setting up video format]
04/29/09 17:29:47.192867 zmc_dvideo[-1].DB3-zm_local_camera.cpp/400 [Setting up request buffers]
04/29/09 17:29:47.193095 zmc_dvideo[-1].DB3-zm_local_camera.cpp/428 [Setting up 8 data buffers]
04/29/09 17:29:47.193635 zmc_dvideo[-1].DB3-zm_local_camera.cpp/466 [Configuring video source]
04/29/09 17:29:47.193756 zmc_dvideo[-1].DB3-zm_local_camera.cpp/650 [Setting up static colour tables]
04/29/09 17:29:47.193786 zmc_dvideo[-1].DB2-zm_local_camera.cpp/1140 [Priming capture]
04/29/09 17:29:47.193800 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1144 [Queueing buffers]
04/29/09 17:29:47.193825 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1160 [Starting video stream]
04/29/09 17:29:49.271564 zmc_dvideo[-1].DB2-zm_local_camera.cpp/1186 [Pre-capturing]
04/29/09 17:29:49.271646 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1192 [Capturing]
04/29/09 17:29:49.271676 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1215 [Capturing 1 frames]
04/29/09 17:29:49.375261 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1239 [Captured frame 0/1 from channel 0]
04/29/09 17:29:49.375332 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1273 [Doing format conversion]
04/29/09 17:29:49.375349 zmc_dvideo[-1].DB3-zm_local_camera.cpp/1579 [Assigning image]
04/29/09 17:29:49.375504 zmc_dvideo[-1].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
04/29/09 17:29:49.375780 zmc_dvideo[-1].ERR-zm_signal.cpp/90 [Signal address is 0x10212, no eip]
04/29/09 17:29:49.376368 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: /lib64/libpthread.so.0 [0x3ba260f0f0]]
04/29/09 17:29:49.376525 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: /lib64/libc.so.6(memcpy+0x1c3) [0x3ba1a84363]]
04/29/09 17:29:49.376655 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: zmc [0x41beb9]]
04/29/09 17:29:49.376782 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: zmc [0x421116]]
04/29/09 17:29:49.376913 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: zmc [0x4054d2]]
04/29/09 17:29:49.377038 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: /lib64/libc.so.6(__libc_start_main+0xe6) [0x3ba1a1e546]]
04/29/09 17:29:49.377163 zmc_dvideo[-1].ERR-zm_signal.cpp/122 [Backtrace: zmc [0x404df9]]
04/29/09 17:29:49.377299 zmc_dvideo[-1].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
04/29/09 17:29:49.377426 zmc_dvideo[-1].INF-zm_signal.cpp/126 [addr2line -e zmc 0x3ba260f0f0 0x3ba1a84363 0x41beb9 0x421116 0x4054d2 0x3ba1a1e546 0x404df9]
gdb trace:

Code: Select all

(gdb) run -d /dev/video
Starting program: /usr/bin/zmc -d /dev/video
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff7c577b0 (LWP 11349)]

Program received signal SIGSEGV, Segmentation fault.
0x0000003ba1a84363 in memcpy () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-3.fc10.x86_64 e2fsprogs-libs-1.41.3-2.fc10.x86_64 glibc-2.9-2.x86_64 gnutls-2.4.2-3.fc10.x86_64 keyutils-libs-1.2-3.fc9.x86_64 krb5-libs-1.6.3-16.fc10.x86_64 libgcc-4.3.2-7.x86_64 libgcrypt-1.4.3-2.fc10.x86_64 libgpg-error-1.6-2.x86_64 libjpeg-6b-43.fc10.x86_64 libselinux-2.0.73-1.fc10.x86_64 libstdc++-4.3.2-7.x86_64 libtasn1-1.5-1.fc10.x86_64 mysql-libs-5.0.77-1.fc10.x86_64 openssl-0.9.8g-11.fc10.x86_64 pcre-7.8-1.fc10.x86_64 zlib-1.2.3-18.fc9.x86_64
(gdb) bt
#0  0x0000003ba1a84363 in memcpy () from /lib64/libc.so.6
#1  0x000000000041beb9 in LocalCamera::Capture (this=0x7bb6330, image=@0x7bbe780) at zm_local_camera.cpp:1580
#2  0x0000000000421116 in Monitor::Capture (this=0x7bbe650) at zm_monitor.cpp:2472
#3  0x00000000004054d2 in main (argc=<value>, argv=<value>) at zmc.cpp:256
(gdb) frame 1
#1  0x000000000041beb9 in LocalCamera::Capture (this=0x7bb6330, image=@0x7bbe780) at zm_local_camera.cpp:1580
1580            image.Assign( width, height, colours, buffer );
(gdb) p image
$1 = (Image &) @0x7bbe780: {static initialised = true, static abs_table = 0x7bb8b8d "", static y_r_table = 0x7bc018f "", static y_g_table = 0x7bb8f9f "", static y_b_table = 0x7bb91af "", static blend_tables = {0x0 <repeats>},
  static jpg_ccinfo = {0x0 <repeats>}, static jpg_dcinfo = 0x0, static jpg_err = {pub = {error_exit = 0, emit_message = 0, output_message = 0, format_message = 0, reset_error_mgr = 0, msg_code = 0, msg_parm = {i = {0, 0, 0,
          0, 0, 0, 0, 0}, s = '\0' <repeats>}, trace_level = 0, num_warnings = 0, jpeg_message_table = 0x0, last_jpeg_message = 0, addon_message_table = 0x0, first_addon_message = 0, last_addon_message = 0}, setjmp_buffer = {{
        __jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats>}}}}}, width = 320, height = 240, pixels = 76800, colours = 3, size = 230400, allocation = 230400,
  buffer = 0x7ffff7a11010 "����", our_buffer = 176,
  text = "\000�\a", '\0' <repeats>, "���\a\000\000\000\000���\a\000\000\000\000���\a\000\000\000\000���\a\000\000\000\000ZM_DYN_SHOW_DONATE_REMINDER\0001\000boolean", '\0' <repeats>, blend_buffer = 0x0}
(gdb) p buffer
$2 = (unsigned char *) 0x7ffff7ff3000 <Address>
/var/log/messages:

Code: Select all

Apr 29 18:03:33 ace kernel: gspca: zmc open
Apr 29 18:03:33 ace kernel: gspca: open done
Apr 29 18:03:33 ace kernel: gspca: frame alloc frsz: 29390
Apr 29 18:03:33 ace kernel: gspca: reqbufs st:0 c:8
Apr 29 18:03:33 ace kernel: gspca: mmap start:f7ff3000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f7feb000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f7fe3000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f7fdb000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f7105000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f70fd000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f70f5000 size:32768
Apr 29 18:03:33 ace kernel: gspca: mmap start:f70ed000 size:32768
Apr 29 18:03:33 ace kernel: gspca: init transfer alt 7
Apr 29 18:03:33 ace kernel: gspca: use ISOC alt 6 ep 0x81
Apr 29 18:03:33 ace kernel: gspca: isoc 32 pkts size 768 (bsize:24576)
Apr 29 18:03:35 ace kernel: gspca: stream on OK JPEG 320x240
Apr 29 18:05:23 ace kernel: gspca: zmc close
Apr 29 18:05:23 ace kernel: gspca: kill transfer
Apr 29 18:05:23 ace kernel: gspca: stream off OK
Apr 29 18:05:23 ace kernel: gspca: frame free
Apr 29 18:05:23 ace kernel: gspca: close done
uname -a
Linux ace 2.6.27.21-170.2.56.fc10.x86_64 #1 SMP Mon Mar 23 23:08:10 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Locked