Discussion:
QGIS crash during testing of my plugin
Luca Delucchi
2014-10-14 09:15:46 UTC
Permalink
Hi everybody,

I'm developing a Python plugin with several submodules (like MMQGIS).
I create a BaseDialog class to create each dialog and some functions
to fill the dialogs.
When I try to call the second method QGIS crash and it return this logs.
Maybe I should create a ui file for each method and don't use the
BaseDialog class to create my interfaces?

QGIS died on signal 11[New LWP 28114]
[New LWP 28102]
[New LWP 28101]
[New LWP 28100]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f3937de3109 in __libc_waitpid (pid=28116,
stat_loc=0x7fffe4e04d54, options=0) at
../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
[Current thread is 1 (Thread 0x7f3940b6f7c0 (LWP 28099))]
#0 0x00007f3937de3109 in __libc_waitpid (pid=28116,
stat_loc=0x7fffe4e04d54, options=0) at
../sysdeps/unix/sysv/linux/waitpid.c:40
resultvar = 139883782338496
oldtype = 0
#1 0x0000000000571ac3 in qgisCrash(int) ()
No symbol table info available.
#2 <signal handler called>
No locals.
#3 0x00007f393b43a91e in QMetaObject::cast(QObject*) const () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#4 0x00007f393abc5e9c in QMdiArea::eventFilter(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#5 0x00007f38c8630566 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
No symbol table info available.
#6 0x00007f393b433d82 in
QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#7 0x00007f393a7892a8 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#8 0x00007f393a78fe18 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#9 0x00007f393ca67a37 in QgsApplication::notify(QObject*, QEvent*) ()
from /usr/local/lib/libqgis_core.so.2.5.0
No symbol table info available.
#10 0x00007f393b433cad in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#11 0x00007f393a78b547 in QApplicationPrivate::enterModal(QWidget*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#12 0x00007f393a7d98c8 in QWidgetPrivate::show_helper() () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#13 0x00007f393a7db74a in QWidget::setVisible(bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#14 0x00007f393ac5d4ae in QDialog::setVisible(bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#15 0x00007f393ac5d876 in QDialog::exec() () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#16 0x00007f393c2cbe8b in QgsMessageViewer::showMessage(bool) () from
/usr/local/lib/libqgis_gui.so.2.5.0
No symbol table info available.
#17 0x00007f38c3a3cd12 in meth_QgsMessageOutput_showMessage () from
/usr/lib/python2.7/dist-packages/qgis/_core.so
No symbol table info available.
#18 0x00007f38c96aea8c in PyEval_EvalFrameEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#19 0x00007f38c96aee9d in PyEval_EvalFrameEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#20 0x00007f38c9721cf0 in PyEval_EvalCodeEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#21 0x00007f38c9670e3c in ?? () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#22 0x00007f38c9679873 in PyObject_Call () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#23 0x00007f38c9721247 in PyEval_CallObjectWithKeywords () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#24 0x00007f38c96c7dfc in PyErr_PrintEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#25 0x00007f38c8e31e1d in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#26 0x00007f38c8e3298d in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#27 0x00007f393b448ffb in QMetaObject::activate(QObject*, QMetaObject
const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#28 0x00007f393a782b22 in QAction::triggered(bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#29 0x00007f393a7846c7 in QAction::activate(QAction::ActionEvent) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#30 0x00007f393abd809d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#31 0x00007f393abdca69 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#32 0x00007f38c862afbb in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
No symbol table info available.
#33 0x00007f393a7dc3b8 in QWidget::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#34 0x00007f393abe0a4b in QMenu::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#35 0x00007f38c86299fb in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
No symbol table info available.
#36 0x00007f393a78931c in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#37 0x00007f393a78ff7f in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#38 0x00007f393ca67a37 in QgsApplication::notify(QObject*, QEvent*) ()
from /usr/local/lib/libqgis_core.so.2.5.0
No symbol table info available.
#39 0x00007f393b433cad in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#40 0x00007f393a78f5af in
QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*,
QWidget*, QWidget**, QPointer<QWidget>&, bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#41 0x00007f393a80668d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#42 0x00007f393a804cb2 in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#43 0x00007f393a82df92 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#44 0x00007f3935f11c5d in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#45 0x00007f3935f11f48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#46 0x00007f3935f11ffc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#47 0x00007f393b46314d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#48 0x00007f393a82e056 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#49 0x00007f393b432801 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#50 0x00007f393b432b65 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#51 0x00007f393b4385c7 in QCoreApplication::exec() () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#52 0x0000000000574b3c in main ()
No symbol table info available.
gdb returned 0
Aborted
--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
Salvatore Larosa
2014-10-14 09:26:43 UTC
Permalink
Hi,
Post by Luca Delucchi
Hi everybody,
I'm developing a Python plugin with several submodules (like MMQGIS).
I create a BaseDialog class to create each dialog and some functions
to fill the dialogs.
When I try to call the second method QGIS crash and it return this logs.
Maybe I should create a ui file for each method and don't use the
BaseDialog class to create my interfaces?
could you attach the output of the py-bt command?
Just for having some more information about the crash.

