From kde-bugs-dist Sat Apr 30 20:25:22 2016 From: Francis Herne via KDE Bugzilla Date: Sat, 30 Apr 2016 20:25:22 +0000 To: kde-bugs-dist Subject: [kdev-python] [Bug 362515] New: Segfault in code completion Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=146204793021085 https://bugs.kde.org/show_bug.cgi?id=362515 Bug ID: 362515 Summary: Segfault in code completion Product: kdev-python Version: unspecified Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: Code completion Assignee: mail@svenbrauch.de Reporter: francis.herne@yahoo.co.uk Built from 5.0 branch as of 10th March, on Arch Linux. KDevelop and KDevPlatform ditto. Code being edited: === ... class EntityNetwork(dict): @classmethod def from_file(cls, filename): file = open(fi) <<<<<< partway through typing 'filename'. Backtrace: ==== Thread 9 "KDevelop::Compl" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffa3477700 (LWP 3100)] 0x00007fffa3735f16 in Python::PythonCodeCompletionContext::PythonCodeCompletionContext (this=0x7fff9c00b980, context=..., text=..., followingText=..., position=..., depth=) at /tmp/yaourt-tmp-flh/aur-kdevelop-python3-git/src/kdev-python/codecompletion/context.cpp:1033 1033 /tmp/yaourt-tmp-flh/aur-kdevelop-python3-git/src/kdev-python/codecompletion/context.cpp: No such file or directory. (gdb) bt full #0 0x00007fffa3735f16 in Python::PythonCodeCompletionContext::PythonCodeCompletionContext (this=0x7fff9c00b980, context=..., text=..., followingText=..., position=..., depth=) at /tmp/yaourt-tmp-flh/aur-kdevelop-python3-git/src/kdev-python/codecompletion/context.cpp:1033 location = parser = {m_code = {static null = {}, d = 0xb8}, m_cursorPositionInString = 224} firstStatus = currentlyCheckedLine = from = importIndex = beforeAndAfterCursor = {first = {static null = {}, d = 0x1c}, second = {static null = {}, d = 0x60000000c}} indents = {m_indents = {> = {}, {p = {static shared_null = {ref = {atomic = {_q_value = {> = {static _S_alignment = 4, _M_i = -1}, }}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fffa3476500}, d = 0x7fffa3476500}}} currentlyChecked = defKeywords = {> = {}, {p = {static shared_null = {ref = {atomic = {_q_value = {> = {static _S_alignment = 4, _M_i = -1}, }}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fffa34765d0}, d = 0x7fffa34765d0}} import = fromIndex = textWithoutStrings = {static null = {}, d = 0x18} allExpressions = {> = {> = {}, {p = {static shared_null = {ref = {atomic = {_q_value = {> = { static _S_alignment = 4, _M_i = -1}, }}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x3}, d = 0x3}}, m_internalPtr = 12} __PRETTY_FUNCTION__ = "Python::PythonCodeCompletionContext::PythonCodeCompletionContext(KDevelop::DUContextPointer, const QString&, const QString&, const KDevelop::CursorInRevision&, int, const Python::PythonCodeCompletionW"... #1 0x00007fffa373bc07 in Python::PythonCodeCompletionWorker::createCompletionContext (this=0x45944c0, context=..., contextText=..., followingText=..., position=...) at /tmp/yaourt-tmp-flh/aur-kdevelop-python3-git/src/kdev-python/codecompletion/worker.cpp:47 completionContext = #2 0x00007ffff24090d0 in KDevelop::CodeCompletionWorker::computeCompletions (this=0x45944c0, context=..., position=..., followingText=..., contextRange=..., contextText=...) at /home/flh/projects/src/kdevplatform/language/codecompletion/codecompletionworker.cpp:153 __PRETTY_FUNCTION__ = "virtual void KDevelop::CodeCompletionWorker::computeCompletions(KDevelop::DUContextPointer, const KTextEditor::Cursor&, QString, const KTextEditor::Range&, const QString&)" completionContext = {d = 0x4ca22f0} #3 0x00007ffff2408772 in KDevelop::CodeCompletionWorker::computeCompletions (this=0x45944c0, context=..., position=..., view=0x4abbe10) at /home/flh/projects/src/kdevplatform/language/codecompletion/codecompletionworker.cpp:129 foreground = {m_locked = false} doc = 0x4ca22f0 __PRETTY_FUNCTION__ = "void KDevelop::CodeCompletionWorker::computeCompletions(KDevelop::DUContextPointer, const KTextEditor::Cursor&, KTextEditor::View*)" range = {m_start = {m_line = 67, m_column = 0}, m_end = {m_line = 67, m_column = 20}} text = {static null = {}, d = 0x7fff9c00c5a0} cursorPosition = {m_line = 67, m_column = 21} followingText = {static null = {}, d = 0x7fff9c008200} #4 0x00007ffff240f232 in QtPrivate::FunctorCall, QtPrivate::List, KTextEditor::Cursor const&, KTextEditor::View*>, void, void (KDevelop::CodeCompletionWorker::*)(KDevelop::DUChainPointer, KTextEditor::Cursor const&, KTextEditor::View*)>::call (arg=, o=, f=) at /usr/include/qt/QtCore/qobjectdefs_impl.h:501 No locals. #5 QtPrivate::FunctionPointer, KTextEditor::Cursor const&, KTextEditor::View*)>::call, KTextEditor::Cursor const&, KTextEditor::View*>, void> (arg=, o=, f=) at /usr/include/qt/QtCore/qobjectdefs_impl.h:520 No locals. #6 QtPrivate::QSlotObject, KTextEditor::Cursor const&, KTextEditor::View*), QtPrivate::List, KTextEditor::Cursor const&, KTextEditor::View*>, void>::impl (which=, this_=, r=, a=, ret=) at /usr/include/qt/QtCore/qobject_impl.h:143 Reproducible: Didn't try Steps to Reproduce: Not really sure. Happened (probably) twice, not doing obviously the same thing. Actual Results: Crash! Expected Results: Not a crash! -- You are receiving this mail because: You are watching all bug changes.