Bug 427227

Summary: kdevelop parser crashes with SEGFAULT
Product: [Applications] kdevelop Reporter: Mate Soos <soos.mate>
Component: All build toolsAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: igorkuo, mail
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: GDB backtrace
attachment-3469-0.html

Description Mate Soos 2020-10-01 23:34:05 UTC
SUMMARY

When I start kdevelop, I geta segfaults in about 1-2 minutes. UI comes up and is responsive, but it's parsing in the background. I normally use Arch and I *just* updated it but it changed kdevelop and now it fails to parse my (large and complicated) project with a segfault. It's reproducible, I have tried with the Appimage, the kde-src that I *just* built and also the Arch precompiled binary. The below is about kde-src, as I guess you prefer that. All other kdevelops were removed to make sure things don't collide. It's a _completely_ fresh build, I didn't even have kde-src before. I have deleted the full cache for this: "rm -rf ~/.cache/kdev*" (i.e. both kdevelop and kdevduchain). Note that kdevelop opens up my default project (cryptominisat, which I am the author of) and it's a pretty complicated piece to parse. Most notably because the source directory contains a ton of stuff like old python files, text files, and whatnot. This is completely reproducible, goes to 88% in parsing and then crashes:


soos@vvv-dejavu:kdesrc-build$ kdevelop
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kf.kio.core: "Could not enter folder tags:/."
Cyclic dependency detected between "file:///home/soos/kde/usr/lib/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml" and "file:///home/soos/kde/usr/lib/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml"
qrc:/qml/Develop.qml:139:21: QML Heading: Binding loop detected for property "font.pointSize"
qrc:/qml/area_code.qml:87:9: QML Heading: Binding loop detected for property "font.pointSize"
qrc:/qml/area_code.qml:63:9: QML Heading: Binding loop detected for property "font.pointSize"
kdevelop.plugins.welcomepage: "Last fetch of news feed was on Thu Oct 1 21:29:28 2020 GMT+0200"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 212)
---- Parsing FAILED ----
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
IndentationError: unexpected indent (<kdev-editor-contents>, line 49)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("mapass#var: ", maxvar)? (<kdev-editor-contents>, line 35)
---- Parsing FAILED ----
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
OverflowError: Python int too large to convert to C long
OverflowError: Python int too large to convert to C long
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("0"pass#)? (<kdev-editor-contents>, line 37)
---- Parsing FAILED ----
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("ERROR: RHSpass#is neither 'true' nor 'false'")? (<kdev-editor-contents>, line 74)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 23)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 51)
---- Parsing FAILED ----
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/x86_64-pc-linux-gnu -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu99 -fdeprecated-macro -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o - -x c++ -\nerror: invalid argument '-std=gnu99' not allowed with 'C++'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc++", "-std=gnu99", "-dM", "-E", "-") "error: invalid argument '-std=gnu99' not allowed with 'C++'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/x86_64-pc-linux-gnu -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu99 -fdeprecated-macro -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o - -x c++ -\nerror: invalid argument '-std=gnu99' not allowed with 'C++'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc++", "-std=gnu99", "-dM", "-E", "-") "error: invalid argument '-std=gnu99' not allowed with 'C++'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/x86_64-pc-linux-gnu -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu99 -fdeprecated-macro -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o - -x c++ -\nerror: invalid argument '-std=gnu99' not allowed with 'C++'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc++", "-std=gnu99", "-dM", "-E", "-") "error: invalid argument '-std=gnu99' not allowed with 'C++'\n"
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 82)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 456)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
IndentationError: unindent does not match any outer indentation level (<kdev-editor-contents>, line 130)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("rows",r,"columns",N*2 # print row interchangeability sym)? (<kdev-editor-contents>, line 22)
---- Parsing FAILED ----
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
IndentationError: unexpected indent (<kdev-editor-contents>, line 94)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
IndentationError: unindent does not match any outer indentation level (<kdev-editor-contents>, line 306)
---- Parsing FAILED ----
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "clang" "clang version 10.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.4.1\nFound candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/7.4.1\nSelected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0\nCandidate multilib: .;@m64\nCandidate multilib: 32;@m32\nSelected multilib: .;@m64\n (in-process)\n \"/usr/bin/clang-10\" -cc1 -triple x86_64-pc-linux-gnu -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/10.0.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/clang/10.0.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu++11 -fdebug-compilation-dir /home/soos/development/sat_solvers/cryptominisat/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -faddrsig -o - -x c -\nerror: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "clang" ("-xc", "-std=gnu++11", "-dM", "-E", "-") "error: invalid argument '-std=gnu++11' not allowed with 'C'\n"
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 50)
---- Parsing FAILED ----
kdevelop.plugins.python.parser: Discarding parts of the code to be parsed because of previous errors
SyntaxError: invalid syntax (<kdev-editor-contents>, line 38)
---- Parsing FAILED ----
OverflowError: Python int too large to convert to C long
Segmentation fault (core dumped)