Regards,
-SL
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
Luca Delucchi
2014-10-14 09:40:42 UTC
Permalink
Post by Salvatore Larosa
Hi,
Hi Salvatore,
Post by Salvatore Larosa
Post by Luca Delucchi
Hi everybody,
I'm developing a Python plugin with several submodules (like MMQGIS).
I create a BaseDialog class to create each dialog and some functions
to fill the dialogs.
When I try to call the second method QGIS crash and it return this logs.
Maybe I should create a ui file for each method and don't use the
BaseDialog class to create my interfaces?
could you attach the output of the py-bt command?
How to use py-bt command?
Post by Salvatore Larosa
Just for having some more information about the crash.
Here the output of gdb, I don't know if it helps

(gdb) run
Starting program: /usr/local/bin/qgis
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_GB]
Warning: QGraphicsScene::addItem: item has already been added to this scene
[New Thread 0x7fffd2b97700 (LWP 29464)]
[New Thread 0x7fff92294700 (LWP 29465)]
[New Thread 0x7fff91540700 (LWP 29466)]
[New Thread 0x7fff6762f700 (LWP 29472)]
[Thread 0x7fff6762f700 (LWP 29472) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007fff80330559 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
(gdb) continue
Continuing.
QGIS died on signal 11warning: process 29460 is already traced by process 29458
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0

Program received signal SIGABRT, Aborted.
0x00007fffef17c077 in __GI_raise (sig=***@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) continue
Continuing.
[Thread 0x7fff91540700 (LWP 29466) exited]
[Thread 0x7fffd2b97700 (LWP 29464) exited]
[Thread 0x7ffff7f887c0 (LWP 29460) exited]

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
Post by Salvatore Larosa
Regards,
-SL
--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
Salvatore Larosa
2014-10-14 09:51:30 UTC
Permalink
Hi Luca,
Post by Luca Delucchi
Post by Salvatore Larosa
Hi,
Hi Salvatore,
Post by Salvatore Larosa
Post by Luca Delucchi
Hi everybody,
I'm developing a Python plugin with several submodules (like MMQGIS).
I create a BaseDialog class to create each dialog and some functions
to fill the dialogs.
When I try to call the second method QGIS crash and it return this logs.
Maybe I should create a ui file for each method and don't use the
BaseDialog class to create my interfaces?
could you attach the output of the py-bt command?
How to use py-bt command?
just type py-bt [0] onto gdb prompt, you need of the python extension
for debugging though.

Regards,
-SL

[0] - https://docs.python.org/devguide/gdb.html
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
Luca Delucchi
2014-10-14 10:19:03 UTC
Permalink
Post by Salvatore Larosa
Hi Luca,
Hi Salvatore,
Post by Salvatore Larosa
just type py-bt [0] onto gdb prompt, you need of the python extension
for debugging though.
I'm still not able to run it, I installed all the needed software.
These are my steps:
- run "gdb qgis"
- inside gdb type "run" this execute qgis
- now try to crash qgis
- type "py-bt" but the result is

(gdb) py-bt
Undefined command: "py-bt". Try "help".

Instead if I run only "bt" I obtain some output (the following one is
the complete output of gdb)

(gdb) run
Starting program: /usr/local/bin/qgis
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_GB]
Warning: QGraphicsScene::addItem: item has already been added to this scene
[New Thread 0x7fffd2b97700 (LWP 31012)]
[New Thread 0x7fff92294700 (LWP 31013)]
[New Thread 0x7fff91540700 (LWP 31014)]
[New Thread 0x7fff676b4700 (LWP 31019)]
[Thread 0x7fff676b4700 (LWP 31019) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007fff80330559 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
(gdb) bt
#0 0x00007fff80330559 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#1 0x00007ffff2855919 in QMetaObject::cast(QObject*) const () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2 0x00007ffff1fe0e9c in QMdiArea::eventFilter(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3 0x00007fff7faeb566 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#4 0x00007ffff284ed82 in
QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5 0x00007ffff1ba42a8 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6 0x00007ffff1baae18 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7 0x00007ffff3e82a37 in QgsApplication::notify(QObject*, QEvent*) ()
from /usr/local/lib/libqgis_core.so.2.5.0
#8 0x00007ffff284ecad in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9 0x00007ffff1ba6547 in QApplicationPrivate::enterModal(QWidget*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff1bf48c8 in QWidgetPrivate::show_helper() () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff1bf674a in QWidget::setVisible(bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007ffff20784ae in QDialog::setVisible(bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007fff7fcb389c in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#14 0x00007ffff2078876 in QDialog::exec() () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007fff7fc69205 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#16 0x00007fff80ba9a8c in call_function (oparg=<optimized out>,
pp_stack=<optimized out>) at ../Python/ceval.c:4021
#17 PyEval_EvalFrameEx (f=0x7fff88151050, throwflag=1746239640) at
../Python/ceval.c:2667
#18 0x00007fff80c1ccf0 in PyEval_EvalCodeEx (co=0x7fff7cc9ddb0,
globals=0x7fff80125780, locals=0x7fffffffbb60, ***@entry=0x0,
args=0x7fff6f9dd228, argcount=2144122026,
kws=0xedd480 <QHashData::shared_null>, ***@entry=0x0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253
#19 0x00007fff80b6be3c in function_call.lto_priv.328
(func=0x7fff7cc03d70, arg=0x7fff6f9dd210, kw=0x0) at
../Objects/funcobject.c:526
#20 0x00007fff80b74873 in PyObject_Call (func=0x7fff7cc03d70,
arg=<optimized out>, kw=<optimized out>) at ../Objects/abstract.c:2529
#21 0x00007fff80bb6c55 in instancemethod_call.lto_priv.243
(func=0x7fff67ea5938, arg=0x7fff88151050, kw=0x0) at
../Objects/classobject.c:2602
#22 0x00007fff80b74873 in PyObject_Call
(func=***@entry=0x7fff67f80be0, arg=***@entry=0x7fff88151050,
kw=<optimized out>) at ../Objects/abstract.c:2529
#23 0x00007fff80c1c247 in PyEval_CallObjectWithKeywords
(func=0x7fff67f80be0, arg=0x7fff88151050, kw=<optimized out>) at
../Python/ceval.c:3890
#24 0x00007fff80622390 in sip_api_invoke_slot_ex () from
/usr/lib/python2.7/dist-packages/sip.so
#25 0x00007fff8032ca92 in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#26 0x00007fff8032cddd in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#27 0x00007fff8032d98d in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
#28 0x00007ffff2863ffb in QMetaObject::activate(QObject*, QMetaObject
const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007ffff1b9db22 in QAction::triggered(bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#30 0x00007ffff1b9f6c7 in QAction::activate(QAction::ActionEvent) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#31 0x00007ffff1ff309d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#32 0x00007ffff1ff7a69 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#33 0x00007fff7fae5fbb in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#34 0x00007ffff1bf73b8 in QWidget::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007ffff1ffba4b in QMenu::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007fff7fae49fb in ?? () from
/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#37 0x00007ffff1ba431c in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#38 0x00007ffff1baaf7f in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#39 0x00007ffff3e82a37 in QgsApplication::notify(QObject*, QEvent*) ()
from /usr/local/lib/libqgis_core.so.2.5.0
#40 0x00007ffff284ecad in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#41 0x00007ffff1baa5af in
QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*,
QWidget*, QWidget**, QPointer<QWidget>&, bool) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#42 0x00007ffff1c2168d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#43 0x00007ffff1c1fcb2 in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#44 0x00007ffff1c48f92 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#45 0x00007fffed32cc5d in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007fffed32cf48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007fffed32cffc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007ffff287e14d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#49 0x00007ffff1c49056 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#50 0x00007ffff284d801 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#51 0x00007ffff284db65 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#52 0x00007ffff28535c7 in QCoreApplication::exec() () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#53 0x0000000000574b3c in main ()
(gdb) continue
Continuing.
QGIS died on signal 11warning: process 31008 is already traced by process 31006
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0

