[RFR] 8219640: UnresolvedAddressException not thrown for incorrect hostname
Chris Hegarty
chris.hegarty at oracle.com
Tue Sep 3 16:35:41 UTC 2019
> On 3 Sep 2019, at 17:29, Chris Hegarty <chris.hegarty at oracle.com> wrote:
> ...
> Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-54-generic x86_64)
>
> * Documentation: https://help.ubuntu.com
> * Management: https://landscape.canonical.com
> * Support: https://ubuntu.com/advantage
> ...
> $ uname -a
> Linux chegar 4.15.0-54-generic #58~16.04.1-Ubuntu SMP Mon Jun 24 13:21:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
>
> $ ~/binaries/jdk-11/bin/jshell
> | Welcome to JShell -- Version 11
> | For an introduction type: /help intro
>
> jshell> java.net.InetAddress.getByName("127.0.0.1 tttt")
> $1 ==> 127.0.0.1 tttt/127.0.0.1
>
From the same Linux system:
$ ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu11) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
$ lsof -p $$ | grep libc
bash 23087 chhegar mem REG 253,0 1868984 1443412 /lib/x86_64-linux-gnu/libc-2.23.so
$ /lib/x86_64-linux-gnu/libc-2.23.so --version
GNU C Library (Ubuntu GLIBC 2.23-0ubuntu11) stable release version 2.23, by Roland McGrath et al.
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 5.4.0 20160609.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.
-Chris.
More information about the net-dev
mailing list