Of course the core is not dumped because ulimit core is set to zero:

soos@vvv-dejavu:kdesrc-build$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 127883
max locked memory       (kbytes, -l) 1024
max memory size         (kbytes, -m) unlimited
open files                      (-n) 3000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 127883
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

When I tried to debug with GDB, I get a crash almost immediately and so it seems like it's a different issue?:

soos@vvv-dejavu:kdesrc-build$ gdb kdevelop
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kdevelop...
(gdb) r
Starting program: /home/soos/kde/usr/bin/kdevelop 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe2e3c640 (LWP 204800)]
[New Thread 0x7fffe0802640 (LWP 204801)]
[New Thread 0x7fffd6be4640 (LWP 204802)]
[New Thread 0x7fffd63e3640 (LWP 204803)]
[New Thread 0x7fffd5be2640 (LWP 204804)]
[New Thread 0x7fffd5262640 (LWP 204805)]
kdevplatform.serialization: version mismatch or no version hint; expected version: 84289537
kdevplatform.serialization: "The data-repository at /home/soos/.cache/kdevduchain/kdevelop-{7b57e0eb-02b0-4c75-9b36-65f91537eb23} has to be cleared."
[New Thread 0x7fffbe909640 (LWP 204806)]
[New Thread 0x7fffbe108640 (LWP 204807)]
[New Thread 0x7fffbd907640 (LWP 204808)]
[New Thread 0x7fffbd106640 (LWP 204809)]
[New Thread 0x7fffaffff640 (LWP 204810)]
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
[New Thread 0x7fffaf7fe640 (LWP 204811)]
[Detaching after fork from child process 204813]
[New Thread 0x7fffae3cc640 (LWP 204814)]
[New Thread 0x7fffad8f2640 (LWP 204816)]
[Detaching after fork from child process 204817]
[New Thread 0x7fffe33565c0 (LWP 204819)]
[New Thread 0x7fffe33565c0 (LWP 204820)]
process 204784 is executing new program: /usr/bin/cmake
[New LWP 204821]
[New LWP 204820]
process 204784 is executing new program: /usr/bin/cmake
[New LWP 204822]
[New LWP 204821]
process 204784 is executing new program: /usr/bin/cmake
[New LWP 204823]
[New LWP 204819]
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.
[New LWP 204822]
process 204784 is executing new program: /usr/bin/cmake
[New LWP 204819]
[New LWP 204823]
[New LWP 204821]
[New LWP 204784]
[New LWP 204820]

Thread 25 received signal SIGSEGV, Segmentation fault.
[Switching to LWP 204819]
0x0000555555560af2 in ?? ()
(gdb) info threads
  Id   Target Id             Frame 
  24   LWP 204822            0x00007ffff7fee018 in __open_nocancel () from /lib64/ld-linux-x86-64.so.2
* 25   LWP 204819            0x0000555555560af2 in ?? ()
  26   LWP 204823            0x00007ffff7fd2090 in _start () from /lib64/ld-linux-x86-64.so.2
  27   LWP 204821            0x00007ffff7fd575b in dl_main () from /lib64/ld-linux-x86-64.so.2
  28   LWP 204784 "kdevelop" 0x00007ffff7fe58fd in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
  29   LWP 204820            0x00007ffff7fd575b in dl_main () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x0000555555560af2 in ?? ()
#1  0x0000000000000000 in ?? ()
(gdb) 


But it looks pretty meaningless, because it doesn't even start the UI, doesn't print all the stuff, feels like it's bugging out on something else when it's running under the debugger? So weird. Arch is supposed to have most of the dev stuff so the "??" are also strange.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 

soos@vvv-dejavu:kdevelop$ pwd
/home/soos/kde/src/kdevelop
soos@vvv-dejavu:kdevelop$ git rev-parse HEAD
c01e46e4325420a333d1a997bcc3247cfb35098d
soos@vvv-dejavu:kdevelop$ uname -a
Linux vvv-dejavu 5.8.12-arch1-1 #1 SMP PREEMPT Sat, 26 Sep 2020 21:42:58 +0000 x86_64 GNU/Linux

