Description of problem: Analysis: The problem with strace exists even upstream on the latest version of strace from sourceforge.net. When running 64-bit version of strace on a 64-bit OS, it does not properly unpack the flock structure when tracing a 32-bit application. Version-Release number of selected component (if applicable): strace-4.5.16-1.el5 How reproducible: Every time Steps to Reproduce: 1. Download file to be attached 2. run make test 3. Notice invalid parameters for fnctl args Actual results: Wildly inaccurate values. Expected results: Same between 32 and 64 bit applications. Additional info: File to be attached with testcases.
Created attachment 323297 [details] Testcase to exercise problem % strace -e trace=fcntl,fcntl64 ./testfnct32 [ Process PID=6710 runs in 32 bit mode. ] File exists fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=3352103089833246720, len=13027512328}) = 0 Lock worked % strace -e trace=fcntl,fcntl64 ./testfnct64 File exists fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 Lock worked
Created attachment 324600 [details] Fix Test run with patch applied: # strace.t1/strace -e trace=fcntl,fcntl64 ./a32.out [ Process PID=14216 runs in 32 bit mode. ] File exists fcntl(4, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 Lock worked (btw your testcase tarball is gzipped twice over. how did you do that? :)
Sent patch upstream to strace-devel.net Subject line: [PATCH] fix fcntl(F_SETLK) display for 32-bit apps on x86_64
Re: double gzipped.. no idea.. I think i must have been distracted or something.
Committed to upstream strace cvs.
Tested on my end, works..
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1317.html
strace-4.5.19-1.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/strace-4.5.19-1.fc10
strace-4.5.19-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/strace-4.5.19-1.fc11
strace-4.5.19-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
strace-4.5.19-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.