Bug 741565

Summary: timer_delete does not disarm timer properly
Product: Red Hat Enterprise Linux 5 Reporter: Gregor Jasny <gjasny>
Component: kernelAssignee: Red Hat Kernel Manager <kernel-mgr>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7CC: mfranc
Target Milestone: rc   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-27 11:12:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
testcase none

Description Gregor Jasny 2011-09-27 09:56:53 UTC
Description of problem:
I created a POSIX periodic timer with a 5ms interval. If I delete the timer with timer_delete, I get another callback after the timer_delete returned.

Version-Release number of selected component (if applicable):
glibc-2.5-65

How reproducible:
Execute the attached testcase.

Steps to Reproduce:
1. Run the testcase
  
Actual results:
2. See the error message: "Timer callback for deleted timer"


Expected results:
No timer callbacks after timer_delete returned

This is also reproducible with the Debian eglibc 2.13-21 on amd64.

Thanks,
Gregor

Comment 1 Gregor Jasny 2011-09-27 09:57:29 UTC
Created attachment 525075 [details]
testcase

Comment 2 Andreas Schwab 2011-09-27 11:12:13 UTC
The disposition of pending signals for the deleted timer is unspecified.