Bug 145338
Summary: | attach or detach during nanosleep in 32 bit process returns EINVAL instead of EINTR | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | john yates <jyates> | ||||
Component: | kernel | Assignee: | Jason Baron <jbaron> | ||||
Status: | CLOSED WONTFIX | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0 | CC: | jakub, knoel, phansen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-06-20 16:18:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
john yates
2005-01-17 16:26:08 UTC
Created attachment 109867 [details]
repro.c, Makefile and shell script to demonstrate correct 64-bit and errant 32-bit behavior
*** Bug 145337 has been marked as a duplicate of this bug. *** This is a kernel thing, glibc's nanosleep just issues the nanosleep syscall. Earlier description is misleading. The crux of the problem is that our debugging methodology revolves around spinning in a loop that pauses briefly in nanosleep so long as a given "spinfile" exists. This allows us to attach a debugger before a given context is lost. The act of attach to a 32 bit process in one of these spin loops exhibits a bug. It appears that some aspect of the attach performs an madvise with a bad 3rd argument (int advice). This seems to leave an corrupted errno containing EINVAL instead of the expected EINTR: madvise(0xffffda10, 4294957576, 0x6b1ff4) = -1 EINVAL (Invalid argument) Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue. |