public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug linuxthreads/12584] New: timer_delete is unsafe
@ 2011-03-15  6:00 panruochen at gmail dot com
  2012-02-16 14:35 ` [Bug linuxthreads/12584] " jsm28 at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: panruochen at gmail dot com @ 2011-03-15  6:00 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: timer_delete is unsafe
           Product: glibc
           Version: 2.9
            Status: NEW
          Severity: normal
          Priority: P2
         Component: linuxthreads
        AssignedTo: drow@false.org
        ReportedBy: panruochen@gmail.com


Created attachment 5307
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5307
Test code for timer_delete issue

Hi All,

I found a bug in timer_delete.

There may be one more unexpected call to the timer signal handler after the
timer has been successfully deleted by timer_delete().

The test code is in the attachment.

I do some tracing into kernel/glibc source, and guess the issue arises in this
way:

The posix_timer_event() function enqueues a signal, timer_delete() does nothing
to dequeue the signal, and the signal will be sent to the user process
asynchronously in schedule(). 

Best Regards,
PRC
2011/3/15

-- 
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] 6+ messages in thread

* [Bug linuxthreads/12584] timer_delete is unsafe
  2011-03-15  6:00 [Bug linuxthreads/12584] New: timer_delete is unsafe panruochen at gmail dot com
@ 2012-02-16 14:35 ` jsm28 at gcc dot gnu.org
  2012-02-17  5:17 ` bugdal at aerifal dot cx
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-16 14:35 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
         AssignedTo|drow at false dot org       |unassigned at sourceware
                   |                            |dot org

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-16 14:31:33 UTC ---
Did you really mean to report this bug against Linuxthreads, the old thread
implementation used up to around glibc 2.3, rather than NPTL, the current
standard thread implementation that has been the only one readily usable since
around glibc 2.5?  Linuxthreads has not been maintained for several years.  If
this is actually an NPTL bug it needs to be marked as such for NPTL maintainers
to notice it.

-- 
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] 6+ messages in thread

* [Bug linuxthreads/12584] timer_delete is unsafe
  2011-03-15  6:00 [Bug linuxthreads/12584] New: timer_delete is unsafe panruochen at gmail dot com
  2012-02-16 14:35 ` [Bug linuxthreads/12584] " jsm28 at gcc dot gnu.org
@ 2012-02-17  5:17 ` bugdal at aerifal dot cx
  2012-02-17 13:23 ` jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugdal at aerifal dot cx @ 2012-02-17  5:17 UTC (permalink / raw)
  To: glibc-bugs

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

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> 2012-02-17 05:16:55 UTC ---
Judging from function names like posix_timer_event() and schedule(), I'm pretty
sure this bug report IS against LinuxThreads and thus is probably a WONTFIX
unless somebody really wants to spend their time trying to fix outdated,
unmaintained, broken-by-design software...

-- 
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] 6+ messages in thread

* [Bug linuxthreads/12584] timer_delete is unsafe
  2011-03-15  6:00 [Bug linuxthreads/12584] New: timer_delete is unsafe panruochen at gmail dot com
  2012-02-16 14:35 ` [Bug linuxthreads/12584] " jsm28 at gcc dot gnu.org
  2012-02-17  5:17 ` bugdal at aerifal dot cx
@ 2012-02-17 13:23 ` jsm28 at gcc dot gnu.org
  2014-02-06 18:25 ` jsm28 at gcc dot gnu.org
  2014-06-27 13:41 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-17 13:23 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |SUSPENDED

--- Comment #3 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-17 13:22:51 UTC ---
On the basis of that analysis, marking SUSPENDED.  (The combination of
Linuxthreads and version 2.9 doesn't really seem to make sense to me.)

-- 
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] 6+ messages in thread

* [Bug linuxthreads/12584] timer_delete is unsafe
  2011-03-15  6:00 [Bug linuxthreads/12584] New: timer_delete is unsafe panruochen at gmail dot com
                   ` (2 preceding siblings ...)
  2012-02-17 13:23 ` jsm28 at gcc dot gnu.org
@ 2014-02-06 18:25 ` jsm28 at gcc dot gnu.org
  2014-06-27 13:41 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-06 18:25 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Closing, on the basis that it doesn't make sense to keep bug reports open for
things not part of the current glibc repository.

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


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

* [Bug linuxthreads/12584] timer_delete is unsafe
  2011-03-15  6:00 [Bug linuxthreads/12584] New: timer_delete is unsafe panruochen at gmail dot com
                   ` (3 preceding siblings ...)
  2014-02-06 18:25 ` jsm28 at gcc dot gnu.org
@ 2014-06-27 13:41 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:41 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

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


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

end of thread, other threads:[~2014-06-27 13:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15  6:00 [Bug linuxthreads/12584] New: timer_delete is unsafe panruochen at gmail dot com
2012-02-16 14:35 ` [Bug linuxthreads/12584] " jsm28 at gcc dot gnu.org
2012-02-17  5:17 ` bugdal at aerifal dot cx
2012-02-17 13:23 ` jsm28 at gcc dot gnu.org
2014-02-06 18:25 ` jsm28 at gcc dot gnu.org
2014-06-27 13:41 ` fweimer 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).