x32 regressions

Mike Frysinger vapier at gentoo.org
Thu May 2 00:29:26 UTC 2013


On Wednesday 01 May 2013 18:49:02 Dmitry V. Levin wrote:
> Thanks.  I hope this would be the final attempt:

this one builds cleanly, and seems to run ok.  bonus points because it seems 
to also fix stat64() decoding in the i386 32bit ABI.

$ ./strace -v -estat64,stat ./a.out f
stat("f", {st_dev=makedev(9, 0), st_ino=30545838, st_mode=S_IFREG|0644, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, 
st_size=10737418240, st_atime=2013/05/01-13:48:52, 
st_mtime=2013/05/01-13:48:52, st_ctime=2013/05/01-13:48:52}) = 0
10737418240

$ ./strace -v -estat64,stat ./a.out32 f
[ Process PID=2661 runs in 32 bit mode. ]
stat64("f", {st_dev=makedev(9, 0), st_ino=30545838, st_mode=S_IFREG|0644, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, 
st_size=10737418240, st_atime=2013/05/01-13:48:52, 
st_mtime=2013/05/01-13:48:52, st_ctime=2013/05/01-13:48:52}) = 0

as compared to the 4.7 release where it gets it wrong:

$ strace -v -estat64,stat ./a.out32 f
[ Process PID=2668 runs in 32 bit mode. ]
stat64("f", {st_dev=makedev(9, 0), st_ino=134513920, st_mode=S_IFREG|0644, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=0, st_blocks=1367430532, 
st_size=17592186044418, st_atime=2013/05/01-13:48:52, 
st_mtime=2013/05/01-13:48:52, st_ctime=1970/12/20-07:57:18}) = 0
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130501/95ff1ad4/attachment.bin>


More information about the Strace-devel mailing list