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: unassignedclangb...@nondot.org
          Reporter: m...@milianw.de
                CC: kli...@google.com, llvmbugs@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.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to