Program received signal SIGABRT, Aborted.
0x00007fffef17c077 in __GI_raise (sig=***@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) continue
Continuing.
[Thread 0x7fff92294700 (LWP 31013) exited]
[Thread 0x7fffd2b97700 (LWP 31012) exited]
[Thread 0x7ffff7f887c0 (LWP 31008) exited]

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb)


Is there any other way to run it?
Post by Salvatore Larosa
Regards,
-SL
--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
Salvatore Larosa
2014-10-14 11:28:58 UTC
Permalink
Post by Luca Delucchi
Post by Salvatore Larosa
Hi Luca,
Hi Salvatore,
Post by Salvatore Larosa
just type py-bt [0] onto gdb prompt, you need of the python extension
for debugging though.
I'm still not able to run it, I installed all the needed software.
- run "gdb qgis"
- inside gdb type "run" this execute qgis
- now try to crash qgis
- type "py-bt" but the result is
(gdb) py-bt
Undefined command: "py-bt". Try "help".
Did you install the python-dbg package?
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
Luca Delucchi
2014-10-14 11:49:35 UTC
Permalink
Post by Salvatore Larosa
Did you install the python-dbg package?
yes sure

apt-get install python-dbg
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dbg is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
Salvatore Larosa
2014-10-14 12:15:38 UTC
Permalink
Post by Luca Delucchi
Post by Salvatore Larosa
Did you install the python-dbg package?
yes sure
and python2.7-dbg?

