Bug 109290
| Summary: | system() call to execute a shell command in a ia32 binary fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Need Real Name <chandra.kapate> |
| Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
| Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0 | CC: | petrides, riel |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | ia64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 18:59:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of 107116 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461; GIS IE6.0 Build 20031007) Description of problem: An ia32 binary for the following tiny program fails when run on a ia64 system running RH EL AS 3.0 #include <stdio.h> #include <stdlib.h> main() { printf("system(date) retuned = %d\n", system("date")); } Created the binary on RH8.0 and used it on ia64 box running AS 3.0. Note: It works fine on ia64 running RH AS 2.1. Version-Release number of selected component (if applicable): kernel-2.4.21-4.EL; How reproducible: Always Steps to Reproduce: 1.Create the tiny test file mentioned above on a RH8.0 or RH EL AS 3.0 running in x86 bix; Compile it 2.Bring the above ia32 binary to ia64 box running EL AS 3.0 3.Execute the above ia32 binary on ia64 box. Actual Results: Output from above test : system(date) returned = -1 Expected Results: The above program should display the current date/time (output of date command) and the following line system(date) returned = 0 Additional info: The strace output indicates that clone() call is failing with EFAULT (Bad address)