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

Analysis taking around 6.5GB RAM for more than an hour and does not finish

Open llvmbot opened this issue 10 years ago • 3 comments

Bugzilla Link 26780
Version 3.6
OS Linux
Attachments htop screenshot showing RAM usage, Screenshot showing the file being analysed
Reporter LLVM Bugzilla Contributor
CC @devincoughlin

Extended Description

Ran clang static analyser on qemu git source code. While analysing "aarch64-softmmu/target-arm/helper.c" file the analyser was using around 6.5GB RAM (on a machine with 8GB RAM) and was running for more than an hour. As the analyser did not finish for long I had to kill it.

llvmbot avatar Mar 01 '16 08:03 llvmbot

I too think so based on the description in that bug.

llvmbot avatar Mar 02 '16 14:03 llvmbot

I suspect this is the same as https://llvm.org/bugs/show_bug.cgi?id=16833, which Alexei Sidorin fixed in r248318. (The fix should be present in clang-3.8+)

static inline void get_phys_addr_pmsav7_default(CPUARMState *env, ARMMMUIdx mmu_idx, int32_t address, int *prot) { ... case 0xF0000000 ... 0xFFFFFFFF: ... break; }

devincoughlin avatar Mar 01 '16 19:03 devincoughlin

assigned to @tkremenek

llvmbot avatar Mar 01 '16 08:03 llvmbot