I hope this waht you asked for... as this is the first time I made such a thing
Code:
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from calibre-debug...(no debugging symbols found)...done.
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) run -g
Starting program: /usr/bin/calibre-debug -g
process 6761 is executing new program: /opt/calibre/bin/calibre-debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
calibre 2.3 isfrozen: True is64bit: True
Linux-3.13.0-35-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '3.13.0-35-generic', '#62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014')
Python 2.7.8
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: Kindle and Mobipocket DeDRM && Inept Epub DeDRM && Inept PDF DeDRM && Ignoble Epub DeDRM && eReader PDB 2 PML
[New Thread 0x7fffdfca7700 (LWP 6772)]
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe11387ab in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
(gdb) backtrace full
#0 0x00007fffe11387ab in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
No symbol table info available.
#1 0x00007fffe1138b0b in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
No symbol table info available.
#2 0x00007fffe11258ad in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
No symbol table info available.
#3 0x00007fffe11278b3 in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
No symbol table info available.
#4 0x00007fffe1138d9b in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
No symbol table info available.
#5 0x00007fffed8a1605 in QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&) () from /opt/calibre/lib/libQt5Gui.so.5
No symbol table info available.
#6 0x00007fffed8aeaad in QGuiApplicationPrivate::createPlatformIntegration() () from /opt/calibre/lib/libQt5Gui.so.5
No symbol table info available.
#7 0x00007fffed8af7ed in QGuiApplicationPrivate::createEventDispatcher() () from /opt/calibre/lib/libQt5Gui.so.5
No symbol table info available.
#8 0x00007fffef2df18a in QCoreApplication::init() () from /opt/calibre/lib/libQt5Core.so.5
No symbol table info available.
#9 0x00007fffef2df20e in QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) () from /opt/calibre/lib/libQt5Core.so.5
No symbol table info available.
#10 0x00007fffed8b0309 in QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) () from /opt/calibre/lib/libQt5Gui.so.5
No symbol table info available.
#11 0x00007fffe4179db2 in QApplication::QApplication(int&, char**, int) () from /opt/calibre/lib/libQt5Widgets.so.5
No symbol table info available.
#12 0x00007fffe4a2c0e9 in ?? () from /opt/calibre/lib/python2.7/site-packages/PyQt5/QtWidgets.so
No symbol table info available.
#13 0x00007fffe4a2c1d2 in ?? () from /opt/calibre/lib/python2.7/site-packages/PyQt5/QtWidgets.so
No symbol table info available.
#14 0x00007fffee39bd82 in ?? () from /opt/calibre/lib/python2.7/site-packages/sip.so
No symbol table info available.
#15 0x00007ffff74d0d9c in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#16 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#17 0x00007ffff7517e77 in PyEval_CallObjectWithKeywords () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#18 0x00007ffff74906f6 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#19 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#20 0x00007ffff751a029 in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#21 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#22 0x00007ffff74a0d17 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#23 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#24 0x00007ffff7483bc0 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#25 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#26 0x00007ffff74db0e0 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#27 0x00007ffff74d6acc in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#28 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#29 0x00007ffff751a029 in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#30 0x00007ffff751e229 in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#31 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#32 0x00007ffff751ca2d in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#33 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#34 0x00007ffff751ca2d in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#35 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#36 0x00007ffff74a0c06 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#37 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#38 0x00007ffff7517e77 in PyEval_CallObjectWithKeywords () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
No symbol table info available.
#39 0x00007ffff7bd3529 in execute_python_entrypoint () from /opt/calibre/lib/libcalibre-launcher.so
No symbol table info available.
#40 0x0000000000400627 in ?? ()
No symbol table info available.
#41 0x00007ffff782cec5 in __libc_start_main (main=0x4005f0, argc=2, argv=0x7fffffffde88, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffffffde78) at libc-start.c:287
result = <optimised out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 1002780280056922702, 4195888, 140737488346752, 0, 0, -1002780281055264178, -1002762990179237298}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x400750, 0x7fffffffde88}, data = {prev = 0x0, cleanup = 0x0, canceltype = 4196176}}}
not_first_call = <optimised out>
#42 0x0000000000400659 in ?? ()
No symbol table info available.
#43 0x00007fffffffde78 in ?? ()
No symbol table info available.
#44 0x000000000000001c in ?? ()
No symbol table info available.
#45 0x0000000000000002 in ?? ()
No symbol table info available.
#46 0x00007fffffffe229 in ?? ()
No symbol table info available.
#47 0x00007fffffffe248 in ?? ()
No symbol table info available.
#48 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) info registers
rax 0xe79af0 15178480
rbx 0xe8bdd0 15252944
rcx 0x2 2
rdx 0x0 0
rsi 0x0 0
rdi 0x7fffef38e180 140737206870400
rbp 0x0 0x0
rsp 0x7fffffffc320 0x7fffffffc320
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x206 518
r12 0xe8bdd0 15252944
r13 0xe8bdd8 15252952
r14 0xd575c0 13989312
r15 0x1 1
rip 0x7fffe11387ab 0x7fffe11387ab
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) x/16i $pc
=> 0x7fffe11387ab: mov 0x18(%rdx),%rdx
0x7fffe11387af: mov (%rdx),%r12d
0x7fffe11387b2: mov 0xec(%rax),%ecx
0x7fffe11387b8: mov 0x38(%rax),%rdi
0x7fffe11387bc: xor %esi,%esi
0x7fffe11387be: mov %ebp,%r9d
0x7fffe11387c1: mov $0x4,%r8d
0x7fffe11387c7: mov %r12d,%edx
0x7fffe11387ca: movl $0x400,(%rsp)
0x7fffe11387d1: callq 0x7fffe111c170 <xcb_get_property@plt>
0x7fffe11387d6: mov (%rbx),%rdx
0x7fffe11387d9: mov %eax,%esi
0x7fffe11387db: mov 0x38(%rdx),%rdi
0x7fffe11387df: xor %edx,%edx
0x7fffe11387e1: callq 0x7fffe1119610 <xcb_get_property_reply@plt>
0x7fffe11387e6: test %rax,%rax
(gdb) thread apply all backtrceace[C[C
Thread 2 (Thread 0x7fffdfca7700 (LWP 6772)):
#0 0x00007ffff78f8c6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007fffeb965b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2 0x00007fffeb96764f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3 0x00007fffe1123749 in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
#4 0x00007fffef0a53e4 in ?? () from /opt/calibre/lib/libQt5Core.so.5
#5 0x00007ffff7210182 in start_thread (arg=0x7fffdfca7700) at pthread_create.c:312
#6 0x00007ffff7905fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 1 (Thread 0x7ffff7fde740 (LWP 6761)):
#0 0x00007fffe11387ab in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
#1 0x00007fffe1138b0b in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
#2 0x00007fffe11258ad in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
#3 0x00007fffe11278b3 in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
#4 0x00007fffe1138d9b in ?? () from /opt/calibre/lib/qt_plugins/platforms/libqxcb.so
#5 0x00007fffed8a1605 in QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&) () from /opt/calibre/lib/libQt5Gui.so.5
#6 0x00007fffed8aeaad in QGuiApplicationPrivate::createPlatformIntegration() () from /opt/calibre/lib/libQt5Gui.so.5
#7 0x00007fffed8af7ed in QGuiApplicationPrivate::createEventDispatcher() () from /opt/calibre/lib/libQt5Gui.so.5
#8 0x00007fffef2df18a in QCoreApplication::init() () from /opt/calibre/lib/libQt5Core.so.5
#9 0x00007fffef2df20e in QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) () from /opt/calibre/lib/libQt5Core.so.5
#10 0x00007fffed8b0309 in QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) () from /opt/calibre/lib/libQt5Gui.so.5
#11 0x00007fffe4179db2 in QApplication::QApplication(int&, char**, int) () from /opt/calibre/lib/libQt5Widgets.so.5
#12 0x00007fffe4a2c0e9 in ?? () from /opt/calibre/lib/python2.7/site-packages/PyQt5/QtWidgets.so
#13 0x00007fffe4a2c1d2 in ?? () from /opt/calibre/lib/python2.7/site-packages/PyQt5/QtWidgets.so
#14 0x00007fffee39bd82 in ?? () from /opt/calibre/lib/python2.7/site-packages/sip.so
#15 0x00007ffff74d0d9c in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#16 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#17 0x00007ffff7517e77 in PyEval_CallObjectWithKeywords () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#18 0x00007ffff74906f6 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#19 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#20 0x00007ffff751a029 in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#21 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#22 0x00007ffff74a0d17 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#23 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#24 0x00007ffff7483bc0 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#25 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#26 0x00007ffff74db0e0 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#27 0x00007ffff74d6acc in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#28 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#29 0x00007ffff751a029 in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#30 0x00007ffff751e229 in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#31 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#32 0x00007ffff751ca2d in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#33 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#34 0x00007ffff751ca2d in PyEval_EvalFrameEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#35 0x00007ffff751ed80 in PyEval_EvalCodeEx () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#36 0x00007ffff74a0c06 in ?? () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#37 0x00007ffff747563e in PyObject_Call () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#38 0x00007ffff7517e77 in PyEval_CallObjectWithKeywords () from /opt/calibre/lib/../lib/libpython2.7.so.1.0
#39 0x00007ffff7bd3529 in execute_python_entrypoint () from /opt/calibre/lib/libcalibre-launcher.so
#40 0x0000000000400627 in ?? ()
#41 0x00007ffff782cec5 in __libc_start_main (main=0x4005f0, argc=2, argv=0x7fffffffde88, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffffffde78) at libc-start.c:287
#42 0x0000000000400659 in ?? ()
#43 0x00007fffffffde78 in ?? ()
#44 0x000000000000001c in ?? ()
#45 0x0000000000000002 in ?? ()
#46 0x00007fffffffe229 in ?? ()
#47 0x00007fffffffe248 in ?? ()
#48 0x0000000000000000 in ?? ()
(gdb) quit
A debugging session is active.
Inferior 1 [process 6761] will be killed.
Quit anyway? (y or n)
Thanks!