strace-4.5.12-0.EL3.1 on x86-64 hello is an x86 32-bit binary. On a RHEL3 x86: $ strace -f -e trace=open ./hello32 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/tls/libc.so.6", O_RDONLY) = 3 open("hello.txt", O_RDWR|O_APPEND|O_CREAT, 0700) = 3 open("hello.txt", O_RDWR|O_APPEND|O_CREAT, 0700) = 3 etc. On a RHEL3 x86-64: $ strace -f -e trace=open ./hello32 [ Process PID=586 runs in 32 bit mode. ] (and nothing happens...)
Created attachment 121395 [details] hello.c
Created attachment 121738 [details] strace-4.5.13-alt-qual_flags.patch I apparently independently discovered and fixed this issue two weeks ago. Here is a proposed change.
The patch should be applied on top of the patch attached to #174798.
I re-built strace with the alt-qual_flags patch uploaded here as well as the alt-qual_syscall patch attached to BZ #174798. I re-tested strace, and the problem appears to have been fixed: [root@x336 dw-83557]# BUILD/strace-4.5.12/strace -f -e trace=open ./hello32 [ Process PID=9357 runs in 32 bit mode. ] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/tls/libc.so.6", O_RDONLY) = 3 open("hello.txt", O_RDWR|O_APPEND|O_CREAT, 0700) = 3 open("hello.txt", O_RDWR|O_APPEND|O_CREAT, 0700) = 3 open("hello.txt", O_RDWR|O_APPEND|O_CREAT, 0700) = 3 [etc.]
I've put the changes in upstream, an obvious and useful addition to the multipersonality support (such as it is). Thanks.
*** Bug 171397 has been marked as a duplicate of this bug. ***
This issue is on Red Hat Engineering's list of planned work items for the upcoming Red Hat Enterprise Linux 3.8 release. Engineering resources have been assigned and barring unforeseen circumstances, Red Hat intends to include this item in the 3.8 release.
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 the 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-2006-0408.html