Subject: port-i386/10348: a.out Emulation: Resolving does not work
To: gnats-bugs <gnats-bugs@gnats.netbsd.org>
From: Andreas Horneffer <Driss@hadii512.hadiko.uni-karlsruhe.de>
List: netbsd-bugs
Date: 06/12/2000 13:55:14
>Number:         10348
>Category:       port-i386
>Synopsis:       IP-address resolving of a.out-binaries fails with a.out-e=
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 12 13:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Horneffer
>Release:        Sat May 27, 2000
>Organization:
Unorganized
>Environment:
AMD-K6, NetBSD-i386 1.4Z; 1.4.2 libraries in /emul/aout/u=
sr/lib
>Description:
IP-Address resolving of a.out-binaries fails with the
a.out-emulation of NetBSD 1.4Z. I tested it with the a.out-versions of dn=
etc,
ircII and socket, but I believe all a.out-binaries are affected.

>How-To-Repeat:
Just try to use a hostname in an a.out binary with an
ELF-Kernel. E.g.:

 cypresse% file `which socket`
 /usr/pkg/bin/socket: NetBSD/i386 demand paged dynamically linked executa=
ble
 cypresse% socket i512.hadiko.de quote
 socket: unknown host i512.hadiko.de
 cypresse%

Meanwhile on the Network:

 tcpdump: listening on ne0
 23:46:34.870660 172.20.54.132.64406 > 172.20.32.1.53:  25485+ A? i512.ha=
diko.de. (32)
 23:46:34.874729 172.20.32.1.53 > 172.20.54.132.64406:  25485* 1/2/2 A 17=
2.20.44.132 (152) (DF)

(172.20.54.132 =3D cypresse; 172.20.32.1 =3D Nameserver)

>Fix:
Use IP-address instead of hostname. E.g.:

 cypresse% socket 172.20.44.132 quote
 Ei t=E4st=E4 pidot parane, ellei vierahat v=E4hene.
 cypresse%

Gru=DF, Andreas

----
Andreas Horneffer  Andreas.Horneffer@hadiko.de (No Mails >16KB!)

>Release-Note:
>Audit-Trail:
>Unformatted:
 mulation
 >System: NetBSD cypresse 1.4Z NetBSD 1.4Z (GENERIC) #12: Sat May 27 16:55=
 :41 PDT 2000 root@swinger:/u1/snapshots/src/sys/arch/i386/compile/GENERIC=
  i386