Bug 100976

Summary: rexec is broken ("Invalid argument")
Product: [Retired] Red Hat Linux Reporter: Ronny Buchmann <ronny-rhbugzilla>
Component: libcAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: fabio.bettoni
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-09 11:40:29 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:
Attachments:
Description Flags
strace of rexec on shrike
none
strace of rexec on valhalla none

Description Ronny Buchmann 2003-07-28 10:53:48 UTC
Description of problem:
rexec fails with "Invalid argument"

Version-Release number of selected component (if applicable):
rsh-0.17-14 (shrike)
rsh-0.17-17.1 (severn)

Results
severn:
[root@vmrh9093 root]# rexec vmrh73 ls
Password:
rexec: Invalid argument

shrike:
[root@akde1030 root]# rexec vmrh73 ls
Password:
rexec: Invalid argument

valhalla:
[root@vmrh73 root]# rexec vmrh73 ls
Password:
anaconda-ks.cfg
install.log
install.log.syslog
rexec.trace.fail
rexec.trace.ok

Comment 1 Ronny Buchmann 2003-07-28 10:56:21 UTC
Created attachment 93186 [details]
strace of rexec on shrike

generated with "strace -o rexec.trace.fail vmrh73 ls"

Comment 2 Ronny Buchmann 2003-07-28 10:57:44 UTC
Created attachment 93187 [details]
strace of rexec on valhalla

generated with "strace -o rexec.trace.ok vmrh73 ls"

Comment 3 Fabio Bettoni 2003-08-12 15:15:41 UTC
I have 2 systems with RH9, glibc-2.3.2-27.9 and rsh updated to 0.17-17.1

The first:
Kernel 2.4.21 SMP compiled by myself on a 4 Pentium 133
IT WORKS !

The second:
Kernel 2.4.20-19.9 NO SMP installed from RPM on a Pentium4 2GHz
invalid argument.



Comment 4 Fabio Bettoni 2003-08-14 07:05:58 UTC
I think problem is in /lib/tls/libc.so.6 -> libc-2.3.2.so

In the first working system I described in the previous message I have the 
following:
# ldd /usr/bin/rexec
        libc.so.6 => /lib/libc.so.6 (0x4001d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


In the second not working system I have the following:
# ldd /usr/bin/rexec
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

i386 version of glibc does not contain /lib/tls as i686 does

I've tried to update to i386 version to check if it works on a i686 system but 
the whole system crashed and i don't know how to resume.





Comment 5 Jakub Jelinek 2004-09-09 11:40:29 UTC
Well, neither RHL7.3 nor RHL9 is supported anymore.
rexec certainly works for me on various distribution versions
and this report lacks all important details.
It very much depends on various configuration files and firewall settings.
If you suspect NTPL libc (I don't see why it would have anything to
do with rexec), you can LD_ASSUME_KERNEL=2.4.1 or LD_ASSUME_KERNEL=2.2.5
to use a different libc version.
If you manage to reproduce this with a supported release and
provide all relevant configuration files so that it can be reproduced,
please reopen.

Comment 6 dricciardi 2005-06-15 16:31:11 UTC
(In reply to comment #5)
> Well, neither RHL7.3 nor RHL9 is supported anymore.
> rexec certainly works for me on various distribution versions
> and this report lacks all important details.
> It very much depends on various configuration files and firewall settings.
> If you suspect NTPL libc (I don't see why it would have anything to
> do with rexec), you can LD_ASSUME_KERNEL=2.4.1 or LD_ASSUME_KERNEL=2.2.5
> to use a different libc version.
> If you manage to reproduce this with a supported release and
> provide all relevant configuration files so that it can be reproduced,
> please reopen.

I had the same error "rexec: Invalid argument" on my 
RedHat9 and FedoraCore3 systems and I downloaded  
rsh-0.17-24 and rsh-server-0.17-24 from fedora-redhat
updates and finally they work on both the systems without 
any other modification. :-)