[Qt-creator] A small bug and a segfault.
Turnaev Eugeny
turnaev at t72.ru
Tue Jan 20 14:07:58 CET 2009
Hello,
A small bug in qrc edit:
* open qrc file ..
* add any file
* double click on added file tree
* edit file alias in LineEdit
When you edit alias (for example if you are in the middle of string)
a Del key hit deletes character and moves cursor to the end of line Edit
This was the small one.
Here is the big one:
Dont know exact scenario.. if happens from time to time.
It happens wheni go to options dialog
and add another qt version..
and when i click Ok in options dialog -> segfault.
I am not a guru of gdb.. if you send me
exact commands what you want me to
do in gdb i think i can reproduce a bug (i already did it about 10 times)
and send gdb output back.
Here is gdb output:
(gdb) c
Continuing.
Missing separate debuginfo for /opt/qtcreator-0.9.1/lib/libQtScript.so.4
Missing separate debuginfo for /opt/qtcreator-0.9.1/bin/imageformats/libqsvg.so
Missing separate debuginfo for /opt/qtcreator-0.9.1/lib/libQtHelp.so.4
Missing separate debuginfo for /opt/qtcreator-0.9.1/lib/libQtCLucene.so.4
Missing separate debuginfo for /opt/qtcreator-0.9.1/lib/libQtSql.so.4
Missing separate debuginfo for /opt/qtcreator-0.9.1/lib/libQtDesigner.so.4
Missing separate debuginfo for /opt/qtcreator-0.9.1/lib/libQtDesignerComponents.so.4
Missing separate debuginfo for /opt/qtcreator-0.9.1/bin/sqldrivers/libqsqlite.so
[New Thread -1212331120 (LWP 26147)]
[New Thread -1222820976 (LWP 26148)]
[Thread -1212331120 (LWP 26147) exited]
[Thread -1222820976 (LWP 26148) exited]
Missing separate debuginfo for /opt/qtcreator-0.9.1/bin/iconengines/libqsvgicon.so
Missing separate debuginfo for /opt/qtcreator-0.9.1/bin/designer/libqt3supportwidgets.so
Missing separate debuginfo for /opt/qtcreator-0.9.1/bin/designer/libqwebview.so
[New Thread -1222820976 (LWP 26152)]
[Detaching after fork from child process 26153. (Try `set detach-on-fork off'.)]
[Detaching after fork from child process 26154.]
[Detaching after fork from child process 26155.]
[Detaching after fork from child process 26156.]
[Detaching after fork from child process 26157.]
[New Thread -1212331120 (LWP 26158)]
[New Thread -1233310832 (LWP 26159)]
[New Thread -1245709424 (LWP 26160)]
[Thread -1212331120 (LWP 26158) exited]
[Thread -1245709424 (LWP 26160) exited]
[New Thread -1245709424 (LWP 26161)]
[Thread -1233310832 (LWP 26159) exited]
[New Thread -1233310832 (LWP 26172)]
[New Thread -1212331120 (LWP 26173)]
[Detaching after fork from child process 26174.]
[Detaching after fork from child process 26175.]
[Detaching after fork from child process 26177.]
[Detaching after fork from child process 26179.]
[New Thread -1291846768 (LWP 26204)]
[New Thread -1302336624 (LWP 26205)]
[Thread -1291846768 (LWP 26204) exited]
[Thread -1302336624 (LWP 26205) exited]
[Detaching after fork from child process 26234.]
[Detaching after fork from child process 26235.]
Program received signal SIGSEGV, Segmentation fault.
0x069e677e in Qt4ProjectManager::Internal::QtVersion::path () from /opt/qtcreator-0.9.1/lib/Nokia/libQt4ProjectManager.so.1.0.0
Missing separate debuginfos, use: debuginfo-install e2fsprogs.i386 keyutils.i386 krb5.i386 libXcursor.i386 libXfixes.i386 libXinerama.i386 libXrandr.i386 libselinux.i386 linuxwacom.i386 openssl.i386 openssl.i686 zlib.i386
(gdb) bt
#0 0x069e677e in Qt4ProjectManager::Internal::QtVersion::path () from /opt/qtcreator-0.9.1/lib/Nokia/libQt4ProjectManager.so.1.0.0
#1 0x069f39dc in Qt4ProjectManager::Internal::QtVersionManager::finished () from /opt/qtcreator-0.9.1/lib/Nokia/libQt4ProjectManager.so.1.0.0
#2 0x06d9474a in Core::Internal::SettingsDialog::accept () from /opt/qtcreator-0.9.1/lib/Nokia/libCore.so.1.0.0
#3 0x06ddbe31 in Core::Internal::SettingsDialog::qt_metacall () from /opt/qtcreator-0.9.1/lib/Nokia/libCore.so.1.0.0
#4 0x007c9492 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#5 0x007c9b52 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#6 0x00ed7e87 in QDialogButtonBox::accepted () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#7 0x00ed892d in QDialogButtonBoxPrivate::_q_handleButtonClicked () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#8 0x00eda373 in QDialogButtonBox::qt_metacall () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#9 0x007c9492 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#10 0x007c98f0 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#11 0x01169c11 in QAbstractButton::clicked () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#12 0x00ea2fd9 in QAbstractButtonPrivate::emitClicked () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#13 0x00ea42a0 in QAbstractButtonPrivate::click () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#14 0x00ea4500 in QAbstractButton::mouseReleaseEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#15 0x00b00591 in QWidget::event () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#16 0x00ea3623 in QAbstractButton::event () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#17 0x00f4eed2 in QPushButton::event () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#18 0x00aa70ef in QApplicationPrivate::notify_helper () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#19 0x00aaba3c in QApplication::notify () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#20 0x007b369b in QCoreApplication::notifyInternal () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#21 0x00aacf33 in QApplicationPrivate::sendMouseEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#22 0x00b1882b in QETWidget::translateMouseEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#23 0x00b17dac in QApplication::x11ProcessEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#24 0x00b403c4 in x11EventSourceDispatch () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#25 0x078881ac in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x0788b5ef in ?? () from /lib/libglib-2.0.so.0
#27 0x0788bb55 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x007dfece in QEventDispatcherGlib::processEvents () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#29 0x00b40175 in QGuiEventDispatcherGlib::processEvents () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#30 0x007b286d in QEventLoop::processEvents () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#31 0x007b2bdd in QEventLoop::exec () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#32 0x00fd7199 in QDialog::exec () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#33 0x06d3caad in Core::Internal::MainWindow::showOptionsDialog () from /opt/qtcreator-0.9.1/lib/Nokia/libCore.so.1.0.0
#34 0x06dd7023 in Core::Internal::MainWindow::qt_metacall () from /opt/qtcreator-0.9.1/lib/Nokia/libCore.so.1.0.0
#35 0x007c9492 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#36 0x007c98f0 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#37 0x00a9fe31 in QAction::triggered () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#38 0x00aa2992 in QAction::qt_metacall () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#39 0x007c9492 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#40 0x007c98f0 in QMetaObject::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#41 0x00a9fe31 in QAction::triggered () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#42 0x00aa08ef in QAction::activate () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#43 0x00f392d8 in QMenuPrivate::activateCausedStack () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#44 0x00f40123 in QMenuPrivate::activateAction () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#45 0x00f42adf in QMenu::mouseReleaseEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#46 0x00b00591 in QWidget::event () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#47 0x00f3df5f in QMenu::event () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#48 0x00aa70ef in QApplicationPrivate::notify_helper () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#49 0x00aaba3c in QApplication::notify () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#50 0x007b369b in QCoreApplication::notifyInternal () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#51 0x00aacf33 in QApplicationPrivate::sendMouseEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#52 0x00b185c1 in QETWidget::translateMouseEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#53 0x00b17dac in QApplication::x11ProcessEvent () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#54 0x00b403c4 in x11EventSourceDispatch () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#55 0x078881ac in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#56 0x0788b5ef in ?? () from /lib/libglib-2.0.so.0
#57 0x0788bb55 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#58 0x007dfece in QEventDispatcherGlib::processEvents () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#59 0x00b40175 in QGuiEventDispatcherGlib::processEvents () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#60 0x007b286d in QEventLoop::processEvents () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#61 0x007b2bdd in QEventLoop::exec () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#62 0x007b4cbc in QCoreApplication::exec () from /opt/qtcreator-0.9.1/bin/../lib/libQtCore.so.4
#63 0x00aa6897 in QApplication::exec () from /opt/qtcreator-0.9.1/bin/../lib/libQtGui.so.4
#64 0x0804f9be in main ()
(gdb) info registers
eax 0xbfa397c4 -1079797820
ecx 0x1 1
edx 0x14 20
ebx 0x6ab9aa4 111909540
esp 0xbfa39788 0xbfa39788
ebp 0xbfa39788 0xbfa39788
esi 0x1 1
edi 0x1 1
eip 0x69e677e 0x69e677e <Qt4ProjectManager::Internal::QtVersion::path() const+14>
eflags 0x210202 [ IF RF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) info all-registers
eax 0xbfa397c4 -1079797820
ecx 0x1 1
edx 0x14 20
ebx 0x6ab9aa4 111909540
esp 0xbfa39788 0xbfa39788
ebp 0xbfa39788 0xbfa39788
esi 0x1 1
edi 0x1 1
eip 0x69e677e 0x69e677e <Qt4ProjectManager::Internal::QtVersion::path() const+14>
eflags 0x210202 [ IF RF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
st0 20 (raw 0x4003a000000000000000)
st1 444.5 (raw 0x4007de40000000000000)
st2 0.5 (raw 0x3ffe8000000000000000)
st3 0.5 (raw 0x3ffe8000000000000000)
st4 1.5 (raw 0x3fffc000000000000000)
st5 20 (raw 0x4003a000000000000000)
st6 1 (raw 0x3fff8000000000000000)
st7 1 (raw 0x3fff8000000000000000)
fctrl 0x37f 895
fstat 0x4023 16419
ftag 0xffff 65535
fiseg 0x73 115
fioff 0xcb3e32 13319730
foseg 0x7b 123
fooff 0x9771b90 158800784
fop 0x1c9 457
xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
mm0 {uint64 = 0xa000000000000000, v2_int32 = {0x0, 0xa0000000}, v4_int16 = {0x0, 0x0, 0x0, 0xa000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0xa0}}
---Type <return> to continue, or q <return> to quit---
mm1 {uint64 = 0xde40000000000000, v2_int32 = {0x0, 0xde400000}, v4_int16 = {0x0, 0x0, 0x0, 0xde40}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x40, 0xde}}
mm2 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
mm3 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
mm4 {uint64 = 0xc000000000000000, v2_int32 = {0x0, 0xc0000000}, v4_int16 = {0x0, 0x0, 0x0, 0xc000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0xc0}}
mm5 {uint64 = 0xa000000000000000, v2_int32 = {0x0, 0xa0000000}, v4_int16 = {0x0, 0x0, 0x0, 0xa000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0xa0}}
mm6 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
mm7 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x80}}
(gdb) info catch
blockvector botch
(gdb) info frame
Stack level 0, frame at 0xbfa39790:
eip = 0x69e677e in Qt4ProjectManager::Internal::QtVersion::path() const; saved eip 0x69f39dc
called by frame at 0xbfa397e0
source language asm.
Arglist at 0xbfa39788, args:
Locals at 0xbfa39788, Previous frame's sp is 0xbfa39790
Saved registers:
ebp at 0xbfa39788, eip at 0xbfa3978c
(gdb) info threads
10 Thread -1212331120 (LWP 26173) 0x00110416 in __kernel_vsyscall ()
9 Thread -1233310832 (LWP 26172) 0x00110416 in __kernel_vsyscall ()
8 Thread -1245709424 (LWP 26161) 0x00110416 in __kernel_vsyscall ()
4 Thread -1222820976 (LWP 26152) 0x00110416 in __kernel_vsyscall ()
* 1 Thread -1208932656 (LWP 26127) 0x069e677e in Qt4ProjectManager::Internal::QtVersion::path ()
from /opt/qtcreator-0.9.1/lib/Nokia/libQt4ProjectManager.so.1.0.0
More information about the Qt-creator-old
mailing list