EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: vxWorks epicsThreadCreate returns valid thread id when thread wasnt created
From: "Jeff Hill" <[email protected]>
To: <[email protected]>
Cc: "'Marty Kraimer'" <[email protected]>
Date: Wed, 9 Nov 2005 12:38:25 -0700
I created mantis 225, vxWorks epicsThreadCreate returns 
valid (non-nill) thread id when thread wasnt created, and 
assigned it to Marty.

I found this bug when regression testing CA against an 
out of memory IOC.

I suggest the following patch.

Index: osdThread.c
===================================================================
RCS file:
/net/phoebus/epicsmgr/cvsroot/epics/base/src/libCom/osi/os/vxWorks/osdThread
.c,v
retrieving revision 1.35.2.8
diff -u -r1.35.2.8 osdThread.c
--- osdThread.c 17 Nov 2004 19:58:09 -0000      1.35.2.8
+++ osdThread.c 9 Nov 2005 19:33:45 -0000
@@ -145,7 +145,7 @@
         VX_FP_TASK, stackSize,
         (FUNCPTR)createFunction,(int)funptr,(int)parm,
         0,0,0,0,0,0,0,0);
-    if(tid==0) {
+    if(tid==ERROR) {
         errlogPrintf("epicsThreadCreate taskSpawn failure for %s\n",name);
         return(0);
     }

Jeff
__________________________________________________________
Jeffrey O. Hill               Mail         [email protected]
LANL MS H820                  Voice        505 665 1831
Los Alamos NM 87545 USA       Fax          505 665 5107




Replies:
Re: vxWorks epicsThreadCreate returns valid thread id when thread wasnt created Marty Kraimer

Navigate by Date:
Prev: Re: 3.14.8@Linux: OSS priorities problem? Ernest L. Williams Jr.
Next: mantis 153 fix is in Jeff Hill
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: R3.14.8 testing: epicsMessageQueueTestHost fails on linux-x86 Ralph Lange
Next: Re: vxWorks epicsThreadCreate returns valid thread id when thread wasnt created Marty Kraimer
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·