https://llvm.org/bugs/show_bug.cgi?id=28381
Bug ID: 28381
Summary: Windows: Crash with absolute path with forward slashes
(at reparse, with
CXTranslationUnit_PrecompiledPreamble)
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 16670
--> https://llvm.org/bugs/attachment.cgi?id=16670&action=edit
libclang calls to reproduce, test sources to trigger the bug, stackstrace
See attachment crashForwardSlashes.zip
- libclangclient.cpp: Compile this to re-produce.
- testsources: main.cpp includes empty.h
- stacktrace.txt at crash/assert
Consider the invocations:
1) libclangclient.exe D:\absolute\path\to\main.cpp
==> fine
2) libclangclient.exe D:/absolute/path/to/main.cpp
==> crash
It will crash obviously with a message box for a debug build of llvm (assert).
For a release mode build it does not crash for the given example, but in a
real world application making more libclang calls it will crash at some later
point in time.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs