Can't profile KDevelop with callgrind with QtHelp doc plugin enabled
Alexander Dymo
alexander.dymo at gmail.com
Sun Apr 4 16:50:41 UTC 2010
Hey, I just wonder whether I'm the only one who can't profile KDevelop when
QtHelp is loaded. Callgrind crashes for some reason during loading. See
attachment for details.
Does anyone know what's the problem?
-------------- next part --------------
kdevelop(11832)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: Attempting to load ' "KDevQtHelp" '
kdevelop(11832)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: Checking... "???????????? ? Qt"
kdevelop(11832)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: Checked... starting to load: "???????????? ? Qt" type: QVariant(, )
(none)
Callgrind: threads.c:246 (vgCallgrind_post_signal): Assertion 'tid == vgCallgrind_current_tid' failed.
==11832== at 0x3801B124: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x3801B397: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x3801887C: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x3807F10C: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x38053E01: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x38050A0D: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x38051869: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
==11832== by 0x38079A44: ??? (in /usr/lib64/valgrind/callgrind-amd64-linux)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==11832== at 0x9B243E2: select (in /lib64/libc-2.10.1.so)
==11832== by 0x7EE43E9: qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x7E97E37: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x7E9862A: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x7E583FF: QProcess::waitForStarted(int) (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x7E584A8: QProcess::waitForFinished(int) (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x2604F2CE: qtDocsLocation(QString const&) (qthelpplugin.cpp:52)
==11832== by 0x260504CA: QtHelpPlugin::QtHelpPlugin(QObject*, QList<QVariant> const&) (qthelpplugin.cpp:80)
==11832== by 0x26052EC0: QObject* KPluginFactory::createInstance<QtHelpPlugin, QObject>(QWidget*, QObject*, QList<QVariant> const&) (kpluginfactory.h:461)
==11832== by 0x4D901AF: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib64/libkdecore.so.5.4.0)
==11832== by 0x53650E5: KDevelop::IPlugin* KPluginFactory::create<KDevelop::IPlugin>(QWidget*, QObject*, QString const&, QList<QVariant> const&) (kpluginfactory.h:515)
==11832== by 0x5364BB5: KDevelop::IPlugin* KService::createInstance<KDevelop::IPlugin>(QWidget*, QObject*, QList<QVariant> const&, QString*) const (kservice.h:523)
==11832== by 0x53640A0: KDevelop::IPlugin* KServiceTypeTrader::createInstanceFromQuery<KDevelop::IPlugin>(QString const&, QWidget*, QObject*, QString const&, QList<QVariant> const&, QString*) (kservicetypetrader.h:184)
==11832== by 0x536315D: KDevelop::IPlugin* KServiceTypeTrader::createInstanceFromQuery<KDevelop::IPlugin>(QString const&, QString const&, QObject*, QList<QVariant> const&, QString*) (kservicetypetrader.h:157)
==11832== by 0x535F186: KDevelop::PluginController::loadPluginInternal(QString const&) (plugincontroller.cpp:438)
==11832== by 0x5360326: KDevelop::PluginController::allPluginsForExtension(QString const&, QStringList const&) (plugincontroller.cpp:580)
==11832== by 0x53B98BA: KDevelop::DocumentationController::documentationProviders() const (documentationcontroller.cpp:124)
==11832== by 0x53BC3C3: ProvidersModel::ProvidersModel(QObject*) (documentationview.cpp:42)
==11832== by 0x53BB75C: DocumentationView::DocumentationView(QWidget*) (documentationview.cpp:96)
==11832== by 0x53B9F1F: DocumentationViewFactory::create(QWidget*) (documentationcontroller.cpp:47)
==11832== by 0x536CFDD: KDevelop::UiToolViewFactory::create(Sublime::ToolDocument*, QWidget*) (uicontroller.cpp:149)
==11832== by 0xB69523E: Sublime::ToolDocument::createViewWidget(QWidget*) (tooldocument.cpp:60)
==11832== by 0xB69578D: Sublime::View::createWidget(QWidget*) (view.cpp:90)
==11832== by 0xB6956F1: Sublime::View::widget(QWidget*) (view.cpp:82)
==11832== by 0xB69B586: Sublime::IdealMainWidget::addView(Qt::DockWidgetArea, Sublime::View*) (ideal.cpp:618)
==11832== by 0xB68D19A: Sublime::MainWindowPrivate::IdealToolViewCreator::operator()(Sublime::View*, Sublime::Position) (mainwindow_p.cpp:190)
==11832== by 0xB692540: void Sublime::Area::walkToolViews<Sublime::MainWindowPrivate::IdealToolViewCreator>(Sublime::MainWindowPrivate::IdealToolViewCreator&, QFlags<Sublime::Position>) (areawalkers.h:59)
==11832== by 0xB68F421: Sublime::MainWindowPrivate::toolViewAdded(Sublime::View*, Sublime::Position) (mainwindow_p.cpp:540)
==11832== by 0xB687FFF: Sublime::MainWindow::qt_metacall(QMetaObject::Call, int, void**) (mainwindow.moc:126)
==11832== by 0x5354630: KDevelop::MainWindow::qt_metacall(QMetaObject::Call, int, void**) (mainwindow.moc:89)
==11832== by 0x7ED078E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0xB675F67: Sublime::Area::toolViewAdded(Sublime::View*, Sublime::Position) (area.moc:136)
==11832== by 0xB674308: Sublime::Area::addToolView(Sublime::View*, Sublime::Position) (area.cpp:239)
==11832== by 0x536B697: KDevelop::UiController::addToolViewToArea(KDevelop::IToolViewFactory*, Sublime::ToolDocument*, Sublime::Area*) (uicontroller.cpp:578)
==11832== by 0x5369B89: KDevelop::UiController::addToolView(QString const&, KDevelop::IToolViewFactory*) (uicontroller.cpp:308)
==11832== by 0x53B92FA: KDevelop::DocumentationController::initialize() (documentationcontroller.cpp:67)
==11832== by 0x5366AA3: KDevelop::CorePrivate::initialize(KDevelop::Core::Setup) (core.cpp:201)
==11832== by 0x53670D1: KDevelop::Core::initialize(KSplashScreen*, KDevelop::Core::Setup) (core.cpp:230)
==11832== by 0x407379: main (main_internal.cpp:111)
Thread 2: status = VgTs_WaitSys
==11832== at 0x81DE2CD: pthread_cond_timedwait@@GLIBC_2.3.2 (pthread_cond_timedwait.S:220)
==11832== by 0x7DCA691: QWaitCondition::wait(QMutex*, unsigned long) (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0xB240C7E: KDevelop::DUChainPrivate::CleanupThread::run() (duchain.cpp:286)
==11832== by 0x7DC9774: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x81D965C: start_thread (pthread_create.c:297)
==11832== by 0x9B2AE1C: clone (in /lib64/libc-2.10.1.so)
Thread 3: status = VgTs_WaitSys
==11832== at 0x9B243E2: select (in /lib64/libc-2.10.1.so)
==11832== by 0x7E9A902: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x7DC9774: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x81D965C: start_thread (pthread_create.c:297)
==11832== by 0x9B2AE1C: clone (in /lib64/libc-2.10.1.so)
Thread 4: status = VgTs_WaitSys
==11832== at 0x81E0ABB: ??? (in /lib64/libpthread-2.10.1.so)
==11832== by 0x20DEAEB5: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20DFC97A: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20DFE4C4: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20DFEB01: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E50721: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E50C81: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E59297: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20DF1D95: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E32385: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E481EA: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E4AEB5: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E4DCC6: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E4E4DE: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E4E6A3: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x267E8732: ??? (in /usr/lib64/qt4/plugins/sqldrivers/libqsqlite.so)
==11832== by 0x267E5AD9: ??? (in /usr/lib64/qt4/plugins/sqldrivers/libqsqlite.so)
==11832== by 0x22582915: QSqlQuery::exec(QString const&) (in /usr/lib64/libQtSql.so.4.6.2)
==11832== by 0x262824CD: ??? (in /usr/lib64/libQtHelp.so.4.6.2)
==11832== by 0x2628832C: ??? (in /usr/lib64/libQtHelp.so.4.6.2)
==11832== by 0x7DC9774: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x81D965C: start_thread (pthread_create.c:297)
==11832== by 0x9B2AE1C: clone (in /lib64/libc-2.10.1.so)
Thread 5: status = VgTs_WaitSys
==11832== at 0x81E07A5: __lll_unlock_wake (lowlevellock.S:366)
==11832== by 0x81DD383: _L_unlock_523 (pthread_mutex_unlock.c:289)
==11832== by 0x81DD2B2: __pthread_mutex_unlock_usercnt (pthread_mutex_unlock.c:52)
==11832== by 0x20DFBFBD: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E12857: ??? (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x20E1CF2D: sqlite3_close (in /usr/lib64/libsqlite3.so.0.8.6)
==11832== by 0x267E77DB: ??? (in /usr/lib64/qt4/plugins/sqldrivers/libqsqlite.so)
==11832== by 0x22584CEC: QSqlDatabase::~QSqlDatabase() (in /usr/lib64/libQtSql.so.4.6.2)
==11832== by 0x22585337: ??? (in /usr/lib64/libQtSql.so.4.6.2)
==11832== by 0x2627F753: ??? (in /usr/lib64/libQtHelp.so.4.6.2)
==11832== by 0x2628B802: ??? (in /usr/lib64/libQtHelp.so.4.6.2)
==11832== by 0x7DC9774: ??? (in /usr/lib64/libQtCore.so.4.6.2)
==11832== by 0x81D965C: start_thread (pthread_create.c:297)
==11832== by 0x9B2AE1C: clone (in /lib64/libc-2.10.1.so)
Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.
If that doesn't help, please report this bug to: www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what OS and version you are using. Thanks.
More information about the KDevelop-devel
mailing list