Summary: | crash while typing c++ code | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | tim blechmann <tim> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alecn2002, kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.2.0 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
C++ files triggering kdevelop project crash |
Description
tim blechmann
2011-05-20 11:07:01 UTC
hm anyone an idea how this could happen? looking at the source this would mean a nullptr returned from applySpecialization ? which should not happen :-S @tim: is this reproducible? waiting for info haven't been able to reproduce it :/ please reopen once you can trigger it again thanks for resolving the bug Created attachment 61471 [details]
New crash information added by DrKonqi
kdevelop (4.2.2) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2
When I was coding, KDevelop crashed, but I didn't look at the backtrace. Then whenever I start KDevelop again, it offers to recover one of my files that I was editing before. I decline the recovery because there is not really something to recover.
Whenever I start with adding a specific line of code to this file (entering 'typedef ' on a new line), KDevelop crashs after the space after typedef. I have been able to reproduce this crash three times using the same steps. After the third crash I have not tried again.
If there is something I can help with to analyze this bug, let me know.
-- Backtrace (Reduced):
#6 KDevelop::Declaration::abstractType (this=0x0) at ../../language/duchain/declaration.cpp:311
#7 0x00007f2a3453185a in Cpp::ExpressionVisitor::visitPrimaryExpression(PrimaryExpressionAST*) () from /usr/lib/libkdev4cppduchain.so
#8 0x00007f2a34530bba in Cpp::ExpressionVisitor::visitPostfixExpression(PostfixExpressionAST*) () from /usr/lib/libkdev4cppduchain.so
#9 0x00007f2a34530d1e in Cpp::ExpressionVisitor::visitPrimaryExpression(PrimaryExpressionAST*) () from /usr/lib/libkdev4cppduchain.so
#10 0x00007f2a3453258b in Cpp::ExpressionVisitor::visitBinaryExpression(BinaryExpressionAST*) () from /usr/lib/libkdev4cppduchain.so
Git commit 089782fa06d2a685c2ff26b8907b786a207d1f9f by Milian Wolff. Committed on 04/07/2011 at 17:36. Pushed by mwolff into branch 'master'. use context that is checked in the conditional instead of member var this hopefully fixes a rare crash also cleanup duplicate checks of owner CCBUG: 273707 M +3 -3 languages/cpp/cppduchain/expressionvisitor.cpp http://commits.kde.org/kdevelop/089782fa06d2a685c2ff26b8907b786a207d1f9f please send us the file that triggers this crash and/or create a new minimal testcase along with detailed steps on what is required to trigger the crash. Created attachment 61616 [details]
C++ files triggering kdevelop project crash
The following triggers a kdevelop crash for me:
1. start a new session
2. open permlib/include/permlib/bsgs.h from the extracted tar.gz
3. go to line 104 (which is a blank line)
4. type: 'typedef ' as if adding a new typedef
After the space after typedef, kdevelop crashes for me reproducibly.
works for me now with the latest patch. or is it still not working for you? I've just compiled kdevelop from git, it does not crash any more on this bug. Thanks a lot! *** Bug 282481 has been marked as a duplicate of this bug. *** |