From: duane@alpha.zk3.dec.com (Andrew Duane USG)
Subject: Re: pthread_kill problem?????
Date: Thu, 09 Oct 2003 13:58:57 GMT [thread overview]
Message-ID: <BQdhb.6682$9U3.6076@news.cpqcorp.net> (raw)
In-Reply-To: vo69mvgn3t5973@corp.supernews.com
In article <vo69mvgn3t5973@corp.supernews.com> "Ron Harter" <rharter@ev1.net> writes:
>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.
I do not understand what is happening. Your application gets a core
dump when threadId is 0, but a test harness doesn't?
Is there something else in your application that would dump when given
an errno of ESRCH? I have checked that pthread_kill does in fact return
ESRCH when threadId is 0, so I do not think that is the problem.
Where does a debugger say your application dumped?
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
HP/Compaq Corporation Andrew.Duane@compaq.com
110 Spit Brook Road Andrew.Duane@hp.com
M/S ZKO3-3/U14
Nashua, NH 03062-2698 (603)-884-1294
next prev parent reply other threads:[~2003-10-09 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-07 20:49 pthread_kill problem????? Ron Harter
2003-10-09 13:58 ` Andrew Duane USG [this message]
2003-10-09 18:51 ` Ron Harter
2003-10-14 13:04 ` David Butenhof
2003-10-13 14:49 ` reguera
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox