public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
       [not found] <bug-4509-131@http.sourceware.org/bugzilla/>
@ 2010-12-21 17:13 ` pasky at suse dot cz
  2014-05-27  3:00 ` 2947868523 at qq dot com
  1 sibling, 0 replies; 13+ messages in thread
From: pasky at suse dot cz @ 2010-12-21 17:13 UTC (permalink / raw)
  To: glibc-bugs

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

Petr Baudis <pasky at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pasky at suse dot cz

--- Comment #12 from Petr Baudis <pasky at suse dot cz> 2010-12-21 13:26:22 UTC ---
(For reference, the blog post is: http://udrepper.livejournal.com/16844.html)

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
       [not found] <bug-4509-131@http.sourceware.org/bugzilla/>
  2010-12-21 17:13 ` [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid pasky at suse dot cz
@ 2014-05-27  3:00 ` 2947868523 at qq dot com
  1 sibling, 0 replies; 13+ messages in thread
From: 2947868523 at qq dot com @ 2014-05-27  3:00 UTC (permalink / raw)
  To: glibc-bugs

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

Chenyuan.Liu <2947868523 at qq dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |2947868523 at qq dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (9 preceding siblings ...)
  2007-06-14 12:03 ` elciofried at gmail dot com
@ 2007-06-14 14:10 ` jakub at redhat dot com
  10 siblings, 0 replies; 13+ messages in thread
From: jakub at redhat dot com @ 2007-06-14 14:10 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-06-14 14:09 -------
Please check http://udrepper.livejournal.com/tag/programming+posix

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (8 preceding siblings ...)
  2007-06-13 12:36 ` elciofried at gmail dot com
@ 2007-06-14 12:03 ` elciofried at gmail dot com
  2007-06-14 14:10 ` jakub at redhat dot com
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-06-14 12:03 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From elciofried at gmail dot com  2007-06-14 12:03 -------
Dear Mr. Ulrich, as we can see at various mailing lists and also lots of tickets
about the behaviour of the pthread_kill() and your unpolite answers about the
theme, I am going to ask the same way you treat people when they ask about this
problem:
Stop saying the others's code is wrong. Your pthread_kill() implementation is
not in accordance with POSIX at all. As a C coder, I'm completely astounted how
a unpolite person like you cannot apply a patch already proposed in order to be
compliant with POSIX. If "must return ESRCH" is not compliant with POSIX in case
of an invalid TID, so point us out where a hell this document is. No one can
find that document!! Nor at the Opengroup nor at Austin Group!! Only you guy
keep saying the code is wrong!! Show us the right code or point us to the
document saying you are right!
Take a look at:
http://www.opengroup.org/austin/docs/austin_148.txt
and
http://sourceware.org/ml/libc-alpha/2005-11/msg00115.html
and all the documents about pthread_kill(). If you are right and you are the guy
who made the specification, so show us the "correct" specification. All the
specifications I could buy and look at the Internet show us you are completely
wrong!! Shame on you.

-- 
           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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (7 preceding siblings ...)
  2007-05-21 16:30 ` drepper at redhat dot com
@ 2007-06-13 12:36 ` elciofried at gmail dot com
  2007-06-14 12:03 ` elciofried at gmail dot com
  2007-06-14 14:10 ` jakub at redhat dot com
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-06-13 12:36 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From elciofried at gmail dot com  2007-06-13 12:35 -------
Dear Mr. Ulrich, as we can see at various mailing lists and also lots of tickets
about the behaviour of the pthread_kill() and your unpolite answers about the
theme, I am going to ask the same way you treat people when they ask about this
problem:
Stop saying the others's code is wrong. Your pthread_kill() implementation is
not in accordance with POSIX at all. As a C coder, I'm completely astounted how
a unpolite person like you cannot apply a patch already proposed in order to be
compliant with POSIX. If "must return ESRCH" is not compliant with POSIX in case
of an invalid TID, so point us out where a hell this document is. No one can
find that document!! Nor at the Opengroup nor at Austin Group!! Only you guy
keep saying the code is wrong!! Show us the right code or point us to the
document saying you are right!
Take a look at:
http://www.opengroup.org/austin/docs/austin_148.txt
and
http://sourceware.org/ml/libc-alpha/2005-11/msg00115.html
and all the documents about pthread_kill(). If you are right and you are the guy
who made the specification, so show us the "correct" specification. All the
specifications I could buy and look at the Internet show us you are completely
wrong!! Shame on you.

-- 


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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (6 preceding siblings ...)
  2007-05-21 14:22 ` elciofried at gmail dot com
@ 2007-05-21 16:30 ` drepper at redhat dot com
  2007-06-13 12:36 ` elciofried at gmail dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: drepper at redhat dot com @ 2007-05-21 16:30 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-05-21 17:30 -------
Read the Austin Group communications.  I'm not paid to do your work for you.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (5 preceding siblings ...)
  2007-05-18 20:26 ` drepper at redhat dot com
@ 2007-05-21 14:22 ` elciofried at gmail dot com
  2007-05-21 16:30 ` drepper at redhat dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-05-21 14:22 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From elciofried at gmail dot com  2007-05-21 15:22 -------
Ulrich, please tell me, why in the specification says that pthread_kill "*shall*
return error, and list ESRCH as a possible error ? What it means for you ? Is it
possible other interpretation ?
I ask you just to look at the specification in the pthread_kill section and
think about it, ok ?

Thanks

-- 
           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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (4 preceding siblings ...)
  2007-05-18 19:54 ` elciofried at gmail dot com
@ 2007-05-18 20:26 ` drepper at redhat dot com
  2007-05-21 14:22 ` elciofried at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: drepper at redhat dot com @ 2007-05-18 20:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-05-18 21:26 -------
Stop reopening the bug.  I understand the specification very well, I help
writing it.  It is not my problem that your application is broken and that you
don't understand the specification.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (3 preceding siblings ...)
  2007-05-15 20:37 ` elciofried at gmail dot com
@ 2007-05-18 19:54 ` elciofried at gmail dot com
  2007-05-18 20:26 ` drepper at redhat dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-05-18 19:54 UTC (permalink / raw)
  To: glibc-bugs


------- 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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
                   ` (2 preceding siblings ...)
  2007-05-15 14:53 ` elciofried at gmail dot com
@ 2007-05-15 20:37 ` elciofried at gmail dot com
  2007-05-18 19:54 ` elciofried at gmail dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-05-15 20:37 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From elciofried at gmail dot com  2007-05-15 21:37 -------
(In reply to comment #2)
> The thread library has no obligation to catch invalid thread IDs.  It cannot. 
> Your code is wrong.

What is the purpose of the error code ESRCH if the thread library has no
obligation to catch invalid thread ID ??
How can i verify if a thread is dead or alive if when i send a signal to ask, my
application is going down. Is it difficult to implement an error message of an
invalid id ?
Let say POSIX do not say anything about it, but we could not allow a
Segmentation Fault ERROR. Don't you think ?

-- 


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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
  2007-05-15 13:36 ` [Bug nptl/4509] " elciofried at gmail dot com
  2007-05-15 14:20 ` drepper at redhat dot com
@ 2007-05-15 14:53 ` elciofried at gmail dot com
  2007-05-15 20:37 ` elciofried at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-05-15 14:53 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From elciofried at gmail dot com  2007-05-15 15:52 -------
What is the porpose of the error code ESRCH if the thread library has no
obligation to catch invalid thread ID ??
How can i verify if a thread is dead or alive ?



-- 


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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
  2007-05-15 13:36 ` [Bug nptl/4509] " elciofried at gmail dot com
@ 2007-05-15 14:20 ` drepper at redhat dot com
  2007-05-15 14:53 ` elciofried at gmail dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: drepper at redhat dot com @ 2007-05-15 14:20 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-05-15 15:20 -------
The thread library has no obligation to catch invalid thread IDs.  It cannot. 
Your code is wrong.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid
  2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
@ 2007-05-15 13:36 ` elciofried at gmail dot com
  2007-05-15 14:20 ` drepper at redhat dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: elciofried at gmail dot com @ 2007-05-15 13:36 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From elciofried at gmail dot com  2007-05-15 14:36 -------
glibc-2.5-25
glibc-devel-2.5-25
Linux 2.6.18.2-34-default i686 athlon i386 GNU/Linux
NPTL 2.5

-- 


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.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-27  3:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-4509-131@http.sourceware.org/bugzilla/>
2010-12-21 17:13 ` [Bug nptl/4509] pthread_kill() Segmentation Fault when TID is invalid pasky at suse dot cz
2014-05-27  3:00 ` 2947868523 at qq dot com
2007-05-15 12:52 [Bug nptl/4509] New: " elciofried at gmail dot com
2007-05-15 13:36 ` [Bug nptl/4509] " elciofried at gmail dot com
2007-05-15 14:20 ` drepper at redhat dot com
2007-05-15 14:53 ` elciofried at gmail dot com
2007-05-15 20:37 ` elciofried at gmail dot com
2007-05-18 19:54 ` elciofried at gmail dot com
2007-05-18 20:26 ` drepper at redhat dot com
2007-05-21 14:22 ` elciofried at gmail dot com
2007-05-21 16:30 ` drepper at redhat dot com
2007-06-13 12:36 ` elciofried at gmail dot com
2007-06-14 12:03 ` elciofried at gmail dot com
2007-06-14 14:10 ` jakub at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).