Bug 1248073 - kdevelop attach process missing
Summary: kdevelop attach process missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kdevelop
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Kevin Kofler
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-29 14:30 UTC by Andrey Amado
Modified: 2015-10-04 22:51 UTC (History)
9 users (show)

Fixed In Version: kdevelop-4.7.1-10.fc22
Clone Of:
Environment:
Last Closed: 2015-10-04 22:51:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Do_not_use_function_returning_reference_to_temporary (1.29 KB, patch)
2015-09-24 08:44 UTC, Siddharth Sharma
no flags Details | Diff
Remove_ConvenientIterator_ref_usage_from_oldcpp_codebase (40.83 KB, message/rfc822)
2015-09-24 08:45 UTC, Siddharth Sharma
no flags Details
gdb kdevelop output (32.27 KB, text/plain)
2015-09-24 13:59 UTC, Dan Mossor [danofsatx]
no flags Details

Description Andrey Amado 2015-07-29 14:30:28 UTC
Description of problem:
I find the option "Attach process" on  menu "Run" but no found.


Version-Release number of selected component (if applicable):
kdevelop-libs-4.7.1-1.fc22.x86_64
kdevelop-4.7.1-1.fc22.x86_64


How reproducible:

Open project, next find option on menu "Run" but no found for attach on process of system.


Actual results:
I can't attach one process of the system to kdevelop.

Expected results:
View option on menu "Run->Attach Process"

Additional info:
I found other references to it on arch and ubuntu.

https://bugs.archlinux.org/task/42757
https://bugs.launchpad.net/ubuntu/+source/kdevelop/+bug/1456956

Comment 1 Kevin Kofler 2015-07-30 09:51:05 UTC
That's why you should NEVER comment out BuildRequires. It's better to have the package not build at all until the missing BRs are imported, because that way you are sure to not forget to reenable them.

