On 14 October 2014 11:51, Salvatore Larosa <lrssv...@gmail.com> wrote: > Hi Luca, >
Hi Salvatore, > > 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, locals@entry=0x0, args=0x7fff6f9dd228, argcount=2144122026, kws=0xedd480 <QHashData::shared_null>, kws@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=func@entry=0x7fff67f80be0, arg=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=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? > Regards, > -SL > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer