gdb motion GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /root/motion-20070225-051001/motion [Thread debugging using libthread_db enabled] [New Thread -1216887120 (LWP 15431)] [0] Processing thread 0 - config file /usr/local/etc/motion.conf [0] Motion running in setup mode. [0] Thread 1 is from /usr/local/etc/motion.conf [0] Thread 1 is device: /dev/video0 input 8 [New Thread -1216889952 (LWP 15434)] [1] Thread started [New Thread -1225282656 (LWP 15435)] [0] Waiting for threads to finish, pid: 15431 [0] motion-httpd/3.2.8 running, accepting connections [0] motion-httpd: waiting for data on port TCP 8080 [1] cap.driver: "uvcvideo" [1] cap.card: "USB Video Class device" [1] cap.bus_info: "0000:02:00.2" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] v4l2_select_input: name = "Camera", type 0x00000002, status 00000000 [1] - CAMERA [1] Device doesn't support VIDIOC_G_STD [1] Supported palettes: [1] 0: MJPG (MJPEG) [1] 1: YUYV (Uncompressed) [1] Test palette MJPG (960x720) [1] Using palette MJPG (960x720) bytesperlines 0 sizeimage 341333 colorspace 00000008 [1] VIDIOC_G_JPEGCOMP not supported but it should [1] found control 0x00980900, "Brightness", range 0,255 [1] "Brightness", default 127, current 79 [1] found control 0x00980901, "Contrast", range 0,255 [1] "Contrast", default 32, current 32 [1] found control 0x00980902, "Saturation", range 0,255 [1] "Saturation", default 39, current 39 [1] found control 0x00980910, "Gamma", range 100,220 [1] "Gamma", default 220, current 220 [1] found control 0x00980913, "Gain", range 0,255 [1] "Gain", default 0, current 16 [1] found control 0x08000000, "Backlight Compensation", range 0,2 [1] "Backlight Compensation", default 1, current 1 [1] found control 0x08000001, "Power Line Frequency", range 0,2 [1] "Power Line Frequency", default 2, current 2 [1] mmap information: [1] frames=4 [1] 0 length=341333 [1] 1 length=341333 [1] 2 length=341333 [1] 3 length=341333 [1] Using V4L2 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1216889952 (LWP 15434)] 0xb796c4f7 in memset () from /lib/libc.so.6 (gdb) thread apply all bt full Thread 3 (Thread -1225282656 (LWP 15435)): #0 0xffffe410 in __kernel_vsyscall () No symbol table info available. #1 0xb79b6de1 in select () from /lib/libc.so.6 No symbol table info available. #2 0x08062474 in httpd_run (cnt=0x8079008) at webhttpd.c:2099 sd = 7 client_socket_fd = 0 client_sent_quit_message = 1 val = 1 servAddr = {sin_family = 2, sin_port = 36895, sin_addr = {s_addr = 16777343}, sin_zero = "\000\000\000\000\000\000\000"} act = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {0 }}, sa_flags = 0, sa_restorer = 0} authentication = 0x0 #3 0x08062c21 in motion_web_control (arg=0x8079008) at webhttpd.c:2211 No locals. #4 0xb7f42294 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #5 0xb79bd32e in clone () from /lib/libc.so.6 No symbol table info available. Thread 2 (Thread -1216889952 (LWP 15434)): #0 0xb796c4f7 in memset () from /lib/libc.so.6 No symbol table info available. #1 0x0806349a in MJPEGDecodeFrame (mjpegFrame=0xb6726000
, mjpegFrameLen=45535, outbuf=0x8084440 "", outbufSize=1382400, MJPEG_ST=0x807e8d8) at mjpeg.c:64 got_picture = 6 len = xsize = ysize = pic_size = size = #2 0x080520a6 in v4l2_next (cnt=0x8079018, viddev=0x807f658, map=0xb6232008 '\200' ..., width=691200, height=720) at video2.c:794 the_buffer = (netcam_buff *) 0x0 set = {__val = {90625, 0 }} old = {__val = {0, 0, 1, 25148499, 146289443, 0, 16, 3, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1032192, 341333, 0, 0, 134217729, 3, 3080835360, 3080835396, 3080835396, 0, 3, 1384448}} __FUNCTION__ = "v4l2_next" ---Type to continue, or q to quit--- #3 0x08053bc0 in vid_next (cnt=0x8079018, map=0xb6232008 '\200' ...) at video_common.c:820 width = 960 height = 720 dev = 6 conf = (struct config *) 0x807a020 ret = #4 0x0804cb3e in motion_loop (arg=0x8079018) at motion.c:495 cnt = (struct context *) 0x8079018 j = detecting_motion = lastframetime = postcap = frame_buffer_size = smartmask_ratio = smartmask_count = smartmask_lastrate = olddiffs = text_size_factor = passflag = rolling_average_data = required_frame_time = frame_delay = delay_time_nsec = rolling_frame = tv1 = {tv_sec = 65768, tv_usec = -1215246340} tv2 = {tv_sec = 301, tv_usec = -1208758272} rolling_average = elapsedtime = timenow = newimg = vid_return_code = minimum_frame_time_downcounter = 0 get_image = time_last_frame = time_current_frame = #5 0xb7f42294 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #6 0xb79bd32e in clone () from /lib/libc.so.6 No symbol table info available. ---Type to continue, or q to quit--- Thread 1 (Thread -1216887120 (LWP 15431)): #0 0xffffe410 in __kernel_vsyscall () No symbol table info available. #1 0xb7f487f6 in ?? () from /lib/libpthread.so.0 No symbol table info available. #2 0x0804c25c in main (argc=1, argv=0xbf9633b4) at motion.c:1955 tv = {tv_sec = 0, tv_nsec = 471562595} i = j = 8 webcam_port = -1080675580 thread_attr = {__size = "\000\000\000\000\000\000\000\000\001\000\000\000\000\020", '\0' , __align = 0} thread_id = 3069684640 sig_handler_action = {__sigaction_handler = {sa_handler = 0x804b520 , sa_sigaction = 0x804b520 }, sa_mask = { __val = {0 }}, sa_flags = 268435456, sa_restorer = 0} sigchild_action = {__sigaction_handler = {sa_handler = 0x804b780 , sa_sigaction = 0x804b780 }, sa_mask = {__val = {0 }}, sa_flags = 2, sa_restorer = 0} #0 0xb796c4f7 in memset () from /lib/libc.so.6 (gdb) (gdb)