Comment 2 Rex Dieter 2015-07-30 13:29:00 UTC
what missing BuildRequires?  (I don't see anyting commented out in kdevelop.spec)

Comment 3 Kevin Kofler 2015-07-30 17:26:42 UTC
That's because I fixed it. The BR kde-workspace-devel was commented out, pending the partial reintroduction of kde-workspace for F22+. When that happened, the BR was not reenabled.

Comment 4 Fedora Update System 2015-07-30 17:30:27 UTC
kdevelop-4.7.1-7.fc23 has been submitted as an update for Fedora 23.
https://admin.fedoraproject.org/updates/kdevelop-4.7.1-7.fc23

Comment 5 Fedora Update System 2015-07-30 17:31:38 UTC
kdevelop-4.7.1-7.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/kdevelop-4.7.1-7.fc22

Comment 6 Andrey Amado 2015-07-30 18:06:56 UTC
Hi, thank for quickly response and patch, i installed the updates but on the moment to create new project show crash and I can't create or load project.
Attach the konsole output.

Legacy integer arithmetics implementation 
kdevelop(22243)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "El complemento «Implementación de Bazaar» no se puede cargar correctamente y ha sido desactivado.
Motivo: Bazaar is not installed (bzr executable not found)." 
kdevelop(22243)/kdeui (kdelibs): Attempt to use QAction "commit_or_finish_review" with KXMLGUIFactory! 
qrc:/qml/main.qml:23:1: QML Loader: Detectado bucle de enlace para la propiedad ësourceû
qrc:/qml/main.qml:23:1: QML Loader: Detectado bucle de enlace para la propiedad ësourceû
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x3a00015
/bin/cat: /home/andreyamado/.kde/share/apps/kdevelop/sessions/{71260749-649d-4931-9cac-d7afe22ada76}/default.sh: No existe el fichero o el directorio
kdevelop(22243)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: Unable to find a plugin named ' "" '! 
kdevelop(22243) KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin: Ninja plugin installed but ninja is not installed. 
kdevelop(22243)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "El complemento «Constructor de proyectos Ninja» no se puede cargar correctamente y ha sido desactivado.
Motivo: ." 
kdevelop(22243) KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin: Ninja plugin installed but ninja is not installed. 
kdevelop(22243)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: "El complemento «Constructor de proyectos Ninja» no se puede cargar correctamente y ha sido desactivado.
Motivo: ." 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x3a00108
kdevelop(22243)/kdevplatform (shell) KDevelop::RunController::registerJob: non-killable job CMakeImportJob(0x1307df0) registered - this might lead to crashes on shutdown. 
Path::init: invalid/unsupported Path encountered: ""
Path::init: invalid/unsupported Path encountered: ""
Path::init: invalid/unsupported Path encountered: ""
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
KCrash: Connect sock_file=/home/andreyamado/.kde/socket-serveradmin.vidamx.net/kdeinit4__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
QSocketNotifier: Invalid socket 16 and type 'Read', disabling...
QSocketNotifier: Invalid socket 31 and type 'Read', disabling...
QSocketNotifier: Invalid socket 43 and type 'Read', disabling...
QSocketNotifier: Invalid socket 25 and type 'Read', disabling...
kdevelop: Fatal IO error: client killed
DUContextData::m_childContexts There were items left on destruction: 2
TopDUContextData::m_problems There were items left on destruction: 3
DUContextData::m_uses There were items left on destruction: 49
TopDUContextData::m_usedDeclarationIds There were items left on destruction: 48
DUContextData::m_localDeclarations There were items left on destruction: 19
DUContextData::m_importers There were items left on destruction: 54
DUContextData::m_importedContexts There were items left on destruction: 55
pp_macro::formals There were items left on destruction: 31
pp_macro::definition There were items left on destruction: 403
Unable to start Dr. Konqi
[andreyamado@serveradmin build]$ Legacy integer arithmetics implementation 
drkonqi(22547): The specified process does not exist.

Comment 7 Kevin Kofler 2015-07-30 19:56:54 UTC
Are you sure you installed the correct version (the .fc22 one, not the .fc23 one)?

Comment 8 Andrey Amado 2015-07-30 20:00:38 UTC
yes, i sure.

kdevelop-devel-4.7.1-7.fc22.x86_64
kdevelop-libs-4.7.1-7.fc22.x86_64
kdevelop-4.7.1-7.fc22.x86_64

Comment 9 Andrey Amado 2015-07-30 22:40:48 UTC
I installed the packages on vm clean and work... the problem is my machine.. :( i report if found the problem.
Thank you.

Comment 10 Fedora Update System 2015-07-31 07:56:26 UTC
Package kdevelop-4.7.1-7.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kdevelop-4.7.1-7.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-12438/kdevelop-4.7.1-7.fc22
then log in and leave karma (feedback).

Comment 11 Andrey Amado 2015-07-31 23:02:03 UTC
I upgrade my clean machine to testing and present same problems with new project "Standar->terminal", with new project "QT->graphical" work property.

I found a workaround for my issue, i open kdevelop with out any project, next i import the project and repeat press the button "stop all" and the task show on the progress bar stop and my project can import correctly.

I search more about the threads on the init process of kdevelop and inform if  ia can found any.

Comment 12 Andrey Amado 2015-07-31 23:11:11 UTC
well, I was disabled the "analyzer background" and is some stable, but i activate its and instant crash. i think the problem is related with libthread  

Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f892d721900 (LWP 26178))]

Thread 11 (Thread 0x7f8900979700 (LWP 26179)):
#0  0x00007f892859c540 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f892683ab5a in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQtScript.so.4
#2  0x00007f892683ab89 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQtScript.so.4
#3  0x00007f8928597555 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f8927a31b9d in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f887ef5f700 (LWP 26181)):
#0  0x00007f892859c8e9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8928826ff4 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007f8926c25586 in KDevelop::DUChainPrivate::CleanupThread::run() () from /lib64/libkdevplatformlanguage.so.8
#3  0x00007f8928826aac in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#4  0x00007f8928597555 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8927a31b9d in clone () from /lib64/libc.so.6

...

