Bug 218433 - umovestr I/O errors on 32-bit binaries
Summary: umovestr I/O errors on 32-bit binaries
Alias: None
Product: Fedora
Classification: Fedora
Component: strace   
(Show other bugs)
Version: rawhide
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Brian Brock
Depends On: 218043
TreeView+ depends on / blocked
Reported: 2006-12-05 11:03 UTC by Jakub Jelinek
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: 4.5.15-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-17 03:05:33 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jakub Jelinek 2006-12-05 11:03:20 UTC
+++ This bug was initially created as a clone of Bug #218043 +++


On x86-64, with a 32-bit binary.

1. gcc -m32 -o writex writex.c
2. sudo strace -o foo -v ./writevx 22
[ Process PID=4407 runs in 32 bit mode. ]
umovestr: Input/output error
umovestr: Input/output error

-- Additional comment from bnocera@redhat.com on 2006-12-01 10:07 EST --
Created an attachment (id=142573)

-- Additional comment from jakub@redhat.com on 2006-12-05 04:11 EST --
#include <sys/uio.h>

main (void)
  struct iovec v[2];
  v[0].iov_base = "abc";
  v[0].iov_len = 3;
  v[1].iov_base = "\n";
  v[1].iov_len = 1;
  writev (1, v, 2);
  return 0;
is enough to reproduce it.  64-bit strace just doesn't handle 32-bit

-- Additional comment from jakub@redhat.com on 2006-12-05 05:57 EST --
Created an attachment (id=142820)

Patch to fix it.  biarch support in current strace is clearly a hack, but until
if ever that is rewritten into a framework that can naturally cope with this,
I wrote a hack solution just for struct iovec.

Comment 1 Dmitry V. Levin 2006-12-06 02:11:45 UTC
What about struct timespec (#171626) and struct timeval (#173050)?

Comment 2 Roland McGrath 2006-12-06 05:31:59 UTC
many are scrod for biarch and mostly i say tough luck.
each individual flavor done with a kludge helps some, but i haven't been willing
to write all the kludges myself.

Comment 3 Dmitry V. Levin 2006-12-13 21:32:09 UTC
Fixed upstream.

Comment 4 Roland McGrath 2007-01-11 11:14:49 UTC
these bugs are fixed upstream in the coming 4.5.15 release

Comment 5 Roland McGrath 2007-01-17 03:05:33 UTC
4.5.15 in rawhide and in updates for fc5 and fc6 fixes this.

Note You need to log in before you can comment on or make changes to this bug.