[LLVMbugs] [Bug 24275] New: crash in clang_getLocation / nullptr in translateSourceLocation/getSourceManager

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 27 09:01:28 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24275

            Bug ID: 24275
           Summary: crash in clang_getLocation / nullptr in
                    translateSourceLocation/getSourceManager
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mail at milianw.de
                CC: klimek at google.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In KDevelop code I just encountered this crash, which seems to be due to a
nullptr dereference in translateSourceLocation/getSourceManager.

[KCrash Handler]
#6  getSourceManager (this=0x0) at
/home/milian/projects/src/clang/include/clang/AST/ASTContext.h:494
#7  translateSourceLocation (Context=..., Loc=...) at
/home/milian/projects/src/clang/tools/libclang/CXSourceLocation.h:43
#8  clang_getLocation (TU=<optimized out>, file=0x7f92a4a2df60, line=1,
column=1) at
/home/milian/projects/src/clang/tools/libclang/CXSourceLocation.cpp:147
#9  0x00007f9372d9e0fc in (anonymous namespace)::isInsideComment
(unit=0x7f92ba0b5d20, file=0x7f92a4a2df60, position=...) at
/home/milian/projects/kf5/src/playground/devtools/plugins/kdev-clang/codecompletion/context.cpp:311
#10 0x00007f9372d9df59 in ClangCodeCompletionContext::isValidPosition
(this=0x7f936c001d10, unit=0x7f92ba0b5d20, file=0x7f92a4a2df60) at
/home/milian/projects/kf5/src/playground/devtools/plugins/kdev-clang/codecompletion/context.cpp:541
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150727/0f46f494/attachment.html>


More information about the llvm-bugs mailing list