From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,99dabc73a31eb7ce X-Google-Attributes: gid111c93,public From: Einar Floystad Dorum Subject: Re: Problems with semaphores Date: 1999/09/14 Message-ID: #1/1 X-Deja-AN: 525005580 Sender: einarfd@kaupang.uninett.no References: <7rlfha$evk$1@nnrp1.deja.com> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: news-abuse@uninett.no X-Trace: snipp.uninett.no 937322197 14569 158.38.60.158 (14 Sep 1999 15:16:37 GMT) Organization: UNINETT news service Mime-Version: 1.0 (generated by tm-edit 7.108) Newsgroups: comp.os.linux.alpha jefflandgraf@my-deja.com writes: > I'm having problems with the pthread library using > Redhat 6.0 with kernal 2.2.10 on alpha. The > following simple program creates two threads > which trade semephores back and forth between > themselves. They crash after some time, with one > of three results. > > 1. Segmentation fault > > 2. Illegal instruction > > 3. Both of the threads with the semephore are > suspended and the main thread continues. > > (Note. If I replace the semephores with mutex's I > get the same results) You should upgrade to a 2.2.12 kernel. 2.2.10 had some ugly threading bugs wich made it unusabel for any threaded program.