Tous les collages #372416 Brut Modifier

Someone

public text v1 · immuable
#372416 ·publié 2007-02-26 01:05 UTC
corps du collage affiché
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 -1217038672 (LWP 16039)]
[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 -1217041504 (LWP 16042)]
[1] Thread started
[New Thread -1225434208 (LWP 16043)]
[0] Waiting for threads to finish, pid: 16039
[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 77
[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 -1217041504 (LWP 16042)]
0x0806a017 in MJPEGDecodeFrame (
    mjpegFrame=0xb6701000 <Address 0xb6701000 out of bounds>,
    mjpegFrameLen=22464, outbuf=0x808b440 "", outbufSize=1382400,
    MJPEG_ST=0x80858d8) at mjpeg.c:64
64              memset(outbuf, 0, outbufSize);
(gdb) thread apply bt all full
(gdb) thread apply all bt full

Thread 3 (Thread -1225434208 (LWP 16043)):
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7991de1 in select () from /lib/libc.so.6
No symbol table info available.
#2  0x08069072 in acceptnonblocking (serverfd=7, timeout=1) at webhttpd.c:2099
        curfd = 0
        namelen = 16
        client = {sin_family = 32756, sin_port = 47090, sin_addr = {
    s_addr = 0}, sin_zero = "\000\000\000\000HTõ¶"}
        tm = {tv_sec = 0, tv_usec = 963000}
        fds = {__fds_bits = {128, 0 <repeats 31 times>}}
#3  0x0806940b in httpd_run (cnt=0x8080008) at webhttpd.c:2183
        sd = 7
        client_socket_fd = -1
        client_sent_quit_message = 1
        val = 1
        closehttpd = 0
        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 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 0}
---Type <return> to continue, or q <return> to quit---
        authentication = 0x0
#4  0x08069505 in motion_web_control (arg=0x8080008) at webhttpd.c:2211
        cnt = (struct context **) 0x8080008
#5  0xb7f1d294 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0xb799832e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 2 (Thread -1217041504 (LWP 16042)):
#0  0x0806a017 in MJPEGDecodeFrame (
    mjpegFrame=0xb6701000 <Address 0xb6701000 out of bounds>,
    mjpegFrameLen=22464, outbuf=0x808b440 "", outbufSize=1382400,
    MJPEG_ST=0x80858d8) at mjpeg.c:64
        got_picture = 0
        len = -1217048072
        xsize = -1208571904
        ysize = 0
        pic_size = -1208844300
        size = 0
#1  0x0805517b in v4l2_next (cnt=0x8080018, viddev=0x8086658,
    map=0xb620d008 '\200' <repeats 200 times>..., width=960, height=720)
    at video2.c:794
        temp_netcam_buff = {
---Type <return> to continue, or q <return> to quit---
  ptr = 0xb6701000 <Address 0xb6701000 out of bounds>, content_length = 22464,
  size = 341333, used = 22464, image_time = {tv_sec = 0, tv_usec = 0}}
        the_buffer = (netcam_buff *) 0x8087ad0
        set = {__val = {90625, 0 <repeats 31 times>}}
        old = {__val = {0, 0, 3077919132, 1074026002, 3080262745, 134773528,
    134557879, 6, 1074026002, 3077919132, 252, 3, 341333, 22, 19, 1, 0,
    3077919144, 134562698, 6, 1074026002, 3077919132, 3, 341333, 1032192,
    134217729, 138, 118, 3, 3, 1, 138}}
        s = (src_v4l2_t *) 0x80866d0
        __FUNCTION__ = "v4l2_next"
#2  0x08056f2e in vid_next (cnt=0x8080018,
    map=0xb620d008 '\200' <repeats 200 times>...) at video_common.c:820
        i = 0
        width = 960
        height = 720
        dev = 6
        conf = (struct config *) 0x8081020
        ret = -1
#3  0x0804bf4e in motion_init (cnt=0x8080018) at motion.c:495
        i = 0
        picture = (FILE *) 0x0
#4  0x0804c631 in motion_loop (arg=0x8080018) at motion.c:680
        cnt = (struct context *) 0x8080018
---Type <return> to continue, or q <return> to quit---
        i = 0
        j = 0
        detecting_motion = 0
        lastframetime = 0
        postcap = 0
        frame_buffer_size = 0
        smartmask_ratio = 0
        smartmask_count = 20
        smartmask_lastrate = 0
        olddiffs = 0
        text_size_factor = 0
        passflag = 0
        rolling_average_data = (long int *) 0x0
        rolling_average_limit = 0
        required_frame_time = 0
        frame_delay = 0
        delay_time_nsec = 0
        rolling_frame = 0
        tv1 = {tv_sec = 110932256, tv_usec = 0}
        tv2 = {tv_sec = -1208899963, tv_usec = 16777216}
        rolling_average = 3079569404
        elapsedtime = 3082109592
        timenow = 0
---Type <return> to continue, or q <return> to quit---
        timebefore = 0
        newimg = (unsigned char *) 0x0
        vid_return_code = 0
        minimum_frame_time_downcounter = 0
        get_image = 1
        time_last_frame = 1
        time_current_frame = 0
#5  0xb7f1d294 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0xb799832e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1217038672 (LWP 16039)):
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7f237f6 in ?? () from /lib/libpthread.so.0
No symbol table info available.
#2  0x0804f841 in main (argc=1, argv=0xbff6efb4) at motion.c:1955
        tv = {tv_sec = 0, tv_nsec = 963529454}
        i = 1
        j = -1214287884
        webcam_port = -1208591312
        thread_attr = {
---Type <return> to continue, or q <return> to quit---
  __size = "\000\000\000\000\000\000\000\000\001\000\000\000\000\020", '\0' <repeats 21 times>, __align = 0}
        thread_id = 3069533088
        sig_handler_action = {__sigaction_handler = {
    sa_handler = 0x804b380 <sig_handler>,
    sa_sigaction = 0x804b380 <sig_handler>}, sa_mask = {__val = {
      0 <repeats 32 times>}}, sa_flags = 268435456,
  sa_restorer = 0x804afd0 <call_gmon_start+12>}
        sigchild_action = {__sigaction_handler = {
    sa_handler = 0x804b4d4 <sigchild_handler>,
    sa_sigaction = 0x804b4d4 <sigchild_handler>}, sa_mask = {__val = {
      0 <repeats 32 times>}}, sa_flags = 2, sa_restorer = 0xb78e821c}
0x0806a017      64              memset(outbuf, 0, outbufSize);
(gdb)