[Qt-creator] Start Debugging (F5) gives a Segmentation Fault

Tomás Ortí tomasorti at gmail.com
Tue Mar 16 07:46:17 CET 2010


Hi again.
As I said, I tested this with a simple hello world application, and creating
the project importing a Makefile.
So I would say it happens for any application. I tried with 3 different
projects and happens always.
I'm using gdb 6.8:

notroot at ubuntu:[CVS]~/mser$ gdb --version
GNU gdb 6.8-debian
Copyright (C) 2008 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".

and here is the backtrace it reports when crashing:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ff11bd71750 (LWP 12362)]
0x00007ff1128f2b51 in ProjectExplorer::RunConfiguration::isEnabled () from
/opt/qtsdk-2009.05/lib/qtcreator/plugins/Nokia/libProjectExplorer.so
Current language:  auto; currently asm
(gdb) bt
#0  0x00007ff1128f2b51 in ProjectExplorer::RunConfiguration::isEnabled ()
from /opt/qtsdk-2009.05/lib/qtcreator/plugins/Nokia/libProjectExplorer.so
#1  0x00007ff112892184 in
ProjectExplorer::ProjectExplorerPlugin::debugProject () from
/opt/qtsdk-2009.05/lib/qtcreator/plugins/Nokia/libProjectExplorer.so
#2  0x00007ff11293295d in
ProjectExplorer::ProjectExplorerPlugin::qt_metacall () from
/opt/qtsdk-2009.05/lib/qtcreator/plugins/Nokia/libProjectExplorer.so
#3  0x00007ff11a3c8d3a in QMetaObject::activate () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#4  0x00007ff11ac22d32 in QAction::triggered () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#5  0x00007ff11ac25327 in QAction::qt_metacall () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#6  0x00007ff11a3c8d3a in QMetaObject::activate () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#7  0x00007ff11ac22d32 in QAction::triggered () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#8  0x00007ff11ac24110 in QAction::activate () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#9  0x00007ff11ac24e7e in QAction::event () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#10 0x00007ff11ac2980f in QApplicationPrivate::notify_helper () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#11 0x00007ff11ac2d446 in QApplication::notify () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#12 0x00007ff11a3b5924 in QCoreApplication::notifyInternal () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#13 0x00007ff11ac64880 in QShortcutMap::dispatchEvent () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#14 0x00007ff11ac658ba in QShortcutMap::tryShortcutEvent () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#15 0x00007ff11ac2e350 in QApplication::notify () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#16 0x00007ff11a3b5924 in QCoreApplication::notifyInternal () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#17 0x00007ff11ac29b5c in qt_sendSpontaneousEvent () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#18 0x00007ff11acce59d in QKeyMapper::sendKeyEvent () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#19 0x00007ff11acd061f in QKeyMapperPrivate::translateKeyEvent () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#20 0x00007ff11acaa2b4 in QApplication::x11ProcessEvent () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#21 0x00007ff11acd3756 in x11EventSourceDispatch () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#22 0x00007ff118c5620a in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#23 0x00007ff118c598e0 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0x00007ff118c59a7c in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#25 0x00007ff11a3e0365 in QEventDispatcherGlib::processEvents () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#26 0x00007ff11acd356f in QGuiEventDispatcherGlib::processEvents () from
/opt/qtsdk-2009.05/bin/../lib/libQtGui.so.4
#27 0x00007ff11a3b4bb5 in QEventLoop::processEvents () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#28 0x00007ff11a3b4f0d in QEventLoop::exec () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#29 0x00007ff11a3b6c9b in QCoreApplication::exec () from
/opt/qtsdk-2009.05/bin/../lib/libQtCore.so.4
#30 0x0000000000409e0e in main ()

By the way, I don't have the debug helpers enabled.
Hope it helps,
Tomás.


On Mon, Mar 15, 2010 at 7:50 AM, Tomás Ortí <tomasorti at gmail.com> wrote:

> Hi.
> When I create a project importing a Makefile with a very simple cpp file,
> and when I use from the menus *Debug | Start Debugging | Start Debugging*,
> or F5, I get a Segmentation Fault.
>
> Anyway, I was able to debug the application choosing from the menus *Debug
> | Start Debugging | Start and Debug External Application...*, and setting
> the executable file. I'm wondering if there is a way to avoid the Seg Fault,
> because F5 is also used to Continue, and I sometimes I bring down QtCreator
> by hitting F5 by mistake.
>
> I'm using QtCreator 1.3.0 (64bit) under Ubuntu.
>
> Thanks and keep the good work,
> Tomas
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100316/7e5f86b3/attachment.html 


More information about the Qt-creator-old mailing list