$ gdb -ex run --args $(which FBReader)
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 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 "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/FBReader...(no debugging symbols found)...done.
Starting program: /usr/bin/FBReader
[Thread debugging using libthread_db enabled]
loading /usr/lib/zlibrary/ui/zlui-qt4.so
Using the meego graphics system
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
hijackWindow() context created for ZLQtApplicationWindow(0x299b70) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x318fe0)
hijackWindow() context created for QWidget(0x3cb190) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x41a458)
Meego graphics system destroyed
Program received signal SIGSEGV, Segmentation fault.
0x3b5460f4 in QPainter::device() const () from /usr/lib/libQtGui.so.4
(gdb) bt
from /usr/lib/zlibrary/ui/zlui-qt4.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)