[llvm-bugs] [Bug 26131] New: clang-format needs more than 10GB virtual memory to format 700 Byte file
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 13 08:13:45 PST 2016
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: unassignedclangbugs at nondot.org
Reporter: Sebastian.Buchwald at kit.edu
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160113/831256eb/attachment.html>
More information about the llvm-bugs
mailing list