From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c636cda4fa79bbaf X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-10-13 07:49:31 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: reguera@nospam.zko.dec.com Newsgroups: comp.unix.tru64 Subject: Re: pthread_kill problem????? Message-ID: References: X-Newsreader: Forte Free Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 13 Oct 2003 14:49:31 GMT NNTP-Posting-Host: 16.28.0.41 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1066056571 16.28.0.41 (Mon, 13 Oct 2003 07:49:31 PDT) NNTP-Posting-Date: Mon, 13 Oct 2003 07:49:31 PDT Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:10815 Hi Ron. We haven't seen this particular problem before. It is a possibility that the thread in question did recieve an abort() that was generated from a seperate issue. Could you forward the core to me via anonymous ftp: xfer.service.digital.com (192.208.35.20) cd to_digitial put file_name. this is a blind ftp site. Please let me know when you have it there @ reguera@nospam.zko.dec.com (remove nospam) I will download it it and review what we have. thanks John Reguera On Tue, 07 Oct 2003 20:49:35 -0000, "Ron Harter" wrote: > >We are using pthread_kill(threadId, 0) to determine if a particular thread >id is valid. We are running into a situation where the thread id (thread >has been terminated and joined) >is 0 and the program is getting an abort and core dumping. > >According to the documentation we should get back an ESRCH error, the program >should not core dump. > >Has anyone else experinced problems in this area? WE are running Tru64 5.1b >The task in question has approximatly 2000 threads >and the kernal parameters are set to allow a max of 4096 threads. > >We have written a test driver that creates a dozen or so threads and checks >them using pthread_kill(threadId, 0) with no problem, even after the thread >exits and is joined so the threadId is 0. In this case a ESRCH is returned. > >Any out there have any ideas or suggestions??????? > >Thanks in advance > >Ron Harter