I literally just updated my Arch (in a way I wish I hadn't -- this was not an issue with kdevelop from a few months ago)


(available in About System)
KDE Plasma Version: latest, just built it
KDE Frameworks Version: latest, just built it
Qt Version: This is Arch QT but the crash is almost certainly from the parser

Let me know how I can help. I'd love to contribute at least a bit :)

Cheers,

Mate
Comment 1 Francis Herne 2020-10-01 23:53:53 UTC
Thank you for the report.

This is almost certainly the linked bug -- basically, I broke kdev-python in 5.6.0 for all CPython versions < 3.9... Sorry about that.

We hope to release 5.6.1 soon. In the meantime, please either use a previous release (e.g. the 5.5.2 AppImage [1]) or compile with this patch applied [2].

[1] https://download.kde.org/stable/kdevelop/5.5.2/bin/linux/KDevelop-5.5.2-x86_64.AppImage

[2] https://invent.kde.org/kdevelop/kdev-python/-/commit/172dc5138acf94d54215d630c2173d7f24ec97df.diff

You're correct that the gdb crash is completely unrelated.

I see the same thing (also on Arch), have tried debugging it in various ways and asked a number of people. It isn't due to a recent change in KDevelop, the same crash happens with compiled older versions. You can work around it by starting KDevelop normally and then using gdb --pid.

If you have the slightest idea why *that* happens, it would be very helpful!

*** This bug has been marked as a duplicate of bug 426292 ***
Comment 2 Francis Herne 2020-10-01 23:56:34 UTC
Sorry, I forgot to include "uninstall `kdevelop-python`" or "disable the Python plugin in Configure KDevelop -> Plugins" as other workarounds. Obviously in that case you lose the Python support.
Comment 3 Mate Soos 2020-10-02 00:08:12 UTC
Created attachment 132061 [details]
GDB backtrace

Ah, I managed to fix the core issue, so now I am getting a core and can check it in GDB. Yay! I have to say, fighting with systemd was not fun. Anyway I have a backtrace. Sorry, no idea what generated the signal, so I dumped all threads' backtraces. Sorry, really late here now, so I won't add more. Dump is 245MB and probably contains pesonal information, so I'm not attaching it here. If you really need it, please email me at my login here (soos.mate@gmail.com) and I'll get back to you.
Comment 4 Francis Herne 2020-10-02 00:12:43 UTC
Backtrace confirms what I said above.
Comment 5 Mate Soos 2020-10-02 00:15:47 UTC
Thanks for getting back to me! I worked a lot to get the core to be dumped (oh, how I kinda hate/love systemd...), glad that it confirmed your suspicion. I also have now disabled the Python parser and indeed, it doesn't crash, works like charm :)

Thanks so much, KDevelop is really great! BTW, I actually contributed with $$$ over the years, it really saves me a lot of time writing code. Looking forward to the new release! 

Cheers,

Mate

PS: Haha, 2:14AM now.. gotta work tomorrow :S
Comment 6 Igor Kushnir 2020-10-02 13:23:10 UTC
I logged *that* GDB crash as Bug 427246. Please comment under that bug if you have more information. Hopefully we can figure out why it happens...
Comment 7 Mate Soos 2020-10-02 13:57:56 UTC
Created attachment 132069 [details]
attachment-3469-0.html

Hey,

Francis Herne has already figured it out thankfully and he has an upcoming
fix in the next version. In the meanwhile, I disabled Python parsing and
now it doesn't crash :) So this can be closed now. Thanks to all for the
quick responses,

Mate

On Fri, Oct 2, 2020, 15:23 Igor Kushnir <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=427227
>
> Igor Kushnir <igorkuo@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |igorkuo@gmail.com
>
> --- Comment #6 from Igor Kushnir <igorkuo@gmail.com> ---
> I logged *that* GDB crash as Bug 427246. Please comment under that bug if
> you
> have more information. Hopefully we can figure out why it happens...
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 8 Igor Kushnir 2020-10-02 20:25:30 UTC
Mate, I commented about another non-Python bug - the GDB crash, which you and Francis have also discussed here.
I've found the relevant Qt bug and the fix for the GDB crash. Described them in a comment to Bug 427246.
Comment 9 Mate Soos 2020-10-02 20:45:04 UTC
Aaaaah! Niiiice! Sorry, I was somehow convinced it must be my wrong setup somehow that made the UI crash under GDB. That crash was making it *really* hard for me to submit a backtrace, to be honest, so I'd be really happy if it was fixed! Thanks for picking that up, that's great news!

I added myself to the CC list of bug https://bugs.kde.org/show_bug.cgi?id=427246 so I will be notified. Thanks again! I am happy to help with traces, if needed.

Cheers,

Mate
Comment 10 Igor Kushnir 2020-10-02 20:53:05 UTC
(In reply to Mate Soos from comment #9)
> Aaaaah! Niiiice! Sorry, I was somehow convinced it must be my wrong setup
> somehow that made the UI crash under GDB. That crash was making it *really*
> hard for me to submit a backtrace, to be honest, so I'd be really happy if
> it was fixed! Thanks for picking that up, that's great news!
> 
> I added myself to the CC list of bug
> https://bugs.kde.org/show_bug.cgi?id=427246 so I will be notified. Thanks
> again! I am happy to help with traces, if needed.
> 
> Cheers,
> 
> Mate
The GDB crash is already fixed in Qt, but not yet released. I've found it and added a comment with the fix description under Bug 427246 before I wrote my second comment here. So you won't be notified about that comment since you just subscribed to the issue :)