process_vm_readv issue?
Ali Polatel
polatel at gmail.com
Wed Feb 13 11:08:48 UTC 2013
2013/02/11 Denys Vlasenko <dvlasenk at redhat.com>:
>On 02/11/2013 01:05 AM, Ali Polatel wrote:
>> Hello,
>>
>> The following issue looks like a strace bug.
>>
>> strace: strace -- version 4.7
>> uname: Linux hayalet 3.7.6 #5 SMP PREEMPT Mon Feb 4 11:40:36 EET 2013 x86_64 GNU/Linux
>> CONFIG_CROSS_MEMORY_ATTACH=y
>>
>> Compiling:
>>
>> #include <stdlib.h>
>> #include <sys/types.h>
>> #include <ifaddrs.h>
>>
>> int main(int argc, char **argv)
>> {
>> int r;
>> struct ifaddrs *ifa = NULL;
>>
>> r = getifaddrs(&ifa);
>> if (r && !ifa)
>> return EXIT_FAILURE;
>> return EXIT_SUCCESS;
>> }
>>
>> on my x86_64 system with -m32 and running under strace yields the
>> following output:
>>
>> execve("/home/alip/src/sydbox/a.out", ["/home/alip/src/sydbox/a.out"], [/* 123 vars */]) = 0
>> [ Process PID=29370 runs in 32 bit mode. ]
>> <snip>
>> socket(PF_NETLINK, SOCK_RAW, 0) = 4
>> bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
>> getsockname(4, {sa_family=AF_NETLINK, pid=29370, groups=00000000}, [12]) = 0
>> time(NULL) = 1360540866
>> sendto(4, "\24\0\0\0\22\0\1\3\3024\30Q\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
>> recvmsg(4, {msg_name(-4176776)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(85899345920)=[process_vm_readv: Bad address
>> ?] 0, msg_controllen=0, msg_flags=MSG_PROXY}, 0) = 3080
>> brk(0) = 0x9abf000
>> brk(0x9ae0000) = 0x9ae0000
>> recvmsg(4, {msg_name(-4176776)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(85899345920)=[process_vm_readv: Bad address
>> ?] 0, msg_controllen=0, msg_flags=MSG_PROXY}, 0) = 20
>> sendto(4, "\24\0\0\0\26\0\1\3\3034\30Q\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
>> recvmsg(4, {msg_name(-4176776)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(85899345920)=[process_vm_readv: Bad address
>> ?] 0, msg_controllen=0, msg_flags=MSG_PROXY}, 0) = 108
>> recvmsg(4, {msg_name(-4176776)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(85899345920)=[process_vm_readv: Bad address
>> ?] 0, msg_controllen=0, msg_flags=MSG_PROXY}, 0) = 128
>> recvmsg(4, {msg_name(-4176776)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(85899345920)=[process_vm_readv: Bad address
>> ?] 0, msg_controllen=0, msg_flags=MSG_PROXY}, 0) = 20
>> close(4) = 0
>> exit_group(0) = ?
>> +++ exited with 0 +++
>>
>> Notice the "process_vm_readv: Bad address" messages.
>
>Please try the attached patch
Thanks this solves the issue for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130213/d67112b3/attachment.bin>
More information about the Strace-devel
mailing list