public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
@ 2005-07-14 8:58 christoph dot stueckjuergen at siemens dot com
2005-07-14 9:03 ` [Bug libc/1067] " jakub at redhat dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: christoph dot stueckjuergen at siemens dot com @ 2005-07-14 8:58 UTC (permalink / raw)
To: glibc-bugs
recvmsg and sendmsg are broken on 64-bit architectures due to different
definitions of struct msghdr in the Linux kernel (2.6.12) and the glibc
(2.3.5).
In the kernel <linux/socket.h>:
struct msghdr {
void * msg_name;
int msg_namelen;
struct iovec * msg_iov;
__kernel_size_t msg_iovlen;
void * msg_control;
__kernel_size_t msg_controllen;
unsigned msg_flags;
};
In the glibc <bits/socket.h>:
struct msghdr
{
void *msg_name;
socklen_t msg_namelen;
struct iovec *msg_iov;
int msg_iovlen;
void *msg_control;
socklen_t msg_controllen;
int msg_flags;
};
msg_iovlen and msg_controllen are 64 bit wide in the kernel header and 32 bit
wide in the glibc header.
--
Summary: recvmsg, sendmsg broken on 64 bit architectures due to
different struct msghdr definition in glibc and Linux
kernel
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: christoph dot stueckjuergen at siemens dot com
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: mips64-linux-gnu
GCC target triplet: mips64-linux-gnu
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/1067] recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
2005-07-14 8:58 [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel christoph dot stueckjuergen at siemens dot com
@ 2005-07-14 9:03 ` jakub at redhat dot com
2005-07-14 9:06 ` christoph dot stueckjuergen at siemens dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at redhat dot com @ 2005-07-14 9:03 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2005-07-14 09:03 -------
Then it is a kernel bug.
POSIX mandates those types in struct msghdr, see:
http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/1067] recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
2005-07-14 8:58 [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel christoph dot stueckjuergen at siemens dot com
2005-07-14 9:03 ` [Bug libc/1067] " jakub at redhat dot com
@ 2005-07-14 9:06 ` christoph dot stueckjuergen at siemens dot com
2005-07-14 9:12 ` jakub at redhat dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: christoph dot stueckjuergen at siemens dot com @ 2005-07-14 9:06 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From christoph dot stueckjuergen at siemens dot com 2005-07-14 09:06 -------
Subject: Re: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
I see, thank you.
Christoph
Am Donnerstag, 14. Juli 2005 11:03 schrieb jakub at redhat dot com:
> ------- Additional Comments From jakub at redhat dot com
> 2005-07-14 09:03 ------- Then it is a kernel bug.
> POSIX mandates those types in struct msghdr, see:
> http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/socket
>.h.html
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/1067] recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
2005-07-14 8:58 [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel christoph dot stueckjuergen at siemens dot com
2005-07-14 9:03 ` [Bug libc/1067] " jakub at redhat dot com
2005-07-14 9:06 ` christoph dot stueckjuergen at siemens dot com
@ 2005-07-14 9:12 ` jakub at redhat dot com
2005-12-30 9:27 ` cvs-commit at gcc dot gnu dot org
2005-12-30 9:28 ` aj at suse dot de
4 siblings, 0 replies; 6+ messages in thread
From: jakub at redhat dot com @ 2005-07-14 9:12 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2005-07-14 09:12 -------
Checking more, it seems sysdeps/unix/sysv/linux/bits/socket.h
matches kernel's struct msghdr.
So it is just sysdeps/unix/sysv/linux/mips/bits/socket.h
that does not match it.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/1067] recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
2005-07-14 8:58 [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel christoph dot stueckjuergen at siemens dot com
` (2 preceding siblings ...)
2005-07-14 9:12 ` jakub at redhat dot com
@ 2005-12-30 9:27 ` cvs-commit at gcc dot gnu dot org
2005-12-30 9:28 ` aj at suse dot de
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-12-30 9:27 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-12-30 09:27 -------
Subject: Bug 1067
CVSROOT: /cvs/glibc
Module name: libc
Changes by: aj@sources.redhat.com 2005-12-30 09:27:42
Modified files:
sysdeps/unix/sysv/linux/mips/bits: socket.h
Log message:
[BZ #1067]
* sysdeps/unix/sysv/linux/mips/bits/socket.h: Fix struct msghdr
for 64-bit mips kernel.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/mips/bits/socket.h.diff?cvsroot=glibc&r1=1.23&r2=1.24
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/1067] recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel
2005-07-14 8:58 [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel christoph dot stueckjuergen at siemens dot com
` (3 preceding siblings ...)
2005-12-30 9:27 ` cvs-commit at gcc dot gnu dot org
@ 2005-12-30 9:28 ` aj at suse dot de
4 siblings, 0 replies; 6+ messages in thread
From: aj at suse dot de @ 2005-12-30 9:28 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From aj at suse dot de 2005-12-30 09:28 -------
Fixed for glibc 2.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=1067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-12-30 9:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 8:58 [Bug libc/1067] New: recvmsg, sendmsg broken on 64 bit architectures due to different struct msghdr definition in glibc and Linux kernel christoph dot stueckjuergen at siemens dot com
2005-07-14 9:03 ` [Bug libc/1067] " jakub at redhat dot com
2005-07-14 9:06 ` christoph dot stueckjuergen at siemens dot com
2005-07-14 9:12 ` jakub at redhat dot com
2005-12-30 9:27 ` cvs-commit at gcc dot gnu dot org
2005-12-30 9:28 ` aj at suse dot de
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).