[Bug 841] sem_timedwait broken

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed May 7 23:51:07 UTC 2008


http://www.rtems.org/bugzilla/show_bug.cgi?id=841


Joel Sherrill <joel.sherrill at oarcorp.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING
           Platform|                            |All
   Target Milestone|---                         |4.9


sem_timedwait is totally broken.  It returns an error code instead of setting
errno and returning -1.  Also, if you pass in a non-zero value for the number
of nanoseconds it immediately returns EINVAL - it looks like it is broken range
checking code.

Release:
4.6.99

Environment:
All


--- Comment #1 from dufault at hda.com  2005-11-02 13:36:23 ---
Fix:
Possible patch applied.

--- Comment #2 from Joel Sherrill <joel.sherrill at oarcorp.com>  2005-11-02 16:33:22 ---
State-Changed-From-To: open->feedback
State-Changed-Why: I wanted to check the online Open Group version of the POSIX
standard to see how sem_timedwait's description compares to
that of pthread_condtimedwait.  I learned that sem_timedwait
is not in the Open Group's version of the standard.  Where
are you getting your POSIX standard?  Does it include the
same description for pthread_condtimedwait?  What about
sigtimedwait?  One would hope the behavior was consistent. 
I want to address all at the same time if they are broken.

Please give feedback. :)


--- Comment #3 from Ralf Corsepius <ralf.corsepius at rtems.org>  2005-11-03 05:25:54 ---
From: Ralf Corsepius <ralf.corsepius at rtems.org>
To: bugs at rtems.com
Cc: dufault at hda.com, mayes at oarcorp.com, vvv at oktetlabs.ru, norume at aps.anl.gov,  chrisj at rtems.com, ralf_corsepius at rtems.org, jennifer at oarcorp.com, jmj at oarcorp.com,  joel at oarcorp.com
Subject: Re: RTEMS Re: rtems/841
Date: Thu, 03 Nov 2005 05:25:54 +0100

 On Wed, 2005-11-02 at 22:33 +0000, RTEMS-gnats at rtems.com wrote:
 > Synopsis: sem_timedwait broken
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: joel
 > State-Changed-When: Wed, 02 Nov 2005 16:33:22 -0600
 > State-Changed-Why:
 > I wanted to check the online Open Group version of the POSIX
 > standard to see how sem_timedwait's description compares to
 > that of pthread_condtimedwait.  I learned that sem_timedwait
 > is not in the Open Group's version of the standard.
 
 Look again:
 http://www.opengroup.org/onlinepubs/009695399/functions/sem_timedwait.html
 
 >   Where
 > are you getting your POSIX standard?  Does it include the
 > same description for pthread_condtimedwait?  What about
 > sigtimedwait?  One would hope the behavior was consistent. 
 > I want to address all at the same time if they are broken.
 > 
 > Please give feedback. :)
 
 > 
 > 
 >  http://www.rtems.com/cgi-bin/gnatsweb.pl?cmd=view&database=RTEMS&pr=841

--- Comment #4 from Joel Sherrill <joel.sherrill at oarcorp.com>  2008-05-07 18:51:06 ---
Didn't we fix this?  Can it be closed?  I swear this one should be dead.


-- 
Configure bugmail: http://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the bugs mailing list