[llvm-bugs] [Bug 28679] New: clang-format seg faults on byte order marker / utf-16

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 23 08:26:47 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: j.david.berger at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160723/c3f49a89/attachment.html>


More information about the llvm-bugs mailing list