I don't know whether getting stacktrace by python helps here, but that
should be a big hint in order to try to track down the source of the
problem with your plugin.
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
Luca Delucchi
2014-10-15 07:25:03 UTC
Permalink
Post by Salvatore Larosa
Post by Luca Delucchi
Post by Salvatore Larosa
Did you install the python-dbg package?
yes sure
and python2.7-dbg?
yes
Post by Salvatore Larosa
I don't know whether getting stacktrace by python helps here, but that
should be a big hint in order to try to track down the source of the
problem with your plugin.
ok, how do you usually use py-bt with gdb? how do you run gdb ("gdb
qgis" or something different)?
--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
Salvatore Larosa
2014-10-15 08:04:31 UTC
Permalink
Ciao Luca,
Post by Luca Delucchi
Post by Salvatore Larosa
Post by Luca Delucchi
Post by Salvatore Larosa
Did you install the python-dbg package?
yes sure
and python2.7-dbg?
yes
Post by Salvatore Larosa
I don't know whether getting stacktrace by python helps here, but that
should be a big hint in order to try to track down the source of the
problem with your plugin.
ok, how do you usually use py-bt with gdb? how do you run gdb ("gdb
qgis" or something different)?
Usually, it is enough to type:

# gdb qgis
(gdb) r
.................... <- crash
(gdb) py-bt
.................... -> python stacktrace

but there are other useful options [0]

also look at this link [1], you could be in the same situation

Saluti!

[0] - https://docs.python.org/devguide/gdb.html
[1] - http://stackoverflow.com/questions/22931774/how-to-use-gdb-python-debugging-extension-inside-virtualenv
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
Loading...