Thread 6 (Thread 0x7f884f7be700 (LWP 26228)):
[KCrash Handler]
#6  0x00007f8861c5f270 in QHash<KDevelop::IndexedString, QHashDummyValue>::findNode(KDevelop::IndexedString const&, unsigned int*) const () from /lib64/libkdev4cppduchain.so
#7  0x00007f8861c8af9a in CppPreprocessEnvironment::merge(Cpp::EnvironmentFile const*, bool) () from /lib64/libkdev4cppduchain.so
#8  0x00007f8861f2f119 in PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#9  0x00007f886175923c in rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#10 0x00007f886175d4ff in rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#11 0x00007f886175da8e in rpp::pp::operator()(rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#12 0x00007f886175de07 in rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) () from /lib64/libkdev4cpprpp.so
#13 0x00007f886175e1e5 in rpp::pp::processFile(QString const&, QByteArray const&) () from /lib64/libkdev4cpprpp.so
#14 0x00007f8861f319c6 in PreprocessJob::run() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#15 0x00007f8861f25afe in CPPParseJob::parseForeground() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#16 0x00007f8861f2fb49 in PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#17 0x00007f886175923c in rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#18 0x00007f886175d4ff in rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#19 0x00007f886175da8e in rpp::pp::operator()(rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#20 0x00007f886175de07 in rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) () from /lib64/libkdev4cpprpp.so
#21 0x00007f886175e1e5 in rpp::pp::processFile(QString const&, QByteArray const&) () from /lib64/libkdev4cpprpp.so
#22 0x00007f8861f319c6 in PreprocessJob::run() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#23 0x00007f8861f25afe in CPPParseJob::parseForeground() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#24 0x00007f8861f2fb49 in PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#25 0x00007f886175923c in rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#26 0x00007f886175d4ff in rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#27 0x00007f886175da8e in rpp::pp::operator()(rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#28 0x00007f886175de07 in rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) () from /lib64/libkdev4cpprpp.so
#29 0x00007f886175e1e5 in rpp::pp::processFile(QString const&, QByteArray const&) () from /lib64/libkdev4cpprpp.so
#30 0x00007f8861f319c6 in PreprocessJob::run() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#31 0x00007f8861f25afe in CPPParseJob::parseForeground() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#32 0x00007f8861f2fb49 in PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#33 0x00007f886175923c in rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#34 0x00007f886175d4ff in rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#35 0x00007f886175da8e in rpp::pp::operator()(rpp::Stream&, rpp::Stream&) () from /lib64/libkdev4cpprpp.so
#36 0x00007f886175de07 in rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) () from /lib64/libkdev4cpprpp.so
#37 0x00007f886175e1e5 in rpp::pp::processFile(QString const&, QByteArray const&) () from /lib64/libkdev4cpprpp.so
#38 0x00007f8861f319c6 in PreprocessJob::run() () from /usr/lib64/kde4/kdevcpplanguagesupport.so
#39 0x00007f8928caa712 in ThreadWeaver::JobRunHelper::runTheJob(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /lib64/libthreadweaver.so.4
#40 0x00007f8928caa91e in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /lib64/libthreadweaver.so.4
#41 0x00007f8928cac61b in ThreadWeaver::JobCollectionJobRunner::execute(ThreadWeaver::Thread*) () from /lib64/libthreadweaver.so.4
#42 0x00007f8928ca9feb in ThreadWeaver::Thread::run() () from /lib64/libthreadweaver.so.4
#43 0x00007f8928826aac in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#44 0x00007f8928597555 in start_thread () from /lib64/libpthread.so.0
#45 0x00007f8927a31b9d in clone () from /lib64/libc.so.6

Comment 13 Fedora Update System 2015-08-10 09:54:34 UTC
kdevelop-4.7.1-7.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Siddharth Sharma 2015-09-24 08:44:24 UTC
Created attachment 1076398 [details]
Do_not_use_function_returning_reference_to_temporary

Patch 1

Comment 15 Siddharth Sharma 2015-09-24 08:45:43 UTC
Created attachment 1076399 [details]
Remove_ConvenientIterator_ref_usage_from_oldcpp_codebase

Patch 2

Comment 17 Siddharth Sharma 2015-09-24 08:52:36 UTC
Please pull in these patches and fix it, even the update in master branch of fedora does not fix this issue.

Comment 18 Kevin Kofler 2015-09-24 09:19:59 UTC
To be clear, are you saying that these are the fixes for the crashes in kdevelop-4.7.1-7.fc22?

Comment 19 Siddharth Sharma 2015-09-24 12:53:55 UTC
(In reply to Kevin Kofler from comment #18)
> To be clear, are you saying that these are the fixes for the crashes in
> kdevelop-4.7.1-7.fc22?

yes

Comment 20 Dan Mossor [danofsatx] 2015-09-24 13:59:54 UTC
Created attachment 1076554 [details]
gdb kdevelop output

Complete log of 'gdb kdevelop' with kdevelop-4.7.1-7.fc22.x86_64

Comment 21 Kevin Kofler 2015-09-24 23:16:11 UTC
The regression (confirmed to also affect F23) is now tracked as bug #1266259.

Comment 22 Fedora Update System 2015-09-25 00:18:57 UTC
kdevelop-4.7.1-10.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-241fe028cb

Comment 23 Andrey Amado 2015-09-25 01:05:05 UTC
Hi, I tested the last patches and work, I can open the project and compile successful.

Thanks

Comment 24 Fedora Update System 2015-09-27 00:38:06 UTC
kdevelop-4.7.1-10.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kdevelop'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-241fe028cb

Comment 25 Fedora Update System 2015-10-04 22:51:32 UTC
kdevelop-4.7.1-10.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.