Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
463488f7d7d6ac0c11740a4dd9f3b84e284f9c06
Description
i compiled something, got the following errors:
.obj/debug-shared/tst_qprocess.o: In function `tst_QProcess::execute()': /depot/obuddenh/qt-4.7/tests/auto/qprocess/tst_qprocess.cpp:296: undefined reference to `bool QTest::qCompare<int, bool>(int const&, bool const&, char const*, char const*, char const*, int)' collect2: ld returned 1 exit status
this yields three items in the issues list:
- the .o file without line number
- the .cpp file with line number
- the "collect2" error
clicking the second item works. clicking the first item results in creator hanging with the following backtrace:
#0 bm_find (uc=0xb17d7ea, l=138161, index=7177, puc=0x9d57762, pl=2, skiptable=0xff9c52c4 '\002' <repeats 35 times>, "\001\002\002\002", cs=Qt::CaseSensitive)
at /depot/obuddenh/qt-4.7/src/corelib/tools/qstringmatcher.cpp:77
#1 0xf665dd3a in QStringMatcher::indexIn (this=0xff9c52b8, str=0xb17d7ea, length=138161, from=7177)
at /depot/obuddenh/qt-4.7/src/corelib/tools/qstringmatcher.cpp:296
#2 0xf6644481 in QRegExpEngine::goodStringMatch (this=0xaeefc48, matchState=...) at /depot/obuddenh/qt-4.7/src/corelib/tools/qregexp.cpp:1877
#3 0xf6642f31 in QRegExpMatchState::match (this=0xe66940e4, str0=0xb17d7ea, len0=138161, pos0=7177, minimal0=false, oneTest=false, caretIndex=0)
at /depot/obuddenh/qt-4.7/src/corelib/tools/qregexp.cpp:1448
#4 0xf66513ff in QRegExp::indexIn (this=0xe65d2528, str=..., offset=7177, caretMode=QRegExp::CaretAtZero)
at /depot/obuddenh/qt-4.7/src/corelib/tools/qregexp.cpp:4118
#5 0xf42fdc82 in TextEditor::Internal::RegExprRule::doMatchSucceed (this=0xe65d24f8, text=..., length=138161, progress=0xff9c58a8)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/generichighlighter/specificrules.cpp:205
#6 0xf4301e1f in TextEditor::Internal::Rule::matchSucceed (this=0xe65d24f8, text=..., length=138161, progress=0xff9c58a8)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/generichighlighter/rule.cpp:174
#7 0xf430ad01 in TextEditor::Internal::Highlighter::iterateThroughRules (this=0xe715cfc0, text=..., length=138161, progress=0xff9c58a8, childRule=false,
rules=...) at /depot/obuddenh/qtcreator/src/plugins/texteditor/generichighlighter/highlighter.cpp:232
#8 0xf430a744 in TextEditor::Internal::Highlighter::highlightBlock (this=0xe715cfc0, text=...)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/generichighlighter/highlighter.cpp:123
#9 0xf6f0b1f4 in QSyntaxHighlighterPrivate::reformatBlock (this=0xe715d010, block=...) at /depot/obuddenh/qt-4.7/src/gui/text/qsyntaxhighlighter.cpp:225
#10 0xf6f0b062 in QSyntaxHighlighterPrivate::reformatBlocks (this=0xe715d010, from=0, charsRemoved=0, charsAdded=611136)
at /depot/obuddenh/qt-4.7/src/gui/text/qsyntaxhighlighter.cpp:206
#11 0xf6f0c2a4 in QSyntaxHighlighterPrivate::rehighlight (this=0xe715d010, cursor=..., operation=QTextCursor::End)
at /depot/obuddenh/qt-4.7/src/gui/text/qsyntaxhighlighter.cpp:77
#12 0xf6f0b9f8 in QSyntaxHighlighter::rehighlight (this=0xe715cfc0) at /depot/obuddenh/qt-4.7/src/gui/text/qsyntaxhighlighter.cpp:400
#13 0xf4281848 in TextEditor::PlainTextEditor::setFontSettings (this=0xe716b120, fs=...)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/plaintexteditor.cpp:149
#14 0xf4281df4 in TextEditor::PlainTextEditor::configure (this=0xe716b120, mimeType=...)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/plaintexteditor.cpp:210
#15 0xf4281973 in TextEditor::PlainTextEditor::fileChanged (this=0xe716b120) at /depot/obuddenh/qtcreator/src/plugins/texteditor/plaintexteditor.cpp:166
#16 0xf4329a53 in TextEditor::PlainTextEditor::qt_metacall (this=0xe716b120, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xff9c5c1c)
at /depot/obuddenh/qtcreator_build/src/plugins/texteditor/.moc/debug-shared/moc_plaintexteditor.cpp:131
#17 0xf6730408 in QMetaObject::metacall (object=0xe716b120, cl=QMetaObject::InvokeMetaMethod, idx=138, argv=0xff9c5c1c)
at /depot/obuddenh/qt-4.7/src/corelib/kernel/qmetaobject.cpp:237
#18 0xf6745340 in QMetaObject::activate (sender=0xe7139f98, m=0xf5a97ad0, local_signal_index=0, argv=0x0)
at /depot/obuddenh/qt-4.7/src/corelib/kernel/qobject.cpp:3272
#19 0xf5a02c5d in Core::IFile::changed (this=0xe7139f98) at /depot/obuddenh/qtcreator_build/src/plugins/coreplugin/.moc/debug-shared/moc_ifile.cpp:88
#20 0xf4285a9d in TextEditor::BaseTextDocument::open (this=0xe7139f98, fileName=...)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/basetextdocument.cpp:316
#21 0xf428a766 in TextEditor::BaseTextEditor::open (this=0xe716b120, fileName=...) at /depot/obuddenh/qtcreator/src/plugins/texteditor/basetexteditor.cpp:583
#22 0xf4329b07 in TextEditor::BaseTextEditorEditable::open (this=0xe72ab438, fileName=...)
at /depot/obuddenh/qtcreator_build/src/plugins/texteditor/.moc/debug-shared/../../../../../../qtcreator/src/plugins/texteditor/basetexteditor.h:551
#23 0xf5965efc in Core::EditorManager::openEditor (this=0x851f098, view=0x0, fileName=..., editorId=..., flags=..., newEditor=0x0)
at /depot/obuddenh/qtcreator/src/plugins/coreplugin/editormanager/editormanager.cpp:1218
#24 0xf5965d7b in Core::EditorManager::openEditor (this=0x851f098, fileName=..., editorId=..., flags=..., newEditor=0x0)
at /depot/obuddenh/qtcreator/src/plugins/coreplugin/editormanager/editormanager.cpp:1193
#25 0xf428788b in TextEditor::BaseTextEditor::openEditorAt (fileName=..., line=-1, column=0, editorKind=..., newEditor=0x0)
at /depot/obuddenh/qtcreator/src/plugins/texteditor/basetexteditor.cpp:150
#26 0xf40bddb9 in ProjectExplorer::Internal::ShowInEditorTaskHandler::handle (this=0x84f7498, task=...)
at /depot/obuddenh/qtcreator/src/plugins/projectexplorer/showineditortaskhandler.cpp:56
#27 0xf40c1e5e in ProjectExplorer::TaskWindow::triggerDefaultHandler (this=0x8419a10, index=...)
at /depot/obuddenh/qtcreator/src/plugins/projectexplorer/taskwindow.cpp:644
#28 0xf4181657 in ProjectExplorer::TaskWindow::qt_metacall (this=0x8419a10, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xff9c60c8)
at /depot/obuddenh/qtcreator_build/src/plugins/projectexplorer/.moc/debug-shared/moc_taskwindow.cpp:89
#29 0xf6730408 in QMetaObject::metacall (object=0x8419a10, cl=QMetaObject::InvokeMetaMethod, idx=15, argv=0xff9c60c8)
at /depot/obuddenh/qt-4.7/src/corelib/kernel/qmetaobject.cpp:237
#30 0xf6745340 in QMetaObject::activate (sender=0x8418728, m=0xf76d2fc4, local_signal_index=1, argv=0xff9c60c8)
at /depot/obuddenh/qt-4.7/src/corelib/kernel/qobject.cpp:3272
#31 0xf723ed7e in QAbstractItemView::clicked (this=0x8418728, _t1=...) at .moc/debug-shared/moc_qabstractitemview.cpp:331
#32 0xf7233b92 in QAbstractItemView::mouseReleaseEvent (this=0x8418728, event=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/itemviews/qabstractitemview.cpp:1789
#33 0xf7253680 in QListView::mouseReleaseEvent (this=0x8418728, e=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/itemviews/qlistview.cpp:796
#34 0xf6c1f7a2 in QWidget::event (this=0x8418728, event=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/kernel/qwidget.cpp:8158
#35 0xf70c4814 in QFrame::event (this=0x8418728, e=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/widgets/qframe.cpp:557
#36 0xf7175009 in QAbstractScrollArea::viewportEvent (this=0x8418728, e=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/widgets/qabstractscrollarea.cpp:1043
#37 0xf7232a2d in QAbstractItemView::viewportEvent (this=0x8418728, event=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/itemviews/qabstractitemview.cpp:1619
#38 0xf7175b7d in QAbstractScrollAreaPrivate::viewportEvent (this=0x85c47b0, event=0xff9c6c4c)
at /depot/obuddenh/qt-4.7/src/gui/widgets/qabstractscrollarea_p.h:100
#39 0xf7175c68 in QAbstractScrollAreaFilter::eventFilter (this=0x84f52b8, o=0x85c4598, e=0xff9c6c4c)
at /depot/obuddenh/qt-4.7/src/gui/widgets/qabstractscrollarea_p.h:116
#40 0xf672898d in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x83799d8, receiver=0x85c4598, event=0xff9c6c4c)
at /depot/obuddenh/qt-4.7/src/corelib/kernel/qcoreapplication.cpp:847
#41 0xf6bb1f4a in QApplicationPrivate::notify_helper (this=0x83799d8, receiver=0x85c4598, e=0xff9c6c4c)
at /depot/obuddenh/qt-4.7/src/gui/kernel/qapplication.cpp:4385
#42 0xf6baffdf in QApplication::notify (this=0xff9c7578, receiver=0x85c4598, e=0xff9c6c4c) at /depot/obuddenh/qt-4.7/src/gui/kernel/qapplication.cpp:3952
#43 0xf67286af in QCoreApplication::notifyInternal (this=0xff9c7578, receiver=0x85c4598, event=0xff9c6c4c)
at /depot/obuddenh/qt-4.7/src/corelib/kernel/qcoreapplication.cpp:732
#44 0xf6bb4ea7 in QCoreApplication::sendSpontaneousEvent (receiver=0x85c4598, event=0xff9c6c4c)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#45 0xf6bae5ea in QApplicationPrivate::sendMouseEvent (receiver=0x85c4598, event=0xff9c6c4c, alienWidget=0x85c4598, nativeWidget=0x8433540,
buttonDown=0xf76eaa60, lastMouseReceiver=..., spontaneous=true) at /depot/obuddenh/qt-4.7/src/gui/kernel/qapplication.cpp:3049
#46 0xf6c57025 in QETWidget::translateMouseEvent (this=0x8433540, event=0xff9c7180) at /depot/obuddenh/qt-4.7/src/gui/kernel/qapplication_x11.cpp:4403
#47 0xf6c53c66 in QApplication::x11ProcessEvent (this=0xff9c7578, event=0xff9c7180) at /depot/obuddenh/qt-4.7/src/gui/kernel/qapplication_x11.cpp:3414
#48 0xf6c8b595 in x11EventSourceDispatch (s=0x837d700, callback=0, user_data=0x0) at /depot/obuddenh/qt-4.7/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#49 0xf622c2f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#50 0xf622ffd8 in ?? () from /lib/libglib-2.0.so.0
#51 0xf62301b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#52 0xf676230e in QEventDispatcherGlib::processEvents (this=0x837a598, flags=...) at /depot/obuddenh/qt-4.7/src/corelib/kernel/qeventdispatcher_glib.cpp:415
#53 0xf6c8bbce in QGuiEventDispatcherGlib::processEvents (this=0x837a598, flags=...) at /depot/obuddenh/qt-4.7/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#54 0xf6725a77 in QEventLoop::processEvents (this=0xff9c745c, flags=...) at /depot/obuddenh/qt-4.7/src/corelib/kernel/qeventloop.cpp:149
#55 0xf6725bbc in QEventLoop::exec (this=0xff9c745c, flags=...) at /depot/obuddenh/qt-4.7/src/corelib/kernel/qeventloop.cpp:201
#56 0xf6728da1 in QCoreApplication::exec () at /depot/obuddenh/qt-4.7/src/corelib/kernel/qcoreapplication.cpp:1009
#57 0xf6baf2b0 in QApplication::exec () at /depot/obuddenh/qt-4.7/src/gui/kernel/qapplication.cpp:3665
#58 0x08051b54 in main (argc=1, argv=0xff9c7854) at /depot/obuddenh/qtcreator/src/app/main.cpp:309
the actual hang is in the text editor, but the root cause seems to be that it tries to open the binary file as a text file in the first place.