[LLVMbugs] [Bug 7465] New: Reproducible crash on some (valid, 1-line) inline asm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 23 12:16:00 PDT 2010


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

           Summary: Reproducible crash on some (valid, 1-line) inline asm
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


$ cat asmtest.c
void f() {
  __asm__(
        "lcalll $0x1, $0x2\n"
  );
}
$ gcc -c asmtest.c  # works
$ clang -c asmtest.c

Assertion failed: (0 && "Unknown immediate size"), function getSizeOfImm, file
X86InstrInfo.h, line 451.
0  clang             0x01531428 main + 22181768
1  clang             0x01532186 main + 22185190
2  libSystem.B.dylib 0x905132bb _sigtramp + 43
3  libSystem.B.dylib 0xffffffff _sigtramp + 1873726831
4  libSystem.B.dylib 0x9058723a raise + 26
5  libSystem.B.dylib 0x90593679 abort + 73
6  libSystem.B.dylib 0x905883db __assert_rtn + 101
7  clang             0x00cb08e5 main + 13265989
8  clang             0x00cb2bd6 main + 13274934
9  clang             0x01389bc3 main + 20447011
10 clang             0x0138a05d main + 20448189
11 clang             0x00f778cb main + 16178219
12 clang             0x00f7951f main + 16185471
13 clang             0x00f3e04a main + 15942570
14 clang             0x00f3e43b main + 15943579
15 clang             0x00f39a03 main + 15924579
16 clang             0x00bee125 main + 12469381
17 clang             0x00ff3033 main + 16683923
18 clang             0x0148a96b main + 21499083
19 clang             0x0148ac7a main + 21499866
20 clang             0x0148af62 main + 21500610
21 clang             0x00137949 main + 1236137
22 clang             0x00137d40 main + 1237152
23 clang             0x002842e9 main + 2598473
24 clang             0x002c9076 main + 2880470
25 clang             0x000548b4 main + 306196
26 clang             0x00282bd7 main + 2592567
27 clang             0x0002bdee main + 139598
28 clang             0x00003412 _mh_execute_header + 9234
29 clang             0x0000a95e main + 3262
30 clang             0x00001b36 _mh_execute_header + 2870
Stack dump:
0.    Program arguments: /Volumes/MacintoshHD2/src/llvm/Release/bin/clang -cc1
-triple i386-apple-darwin9.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name asmtest.c -pic-level 1 -mdisable-fp-elim -masm-verbose
-target-cpu yonah -resource-dir
/Volumes/MacintoshHD2/src/llvm/Release/lib/clang/2.0 -ferror-limit 19
-fmessage-length 281 -fdiagnostics-show-option -fcolor-diagnostics -o asmtest.o
-x c asmtest.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'X86 AT&T-Style Assembly Printer' on function '@f'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

-- 
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