https://bugs.kde.org/show_bug.cgi?id=425841
Bug ID: 425841 Summary: SIGPIPE, then a crash when the first event loop starts at least 60 seconds after KDevelop launch Product: kdevelop Version: git master Platform: Compiled Sources OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: general Assignee: kdevelop-bugs-n...@kde.org Reporter: igor...@gmail.com Target Milestone: --- Created attachment 131205 --> https://bugs.kde.org/attachment.cgi?id=131205&action=edit KDevelop Frame Stack at SIGPIPE SUMMARY I have encountered this SIGPIPE followed by a crash many times while I debugged KDevelop. I have to hastily *Continue application execution* when breakpoints are hit during startup in order to circumvent the crash. But sometimes the crash just happens every other time (unless the "Session Crashed" dialog starts an event loop early). One temporary way out of this regular crashing is to speed up KDevelop startup by manually removing all [Working File Sets] entries from the affected session's sessionrc file. STEPS TO REPRODUCE 1. Open KDevelop project in KDevelop and build it with Debug build type. 2. Place a breakpoint in some function called during startup, for example at the beginning of BreakpointModel::scheduleSave(). 3. Debug Launch KDevelop. 4. When the breakpoint is hit, wait for some time before continuing execution (60 seconds is more than enough). 5. Disable the breakpoint or continue execution without waiting at subsequent breakpoint hits. OBSERVED RESULT The "*** Program received signal SIGPIPE (Broken pipe) ***" line appears in Debug tool view. The contents of the Frame Stack at this point is attached to the bug. When I press the *Continue application execution* button, KDevelop crashes with the following output in Debug tool view right after the SIGPIPE line quoted above (only the PID number varies, the rest of the output is constant): ICE default IO error handler doing an exit(), pid = 610216, errno = 32 register count: 0, destroy count: 0 *** Exited with return code: 01 *** EXPECTED RESULT The debugged KDevelop instance doesn't receive SIGPIPE signal and doesn't crash. SOFTWARE/OS VERSIONS Manjaro GNU/Linux, Xfce KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0 ADDITIONAL INFORMATION It appears that this is a general X11 (possibly Qt-specific) issue. A minimal reproduciple example and a fix are available at https://stackoverflow.com/questions/56686603/how-to-avoid-sigpipe-due-to-a-timeout-when-debugging-an-x11-program. I am going to create a Merge Request with this fix soon. -- You are receiving this mail because: You are watching all bug changes.