Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
chadwick@chadwick:~/Desktop/trunk$ gdb demo
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 "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /home/chadwick/Desktop/trunk/demo
[Thread debugging using libthread_db enabled]
[New Thread -1213671760 (LWP 7055)]
sizex = 1680
sizey = 1050
bpp = 32
mac = 00:1B:7A:31:D4:49
Put Wiimote in discoverable mode now (press 1+2)...
[New Thread -1220854896 (LWP 7064)]
[New Thread -1229247600 (LWP 7065)]
Connected!!!
[New Thread -1237640304 (LWP 7066)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213671760 (LWP 7055)]
0xb7d947bc in free () from /lib/tls/i686/cmov/libc.so.6
(gdb) backtrace
#0 0xb7d947bc in free () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7cc471f in XkbFreeClientMap () from /usr/lib/libX11.so.6
#2 0xb7cc9613 in XkbFreeKeyboard () from /usr/lib/libX11.so.6
#3 0xb7cbd183 in ?? () from /usr/lib/libX11.so.6
#4 0x08065d28 in ?? ()
#5 0x0000007f in ?? ()
#6 0x00000001 in ?? ()
#7 0xb7d10b2c in ?? () from /usr/lib/libX11.so.6
#8 0xb7d10b2c in ?? () from /usr/lib/libX11.so.6
#9 0x00000000 in ?? ()
Original comment by lavac...@gmail.com
on 24 Dec 2007 at 1:02
Maybe the SDL_QuitSubSystem(SDL_INIT_VIDEO) is failing. Maybe it's called
incorrectly. I mean, it can be that first there's something that needs to be
done
(free surfaces, etc..).
We plan to drop SDL, and do all graphics directly in X. Stay tuned!
Original comment by pere.ne...@gmail.com
on 24 Dec 2007 at 6:13
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Starting program: /home/chadwick/Desktop/trunk/demo
[Thread debugging using libthread_db enabled]
[New Thread -1213876560 (LWP 6505)]
sizex = 1680
sizey = 1050
bpp = 0
mac = ANY
Put Wiimote in discoverable mode now (press 1+2)...
[New Thread -1213879408 (LWP 6508)]
[New Thread -1222272112 (LWP 6509)]
Connected!!!
[New Thread -1230664816 (LWP 6510)]
[New Thread -1239180400 (LWP 6511)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213876560 (LWP 6505)]
0xb7d627bc in free () from /lib/tls/i686/cmov/libc.so.6
(gdb) backtrace
#0 0xb7d627bc in free () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7c927a5 in XkbFreeClientMap () from /usr/lib/libX11.so.6
#2 0xb7c97613 in XkbFreeKeyboard () from /usr/lib/libX11.so.6
#3 0xb7c8b183 in ?? () from /usr/lib/libX11.so.6
#4 0x08066288 in ?? ()
#5 0x0000007f in ?? ()
#6 0x00000001 in ?? ()
#7 0xb7cdeb2c in ?? () from /usr/lib/libX11.so.6
#8 0xb7cdeb2c in ?? () from /usr/lib/libX11.so.6
#9 0x00000000 in ?? ()
(gdb) p p_wii[0]
$1 = {x = 266, y = 723}
(gdb) p p_wii[1]
$2 = {x = 929, y = 554}
(gdb) p p_wii[2]
$3 = {x = 210, y = 214}
(gdb) p p_wii[3]
$4 = {x = 954, y = 157}
(gdb) p p_screen
$5 = {{x = 50, y = 50}, {x = 1630, y = 50}, {x = 50, y = 1000}, {x = 1630, y =
1000}}
(gdb) p SIZEX
$8 = 1680
(gdb) p SIZEY
$9 = 1050
(gdb) p s
$10 = (SDL_Surface *) 0x80672d0
(gdb) p h11
$11 = 1.39234889
(gdb) p h12
$12 = -0.163650349
(gdb) p h13
$13 = -212.581726
(gdb) p h21
$14 = -0.430485129
(gdb) p h22
$15 = -1.63504767
(gdb) p h23
$16 = 1336.1123
(gdb) p h31
$17 = -0.000318568666
(gdb) p h32
$18 = -0.000174251938
(gdb) p p_screen[0]
$19 = {x = 50, y = 50}
(gdb) p p_screen[1]
$20 = {x = 1630, y = 50}
(gdb) p p_screen[2]
$21 = {x = 50, y = 1000}
(gdb) p p_screen[3]
$22 = {x = 1630, y = 1000}
(gdb) p mac
$25 = "#", '\0' <repeats 98 times>
(gdb) p rx
$26 = 954
(gdb) p ry
$27 = 157
Original comment by lavac...@gmail.com
on 24 Dec 2007 at 11:33
In the new revision I have made a few changes in respect the SDL_quitsubsystem
that I
think gives you the segfault.
Try the new version, and see what it happens.
Original comment by pere.ne...@gmail.com
on 25 Dec 2007 at 12:02
Original comment by pere.ne...@gmail.com
on 25 Dec 2007 at 1:39
fixed @ revision 15
Original comment by lavac...@gmail.com
on 30 Dec 2007 at 9:58
fixed @ revision 15. Thank you, lavacano!
Original comment by pere.ne...@gmail.com
on 2 Jan 2008 at 1:37
Original issue reported on code.google.com by
lavac...@gmail.com
on 23 Dec 2007 at 8:53