From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fdd183ed896320dd X-Google-Attributes: gidfee84,public From: cmdavis@ix.netcom.com(Chris Davis ) Subject: Re: BookReader threads example crashes Date: 1995/12/21 Message-ID: <4ba9ss$lr1@ixnews8.ix.netcom.com>#1/1 X-Deja-AN: 122382593 references: <4b2q2j$i1l@harbinger.cc.monash.edu.au> organization: Netcom x-netcom-date: Wed Dec 20 4:31:25 PM PST 1995 newsgroups: comp.unix.osf.osf1 In <4b2q2j$i1l@harbinger.cc.monash.edu.au> jvf@aurora.cc.monash.edu.au (J Frankland) writes: > >The threads programming example in the Guide to DECthreads (accessible >by the bookreader) which conducts a prime number search, crashes. >It is Example 5-1. After compiling with the -lpthreads link flag, and >running it, it Seg Faults before it get to the main() function. On 3.2c, we traced this problem to the DEC shared libraries pulled in by -lpthreads. In our other words, even the simple program below would seg fault: *********** main() { printf("Hello world\n"); exit(0); } ****************** It doesn't even have any thread calls! We were able to run thread applications after manually linking in the other libraries.