Bug 820097
| Summary: | s390x: wc: : No such file or directory | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jan Stancek <jstancek> |
| Component: | busybox | Assignee: | Denys Vlasenko <dvlasenk> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.3 | CC: | azelinka, brueckner, gbai, jburke, ovasik, qcai, rhack, ruyang, rvokal |
| Target Milestone: | beta | ||
| Target Release: | --- | ||
| Hardware: | s390x | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-22 00:17:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I know how to fix this. I need ACKs. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. New build, with the fix included: https://brewweb.devel.redhat.com/buildinfo?buildID=293887 *** Bug 1010929 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1732.html |
Description of problem: busybox command 'wc' fails on s390x when redirecting stdin: # echo "asdf" | busybox wc -l wc: : No such file or directory The code from wc_main (wc.c) does: *--argv = (char *) bb_msg_standard_input; which after disassembly (objdump or gdb) gives: 0000000080099f58 <wc_main>: ... 80099fd4: e3 a0 af f8 ff 71 lay %r10,-8(%r10) 80099fda: c0 20 00 02 35 87 larl %r2,800e0ae8 <bb_msg_invalid_arg+0x1d> The address of "bb_msg_standard_input" is not even: 800e0ae9: <bb_msg_standard_input> The problems appears to be in alignment of "bb_msg_standard_input". # define ALIGN1 __attribute__((aligned(1))) const char bb_msg_standard_input[] ALIGN1 = "standard input"; larl instruction can generate only even addresses. The address, which is used (800e0ae8) is the end of bb_msg_invalid_arg, which is "\0". Version-Release number of selected component (if applicable): RHEL6.3-20120507.n.1 busybox-1.15.1-15.el6.s390x How reproducible: 100% Steps to Reproduce: 1. echo "asdf" > test 2a. busybox wc -l < test or 2b. echo "asdf" | busybox wc -l Actual results: wc: : No such file or directory Expected results: 1 Additional info: Bug 812816 - network dump on s390x got failure From z/Architecture Principles of Operation SA22-7832-07: "Only even addresses (halfword addresses) can be generated. If an odd address is desired, LOAD ADDRESS can be used to add one to an address formed by LOAD ADDRESS RELATIVE LONG."