llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

clang --analyze grows until killed by kernel OOM killer

Open llvmbot opened this issue 13 years ago • 4 comments

Bugzilla Link 16833
Resolution FIXED
Resolved on Sep 22, 2015 16:03
Version 3.3
OS Linux
Attachments Original (unreduced) input, causing memory abuse, Somewhat reduced input using delta, Backtraces for r187747 as found by PaX Team on llvmlinux ML
Reporter LLVM Bugzilla Contributor
CC @devincoughlin,@belkadan,@pageexec

Extended Description

For the attached inputs, running them with under "clang --analyze" causes the clang process to grow continuously until it is killed (tested for up to 30GB usage).

This was confirmed for clang-3.3 as delivered by Arch, Gentoo, and current git/svn.

llvmbot avatar Aug 08 '13 07:08 llvmbot

Alexei Sidorin fixed this in r248318.

Jordan Rose reviewed in http://reviews.llvm.org/D5102

devincoughlin avatar Sep 22 '15 23:09 devincoughlin

Cloned to rdar://problem/14685772

belkadan avatar Aug 08 '13 17:08 belkadan

Looks like we're being really inefficient about switch statements with large case ranges -- in this case, "case 32 ... 0x60000000 -1". Thanks for the reduction.

belkadan avatar Aug 08 '13 17:08 belkadan

assigned to @tkremenek

llvmbot avatar Aug 08 '13 07:08 llvmbot