[LLVMbugs] [Bug 4181] New: Crash in libgomp: invalid MVT

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri May 8 06:35:59 PDT 2009


           Summary: Crash in libgomp: invalid MVT
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696

The following C code causes Clang to crash. I'm filing this bug here, because
the failed assertion is in libllvmcore:

main(int argc, char *argv[])
        __sync_val_compare_and_swap((void **)0, (void *)0, (void *)0);


Assertion failed: (0 && "Invalid MVT!"), function getMVTString, file
line 86.
Stack dump:
0.      Program arguments:
/usr/obj/home/ed/projects/freebsd-clang/tmp/usr/bin/../libexec/clang-cc -triple
x86_64-undermydesk-freebsd8.0 -emit-llvm -disable-free -main-file-name
llvm-crash.c --relocation-model static --disable-fp-elim --unwind-tables=1
--mcpu=x86-64 --fmath-errno=1 -fdiagnostics-show-option -o foo.ll -x c
1.      <eof> parser at end of file
2.      llvm-crash.c:2:1: LLVM IR generation of declaration 'main'
3.      llvm-crash.c:3:1: LLVM IR generation of compound statement ('{}')

Code is based on libgomp sources.

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