Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

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: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: 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:

Description Need Real Name 2003-11-06 16:49:33 UTC
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)

Comment 1 Arjan van de Ven 2003-11-06 16:51:54 UTC

*** This bug has been marked as a duplicate of 107116 ***

Comment 2 Red Hat Bugzilla 2006-02-21 18:59:47 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.