From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ff2605ac9700b582,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-27 10:20:10 PST Path: gmd.de!xlink.net!news.dfn.de!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!news.imag.fr!ciril.fr!univ-lille1.fr!zaphod.crihan.fr!pipex!howland.reston.ans.net!agate!overload.lbl.gov!gracie.lbl.gov!jin From: jin@gracie.lbl.gov (Guojun Jin[ITG]) Newsgroups: comp.unix.osf.osf1 Subject: Fatal error in: /usr/lib/cmplrs/cc/cfe compiling pthread Date: 26 Jan 1994 17:19:58 GMT Organization: Lawrence Berkeley Laboratory Message-ID: <2i68nu$50a@overload.lbl.gov> NNTP-Posting-Host: gracie.lbl.gov Keywords: Compiler Bug alpha % more test.c /* test.c */ #define USE_PTHREAD int sub() {} main(argc, argv) int argc; char** argv; { #ifdef USE_PTHREAD #include pthread_t pthr; pthread_create(&pthr, pthread_attr_default, sub, &argc); #endif printf("too buggy\n"); } /* end of the program */ alpha % cc -c test.c Fatal error in: /usr/lib/cmplrs/cc/cfe Segmentation fault - core dumped ............................................................ What is the compiler doing? -- /---------------------------------------v-------------------------------\ | Jin Guojun, Imaging Technology | Internet: g_jin@lbl.gov | | Lawrence Berkeley Laboratory | Usenet: ucbvax!g_jin@lbl.gov | | | Bitnet: jin%george.lbl.gov@Csa3.LBL.Gov |