w1x@w1x0-dev:~/hak/gl/sparrow3d$ gdb testsparrow
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/w1x/hak/gl/sparrow3d/testsparrow...done.
(gdb) run
Starting program: /home/w1x/hak/gl/sparrow3d/testsparrow
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffee284700 (LWP 8847)]
[Thread 0x7fffee284700 (LWP 8847) exited]
Found 1 Joysticks
Opened Joystick 0 (Mega World USB Game Controllers)
Reading "./data/testmeshuv_tri.obj" with
1344 Triangles without uv
1152 Triangles with uv
0 Quads without uv
0 Quads with uv
2160 Edges
1872 uv Edges
Program received signal SIGSEGV, Segmentation fault.
spFontDraw (x=0, y=2, z=-1, text=0x4054b0 "Previous (q)", font=0x665060) at sparrowFont.c:291
291 pos += letter->width >> 1;
(gdb) quit
A debugging session is active.
Inferior 1 [process 8844] will be killed.
Quit anyway? (y or n) y
w1x@w1x0-dev:~/hak/gl/sparrow3d$ file testsp
testsparrow testsparrow_debug.sh testsprite testsprite_debug.sh
testsparrow.c testsparrow.sh testsprite.c testsprite.sh
w1x@w1x0-dev:~/hak/gl/sparrow3d$ file testsparrow
testsparrow: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x2c11052e362e1519147dae28add071d503d404c7, not stripped
w1x@w1x0-dev:~/hak/gl/sparrow3d$ ldd !$
ldd testsparrow
linux-vdso.so.1 => (0x00007fff415ff000)
./libsparrow3d.so (0x00007fdf40db0000)
libSDL-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 (0x00007fdf40af3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdf40735000)
libSDL_ttf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libSDL_ttf-2.0.so.0 (0x00007fdf4052f000)
libSDL_image-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL_image-1.2.so.0 (0x00007fdf40312000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdf40017000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007fdf3fd2a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdf3fb26000)
libpulse-simple.so.0 => /usr/local/lib/libpulse-simple.so.0 (0x00007fdf3f921000)
libpulse.so.0 => /usr/local/lib/libpulse.so.0 (0x00007fdf3f6e2000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fdf3f3ae000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fdf3f19c000)
libcaca.so.0 => /usr/lib/x86_64-linux-gnu/libcaca.so.0 (0x00007fdf3eed1000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdf3ecb4000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdf41189000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fdf3ea17000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fdf3e7ef000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007fdf3e5a0000)
libtiff.so.4 => /usr/lib/x86_64-linux-gnu/libtiff.so.4 (0x00007fdf3e33c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdf3e134000)
libpulsecommon-0.9.19.so => /usr/local/lib/libpulsecommon-0.9.19.so (0x00007fdf3dee6000)
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007fdf3dc7e000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fdf3da3a000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fdf3d81c000)
libslang.so.2 => /lib/x86_64-linux-gnu/libslang.so.2 (0x00007fdf3d4aa000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fdf3d27d000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fdf3d056000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdf3ce3e000)
libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007fdf3cbf4000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007fdf3c724000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007fdf3c4f8000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007fdf3c2f1000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fdf3c0ed000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fdf3bee7000)