https://llvm.org/bugs/show_bug.cgi?id=28679
Bug ID: 28679 Summary: clang-format seg faults on byte order marker / utf-16 Product: clang Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Formatter Assignee: unassignedclangb...@nondot.org Reporter: j.david.ber...@gmail.com CC: djas...@google.com, kli...@google.com, llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 16797 --> https://llvm.org/bugs/attachment.cgi?id=16797&action=edit File with BOM marker. Possible that the upload stripped it out though; first two bytes should be 0xff 0xfe. $ clang-format -style="google" -i break.h 0 libLLVM-3.8.so.1 0x00007f714174bd38 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56 1 libLLVM-3.8.so.1 0x00007f7141749fc6 llvm::sys::RunSignalHandlers() + 54 2 libLLVM-3.8.so.1 0x00007f714174a129 3 libc.so.6 0x00007f7140a9d4a0 4 clang-format 0x000000000040fe0f 5 clang-format 0x000000000040e2f4 6 clang-format 0x0000000000413a14 7 clang-format 0x0000000000414c76 8 clang-format 0x000000000045791a 9 clang-format 0x00000000004591f0 10 clang-format 0x000000000040bdba 11 clang-format 0x000000000040a1a8 12 libc.so.6 0x00007f7140a88830 __libc_start_main + 240 13 clang-format 0x000000000040a2b9 Segmentation fault $ clang-format --version clang-format version 3.8.0-2ubuntu4 (tags/RELEASE_380/final) -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs