This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid


------- Additional Comments From elciofried at gmail dot com  2007-05-18 20:53 -------
Dear Mr Ulrich, as the "The Open Group Technical Standard - Base Specifications,
Issue 6 - System Interfaces" document stands, which includes IEEE Std
1003.1-2001, IEEE Std 1003.1-2001/Cor 1-2002 and IEEE Std 1003.1-2001/Cor 2-2004
specifications, and which specify how threads are implemented following POSIX
patterns and for which you can verify by yourself, the implementation of the
pthread_kill() system call (page 1132) stands that the pthread_kill *shall*
return ESRCH err in case "no thread could be found corresponding to that
specified by the given thread ID". So we can conclude that pthread_kill()
implementation is _not_ following the POSIX specifications. I still remember
that there is another bug (#60) that had already signaled that kind of problem.
In case of the pthread_cancel system call (page 1078) there is the same
situation, the specification says that it shall return the indicative error, ESRCH.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=4509

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]