$ gdb guvcview GNU gdb (Gentoo 7.6.2 p1) 7.6.2 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/guvcview...Reading symbols from /usr/lib64/debug/usr/bin/guvcview.debug...done. done. (gdb) run Starting program: /usr/bin/guvcview warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". guvcview 1.6.1 [New Thread 0x7fffec38f700 (LWP 28024)] video device: /dev/video0 Init. Laptop_Integrated_Webcam_HD (location: usb-0000:00:1a.0-1.5) { pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' } { discrete: width = 640, height = 480 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 176, height = 144 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 160, height = 120 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 1280, height = 720 } Time interval between frame: 1/10, 1/5, { discrete: width = 320, height = 240 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 352, height = 288 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { pixelformat = 'MJPG', description = 'MJPEG' } { discrete: width = 640, height = 480 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 176, height = 144 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 160, height = 120 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 1280, height = 720 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 320, height = 240 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 352, height = 288 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { pixelformat = 'RGB3', description = 'RGB3' } { discrete: width = 640, height = 480 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 176, height = 144 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 160, height = 120 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 1280, height = 720 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 320, height = 240 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 352, height = 288 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { pixelformat = 'BGR3', description = 'BGR3' } { discrete: width = 640, height = 480 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 176, height = 144 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 160, height = 120 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 1280, height = 720 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 320, height = 240 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 352, height = 288 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { pixelformat = 'YU12', description = 'YU12' } { discrete: width = 640, height = 480 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 176, height = 144 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 160, height = 120 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 1280, height = 720 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 320, height = 240 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 352, height = 288 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { pixelformat = 'YV12', description = 'YV12' } { discrete: width = 640, height = 480 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 176, height = 144 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 160, height = 120 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 1280, height = 720 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 320, height = 240 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, { discrete: width = 352, height = 288 } Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5, vid:0c45 pid:6484 driver:uvcvideo checking format: 1196444237 VIDIOC_G_COMP:: Inappropriate ioctl for device fps is set to 1/30 drawing controls fps is set to 1/30 [New Thread 0x7fffeb3db700 (LWP 28025)] [New Thread 0x7fffeabda700 (LWP 28026)] Checking video mode 640x480@32bpp : OK Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffeb3db700 (LWP 28025)] __memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1523 1523 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: No such file or directory. (gdb) backtrace full #0 __memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1523 No locals. #1 0x00000000004206eb in SaveJPG (Filename=0x735d00 "/home/kalle/Image.jpg", imgsize=110336, ImagePix=) at picture.c:86 headSize = qtsize = totSize = ret = 0 jpgsize = 110776 jpgtmp = 0x7fffdc02b3d0 "\377\330\377", Pimg = Pjpg = 0x7fffdc02b3e4 "\377", tp = JpgFileh = {SOI = "\377", , APP0 = "\377", , length = "\000\020", JFIF = "JFIF", VERS = "\001\002", density = 0 '\000', xdensity = "\000x", ydensity = "\000x", WTN = 0 '\000', HTN = 0 '\000'} fp = #2 0x0000000000419281 in store_picture (data=) at create_image.c:53 all_data = global = 0x657530 videoIn = 0x72a800 jpeg_struct = 0x0 pim = 0x0 jpeg = 0x0 jpeg_size = 0 #3 0x000000000042c638 in main_loop (data=0x7fffffffdc50) at video.c:389 ret = -603802652 global = 0x657530 videoIn = 0x72a800 event = {type = 1 '\001', active = {type = 1 '\001', gain = 0 '\000', state = 1 '\001'}, key = {type = 1 '\001', which = 0 '\000', state = 1 '\001', keysym = { scancode = 0 '\000', sym = SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 1 '\001', which = 0 '\000', state = 1 '\001', x = 0, y = 0, xrel = 0, yrel = 0}, button = {type = 1 '\001', which = 0 '\000', button = 1 '\001', state = 0 '\000', x = 0, y = 0}, jaxis = {type = 1 '\001', which = 0 '\000', axis = 1 '\001', value = 0}, jball = {type = 1 '\001', which = 0 '\000', ball = 1 '\001', xrel = 0, yrel = 0}, jhat = {type = 1 '\001', which = 0 '\000', hat = 1 '\001', value = 0 '\000'}, jbutton = {type = 1 '\001', which = 0 '\000', button = 1 '\001', state = 0 '\000'}, resize = { type = 1 '\001', w = 0, h = 0}, expose = {type = 1 '\001'}, quit = {type = 1 '\001'}, user = {type = 1 '\001', code = 0, data1 = 0x0, data2 = 0x0}, syswm = {type = 1 '\001', msg = 0x0}} pscreen = 0x7fffdc019a00 drect = {x = 0, y = 0, w = 640, h = 480} width = 640 height = 480 vuPeak = {0, 0} vuPeakFreeze = {0, 0} #4 0x00007ffff67f4f3a in start_thread (arg=0x7fffeb3db700) at pthread_create.c:308 __res = pd = 0x7fffeb3db700 ---Type to continue, or q to quit--- now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737140078336, -5457469745365943557, 1, 140737328965248, 4096, 140737140078336, 5457512092188113659, 5457448851961248507}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = 0 robust = pagesize_m1 = sp = freesize = __PRETTY_FUNCTION__ = "start_thread" #5 0x00007ffff4a2cc3d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 No locals. (gdb) continue Continuing. [Thread 0x7fffeabda700 (LWP 28026) exited] Program received signal SIGSEGV, Segmentation fault. __memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1523 1523 in ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (gdb) continue Continuing. [Thread 0x7fffec38f700 (LWP 28024) exited] [Thread 0x7ffff7fc38c0 (LWP 28017) exited] Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) quit