[llvm-bugs] [Bug 49451] New: fatal error: error in backend: SmallVector unable to grow. Requested capacity (4294967296) is larger than maximum value for size type (4294967295)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 5 06:10:24 PST 2021


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

            Bug ID: 49451
           Summary: fatal error: error in backend: SmallVector unable to
                    grow. Requested capacity (4294967296) is larger than
                    maximum value for size type (4294967295)
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: haoxintu at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24592
  --> https://bugs.llvm.org/attachment.cgi?id=24592&action=edit
source code to reproduce the "fatal error: error in backend:" issue

Hi all.

Clang takes too much time to compile the attached source code. I am sorry I
cannot provide a reduced test program. Actually, I have tried to reduce this
test case but failed (Creduce crashes and Cvise eats all my machine's memory on
reducing this case, and I am on the way to report these issues to Creduce and
Cvise community).

The following are some information to make this issue reproduced:

$time clang -w -Os small.c
fatal error: error in backend: SmallVector unable to grow. Requested capacity
(4294967296) is larger than maximum value for size type (4294967295)
clang-13: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 13.0.0 (https://github.com/llvm/llvm-project
a968e7b82eac364d411c81aae58722a0b3a4b29c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/haoxin/haoxin-data/dut-research/compilers/llvm-project/build-20210304/bin
clang-13: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/small-12817e.c
clang-13: note: diagnostic msg: /tmp/small-12817e.sh
clang-13: note: diagnostic msg: 

********************

real    201m37.935s
user    201m24.821s
sys     0m11.131s

$time clang -w -O3 small.c

real    0m1.407s
user    0m1.371s
sys     0m0.036s


$clang -v
clang version 13.0.0 (https://github.com/llvm/llvm-project
a968e7b82eac364d411c81aae58722a0b3a4b29c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/haoxin/haoxin-data/dut-research/compilers/llvm-project/build-20210304/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Candidate multilib: .;@m64
Selected multilib: .;@m64


Thanks,
Haoxin

-- 
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/20210305/e5c850f4/attachment-0001.html>


More information about the llvm-bugs mailing list