Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 139840

Summary: sys-libs/glibc - PTRACE_GETSIGINFO not defined in x86 version of sys/ptrace.h
Product: Gentoo Linux Reporter: Evan Teran <evan.teran>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceware.org/ml/libc-alpha/2006-09/msg00023.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glibc-linux-ptrace-updates.patch

Description Evan Teran 2006-07-09 19:58:52 UTC
PTRACE_GETSIGINFO not defined in x86 version of sys/ptrace.h, It is however defined in the ia64 version of the header. Despite the fact that in linux/ptrace.h it is defined, in fact doing:

#define PTRACE_GETSIGINFO	(__ptrace_request)0x4202

and using it with ptrace works perfectly. Unfortunately, because in sys/ptrace.h the constants are an enum and in linux/ptrace.h they are defines, in addition to the fact that glibc's definition of the ptrace function is slightly different to reflect an enum and thus conflicts, you cannot inlcude both headers at the same time (which would likely make things less of an issue).

Likewise PTRACE_SETSIGINFO is also not defined.

Evan Teran
Comment 1 SpanKY gentoo-dev 2006-09-16 22:04:44 UTC
Created attachment 97199 [details, diff]
glibc-linux-ptrace-updates.patch

this should do the trick
Comment 2 SpanKY gentoo-dev 2006-09-17 22:30:34 UTC
this has been merged upstream so this will be in the next glibc-2.4 release