[LLVMbugs] [Bug 2138] New: llc: assertion fail while compiling wcstoll_l.c

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Mar 11 12:46:50 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2138

           Summary: llc: assertion fail while compiling wcstoll_l.c
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1521)
 --> (http://llvm.org/bugs/attachment.cgi?id=1521)
bugpoint reduced testcase

Sometimes when compiling wcstoll_l.c I get an internal compiler error, I
tracked it down to llc.
The error occurs approximately 1 out of 10 times when compiling the same file.
I run valgrind on it, but showed no warnings.

The llvm-gcc ICE:
$ /home/edwin/llvm/install/bin/llvm-gcc wcstoll_l.c -c -std=gnu99
-fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants
-fnested-functions -fstrict-aliasing -g -pipe -Wstrict-prototypes
-mpreferred-stack-boundary=2 -pg -I../include   -I../include
-I/home/edwin/glibc-2.7/build-tree/i386-libc/wcsmbs
-I/home/edwin/glibc-2.7/build-tree/i386-libc -I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i486
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I.. -I../libio -I.
-nostdinc -isystem
/home/edwin/llvm/install/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/include
-isystem
/home/edwin/llvm/install/bin/../lib/gcc/i686-pc-linux-gnu/4.2.1/include-fixed
-isystem /home/edwin/glibc-2.7/debian/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h  -DPROF      -D_IO_MTSAFE_IO 
cc1: VirtRegMap.h:190: int llvm::VirtRegMap::getStackSlot(unsigned int) const:
Assertion `TargetRegisterInfo::isVirtualRegister(virtReg)' failed.
wcstoll_l.c:30: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

LLC assertion failure:
$ llc bugpoint-reduced-simplified.bc -f
llc: /home/edwin/llvm/llvm-svn/trunk/include/llvm/ADT/IndexedMap.h:54: typename
std::vector<T, std::allocator<_CharT> >::const_reference llvm::IndexedMap<T,
ToIndexT>::operator[](typename ToIndexT::argument_type) const [with T = int,
ToIndexT = llvm::VirtReg2IndexFunctor]: Assertion `toIndex_(n) <
storage_.size() && "index out of bounds!"' failed.
llc[0x87eda4d]
/lib/i686/cmov/libc.so.6(abort+0x188)[0x4df0dee8]
/lib/i686/cmov/libc.so.6(__assert_fail+0xee)[0x4df0557e]
llc[0x8665b44]
[0x93b64d0]
Aborted

System is x86-32 Linux, running llvm SVN r48224.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list