This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel
- From: "neelakan at uiuc dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Dec 2005 20:20:08 -0000
- Subject: [Bug libc/1780] size of sigset_t in ucontext_t structure does not match linux kernel
- References: <20051101222806.1780.neelakan@uiuc.edu>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From neelakan at uiuc dot edu 2005-12-22 20:20 -------
The kernel sets the value of uc_mcontext.fpregs to the correct address of the
__fpregs_mem structure. A user-level program that checks the address of the
__fpregs_mem structure should get the same value as contained in uc_mcontext.fpregs.
The problem arises because of the way that the glibc header files define the
size of the __sigset_t struct in ucontext_t (see /usr/include/sys/ucontext.h).
The sigset_t struct should match the definition used by the kernel (which is
"unsigned long[2]" if I remember correctly), but is instead defined as "usigned
long int[32]" in the glibc header file /usr/include/bits/sigset.h.
Does that answer your question?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1780
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.