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

            Bug ID: 26131
           Summary: clang-format needs more than 10GB virtual memory to
                    format 700 Byte file
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: sebastian.buchw...@kit.edu
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 15619
  --> https://llvm.org/bugs/attachment.cgi?id=15619&action=edit
File that triggers the issue

clang-format uses a lot of memory when formatting the attached C file:
ulimit -v 10485760
lang-format-3.7 clangformat.c
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
...[stacktrace]

clang-format-3.7 -version
Ubuntu clang-format version 3.7.0-2ubuntu1 (tags/RELEASE_370/final) (based on
LLVM 3.7.0)

-- 
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

Reply via email to