Red Hat Bugzilla – Bug 109290
system() call to execute a shell command in a ia32 binary fails
Last modified: 2007-11-30 17:06:59 EST
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
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):
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
The strace output indicates that clone() call is failing with EFAULT
*** This bug has been marked as a duplicate of 107116 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.