clang --analyze grows until killed by kernel OOM killer
| 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.
Alexei Sidorin fixed this in r248318.
Jordan Rose reviewed in http://reviews.llvm.org/D5102
Cloned to rdar://problem/14685772
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.
assigned to @tkremenek