Web lists-archives.com

Re: [Spca50x-devs] spcagui - segmentation fault Kubuntu 7.10, Suse 10.3




Below is the output from gdb after recompiling spcagui with -g (on 
Kubuntu 7.10 amf64).

Jansuz

$ gdb ./spcagui
GNU gdb 6.6-debian
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 "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: 
/home/janusz/myKubuntu/webcam/mxhaard.free.fr/spcagui20060127/spcagui
[Thread debugging using libthread_db enabled]
[New Thread 47107383081520 (LWP 6859)]
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
Camera found: Labtec Webcam Pro
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 
whiteness=0depth=24 palette=4
Bridge found: ZC301-2
Unable to find a StreamId !!
StreamId: 6 Unknow Camera
try palette 15 depth 12
Available  palette 15
try palette 3 depth 16
Available  palette 3
try palette 4 depth 24
Available  palette 4
try palette 5 depth 32
Available  palette 5
probe size in
Available Resolutions width 640  heigth 480
Available Resolutions width 384  heigth 288
Available Resolutions width 352  heigth 288
Available Resolutions width 320  heigth 240
Available Resolutions width 192  heigth 144
Available Resolutions width 176  heigth 144
Available Resolutions width 160  heigth 120
  grabbing method default MMAP asked
VIDIOCGMBUF size 2457632  frames 2  offets[0]=0 offsets[1]=1228816
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 
whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 
whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 
whiteness=0depth=12 palette=15

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47107383081520 (LWP 6859)]
draw_surface (x=0, y=0, surface=0x0, screen=0x63b970) at gui.c:35
35        dest.w = surface->w;
(gdb) VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=32768 
whiteness=0depth=12 palette=15

backtrace
#0  draw_surface (x=0, y=0, surface=0x0, screen=0x63b970) at gui.c:35
#1  0x0000000000401d87 in telecom () at spcagui.c:315
#2  0x0000000000402d86 in main (argc=1, argv=<value optimized out>) at 
spcagui.c:131
(gdb)

Denver Gingerich wrote:
> On Jan 28, 2008 9:11 PM, Denver Gingerich <denver@xxxxxxxxxx> wrote:

>> $ gdb ./spcagui
>> ...
>> (gdb) run
>> ...
>> [SIGSEGV]
>> (gdb) backtrace
>> [send us the stuff you get here]
>>
>> This will show us the functions that were being called at the time the
>> segfault occurred.  I'm not sure if it's compiled with debugging
>> symbols by default; if it is, then we may need you to re-send the
> 
> That should be "if it isn't [compiled with debugging symbols]".
> 
>> backtrace after compiling with -g, but just send us the backtrace for
>> now.
>>
>> Denver
>>
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs