[cfe-dev] segfault with -serialize

Holger Schurig hs4233 at mail.mn-solutions.de
Fri May 30 03:53:07 PDT 2008


$ cat main.c
int main(int argc, char *argv[])
{
        printf("argc: %d\n", argc);
        printf("argv[0]: %s\n", argv[0]);
}


$ clang main.c -serialize
clang[0x8375f51]
Segmentation fault


Unfortunately, right now I have a release build, so the backtrace 
doesn't say too much:

(gdb) bt
#0  0x096bae28 in ?? ()
#1  0x0823ce14 in clang::TranslationUnit::~TranslationUnit ()
#2  0xb7e10ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7e124c0 in ?? () from /lib/tls/i686/cmov/libc.so.6
#4  0xbf885fa0 in ?? ()
#5  0x096b9c88 in ?? ()
#6  0x096b9ae8 in ?? ()
#7  0xb7e124c0 in ?? () from /lib/tls/i686/cmov/libc.so.6
#8  0x096bfd98 in ?? ()
#9  0x096bfda0 in ?? ()
#10 0x00000000 in ?? ()



More information about the cfe-dev mailing list