Summary: | KDevelop crashes when invoking Execute Launch after adding dependencies in Launch Configuration [KDevelop::ExecuteCompositeJob::doKill] | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Piotr Mierzwinski <piotr.mierzwinski> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aleixpol, dylangubbels1, mail, piotr.mierzwinski |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
URL: | https://phabricator.kde.org/D10874 | ||
Latest Commit: | 8430d3058f92725b4e6b7d85d8d68550ce12ee79 | Version Fixed In: | 5.2.2 |
Attachments: | KDevelop dbg session |
Description
Piotr Mierzwinski
2016-09-07 19:54:15 UTC
The trace you post here crashes from MainWindow::~MainWindow downwards, i.e. it is a crash on shutdown. Do you have a trace for the crash you described, when you click Run -> Execute launch? Sorry. This was what produced by DrKonqi when I wanted close working in background KDevelop process. Before KDevelop only closed itself. I wasn't be able to run it again, because in background I had working KDevelop. I killed this process and this triggered DrKonqi. Today I tried to reproduce crash running KDevelop in dbg, but again KDevelop just closed its main window. I had to send couple times signal "CONT" (from System activity tool - invoked by Ctrl+Esc), to get prompt of dbg. After that I run command "cont" and again no prompt and nothing happened. I repeat this couple of time. Finally I run "kill -CONT kdevelop_pid" from konsole and after "cont" command in dbg returned: "Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault.". In backtrace I noticed that this is again crash in MainWindow: #8 0x00007ffff7a8701b in KDevelop::MainWindow::~MainWindow() (this=this@entry=0x8e4f50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/piotra/build-repos/kdevplatform-git/src/kdevplatform/shell/mainwindow.cpp:158 I attach dbg output. In dbg output I got also message like this: Launch Configuration: "qtcmd2" "No environment group specified, looks like a broken configuration, please check run configuration 'qtcmd2'. Using default environment group." Created attachment 101575 [details]
KDevelop dbg session
Sorry. Errata about sending signal. As you can check in attached dbg output I send also SIGTERM. Sending CONT and command "cont" in dbg leads to never ending loop. I repeated it couple times after that. Sorry, I'm still confused about this. Your traces all show a crash on shutdown, which is not what you describe. Maybe let's clear that up again first -- you do see a crash as an effect of triggering an action, right? Not just on shutdown? OK. Sorry for not clear report. I didn't get a crash in result my activities only main window of KDevelop disappears. Crash happens later. Main windows of KDevelop disappears, but I can see working process in list of processes. I'm not able to restore it (main window). I kill it and I get crash, what is result of killing I suppose. I can reproduce it every time. My steps are following: 1. To dependencies I add some subdirectory (main->sub1->sub2->sub3) of my project ("Launch configuration", Action: Build) 2. I modify any file from this directory 3. I invoke "Run -> Execute Launch" (with selected top directory of project). In this moment main window of KDevelop may disappears, if not I can see message like below. This is output from Build view: /run/media/piotra/FreeAgent/piotr/Projekty/Qt/qtcmd_work/qtcmd_git/qtcmd2/build> make -j8 zipsubsystem.o *** Killed process *** Seems like KDevelop think that something is running, because both tool buttons related with stopping running jobs are enabled. In first "Menu allowing to stop individual jobs" I can see: "my_project_name, changed_file_name: build" 4. Again I invoke "Run -> Execute Launch" In this moment main window of KDevelop disappears. When I select as target binary file (I mean entry with the same icon like already put by default executable file) also main window of KDevelop disappears. When I run it from konsole I can see such output in last lines: Launch Configuration: "qtcmd2" "No environment group specified, looks like a broken configuration, please check run configuration 'qtcmd2'. Using default environment group." QWidget::insertAction: Attempt to insert null action QWidget::insertAction: Attempt to insert null action The X11 connection broke: No error (code 0) XIO: fatal IO error 13 (Brak dostępu) on X server ":0" after 6882 requests (6882 known processed) with 0 events remaining. Should be fixed in the stable branch, please test. *** Bug 399078 has been marked as a duplicate of this bug. *** |