[LLVMbugs] [Bug 2636] New: Assertion failed: (false && " Serializization for type not supported."), function EmitImpl, file TypeSerialization.cpp, line 56.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Aug 5 06:07:17 PDT 2008


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

           Summary: Assertion failed: (false && "Serializization for type
                    not supported."), function EmitImpl, file
                    TypeSerialization.cpp, line 56.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


clang crashes when serializing certain input files. Here's a delta-reduced
testcase:

$ cat bla.c
  int *(funcp)(int, int);
  __typeof(funcp) fp2;
$ clang -serialize bla.c
Assertion failed: (false && "Serializization for type not supported."),
function EmitImpl, file TypeSerialization.cpp, line 56.
0   clang                               0x002f182b
_ZN4llvm3sys7Program17FindProgramByNameERKSs + 611
1   clang                               0x002f1af5
_ZN4llvm3sys28PrintStackTraceOnErrorSignalEv + 593
2   libSystem.B.dylib                   0x966ed09b _sigtramp + 43
3   ???                                 0xffffffff 0x0 + 4294967295
4   libSystem.B.dylib                   0x96765ec2 raise + 26
5   libSystem.B.dylib                   0x9677547f abort + 73
6   libSystem.B.dylib                   0x96767063 __assert_rtn + 101
7   clang                               0x001a8f29
_ZNK5clang4Type8EmitImplERN4llvm10SerializerE + 55
8   clang                               0x001a94a4
_ZNK5clang4Type4EmitERN4llvm10SerializerE + 108
9   clang                               0x0014f090
_ZNK5clang10ASTContext4EmitERN4llvm10SerializerE + 218
10  clang                               0x001a10fc
_ZN4llvm14SerializeTraitIN5clang10ASTContextEE4EmitERNS_10SerializerERKS2_ + 24
11  clang                               0x001a112e
_ZN4llvm10Serializer12EmitOwnedPtrIN5clang10ASTContextEEEvPT_ + 48
12  clang                               0x0019f99b
_ZNK5clang15TranslationUnit4EmitERN4llvm10SerializerE + 217
13  clang                               0x001a06d8
_ZN5clang20EmitASTBitcodeBufferERKNS_15TranslationUnitERSt6vectorIhSaIhEE + 232
14  clang                               0x001a075d
_ZN5clang18EmitASTBitcodeFileERKNS_15TranslationUnitERKN4llvm3sys4PathE + 91
15  clang                               0x001a0808
_ZN5clang18EmitASTBitcodeFileEPKNS_15TranslationUnitERKN4llvm3sys4PathE + 30
16  clang                               0x0000416d
_ZN45_GLOBAL__N_ASTConsumers.cpp_00000000_12721AD620SingleFileSerializerD0Ev +
53
17  clang                               0x00108fb2
_ZN5clang8ParseASTERNS_12PreprocessorEPNS_11ASTConsumerEb + 630
18  clang                               0x0002a6ce
_Z16InitializeGCModeRN5clang11LangOptionsE + 5850
19  clang                               0x0002de02 main + 1596
20  clang                               0x000019c2 start + 54
21  ???                                 0x00000003 0x0 + 3


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