Debian Bug report logs - #573742
openjdk-6-jre: cannot open socket to localhost

version graph

Package: openjdk-6-jre; Maintainer for openjdk-6-jre is OpenJDK Team <openjdk@lists.launchpad.net>; Source for openjdk-6-jre is src:openjdk-6 (PTS, buildd, popcon).

Reported by: Ximin Luo <xl269@cam.ac.uk>

Date: Sat, 13 Mar 2010 15:12:05 UTC

Owned by: Torsten Werner <twerner@debian.org>

Severity: important

Merged with 574355

Found in version openjdk-6/6b18~pre2-1

Fixed in version 6b18~pre3-1

Done: Matthias Klose <doko@ubuntu.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>:
Bug#573742; Package openjdk-6-jre. (Sat, 13 Mar 2010 15:12:08 GMT) (full text, mbox, link).


Acknowledgement sent to Ximin Luo <xl269@cam.ac.uk>:
New Bug report received and forwarded. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>. (Sat, 13 Mar 2010 15:12:08 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Ximin Luo <xl269@cam.ac.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: openjdk-6-jre: cannot open socket to localhost
Date: Sat, 13 Mar 2010 15:12:48 +0000
[Message part 1 (text/plain, inline)]
Package: openjdk-6-jre
Version: 6b18~pre2-1
Severity: important

Latest update breaks the ability to open a socket to 127.0.0.1, unless
-Djava.net.preferIPv4Stack=true is set. Test code attached, which assumes there
is a service listening on port 80.

also, screwing with net.ipv6.bindv6only (as per #560056) has no effect

$ java network_test 
Opening Socket from 31000 to 80
Unexpected exception opening backend socket: java.net.SocketException: Invalid argument or cannot assign requested address
java.net.SocketException: Invalid argument or cannot assign requested address
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
	at java.net.Socket.connect(Socket.java:542)
	at java.net.Socket.connect(Socket.java:492)
	at java.net.Socket.<init>(Socket.java:389)
	at java.net.Socket.<init>(Socket.java:290)
	at network_test.main(test.java:19)
null

$ java -Djava.net.preferIPv4Stack=true network_test 
Opening Socket from 31000 to 80
Opened Socket from 31000 to 80
Socket[addr=/127.0.0.1,port=80,localport=31000]


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openjdk-6-jre depends on:
ii  dpkg                    1.15.5.6         Debian package management system
ii  libaccess-bridge-java-j 1.26.2-4         Java Access Bridge for GNOME (jni 
ii  libasound2              1.0.22-2         shared library for ALSA applicatio
ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared lib
ii  libgif4                 4.1.6-9          library for GIF images (library)
ii  libjpeg62               6b-16.1          The Independent JPEG Group's JPEG 
ii  libpng12-0              1.2.43-1         PNG library - runtime
ii  libpulse0               0.9.21-1         PulseAudio client libraries
ii  libx11-6                2:1.3.3-1        X11 client-side library
ii  libxext6                2:1.1.1-2        X11 miscellaneous extension librar
ii  libxi6                  2:1.3-3          X11 Input extension library
ii  libxrender1             1:0.9.5-1        X Rendering Extension client libra
ii  libxtst6                2:1.1.0-2        X11 Testing -- Resource extension 
ii  openjdk-6-jre-headless  6b18~pre2-1      OpenJDK Java runtime, using Hotspo
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

openjdk-6-jre recommends no packages.

Versions of packages openjdk-6-jre suggests:
ii  icedtea6-plugin              6b18~pre2-1 web browser plugin based on OpenJD

-- no debconf information
[test.java (text/x-java, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>:
Bug#573742; Package openjdk-6-jre. (Sun, 14 Mar 2010 14:36:14 GMT) (full text, mbox, link).


Acknowledgement sent to mail.twerner@googlemail.com:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>. (Sun, 14 Mar 2010 14:36:14 GMT) (full text, mbox, link).


Message #10 received at 573742@bugs.debian.org (full text, mbox, reply):

From: Torsten Werner <twerner@debian.org>
To: Ximin Luo <xl269@cam.ac.uk>, 573742@bugs.debian.org
Subject: Re: Bug#573742: openjdk-6-jre: cannot open socket to localhost
Date: Sun, 14 Mar 2010 15:35:41 +0100
Hi,

On Sat, Mar 13, 2010 at 4:12 PM, Ximin Luo <xl269@cam.ac.uk> wrote:
> Unexpected exception opening backend socket: java.net.SocketException: Invalid argument or cannot assign requested address
> java.net.SocketException: Invalid argument or cannot assign requested address

thanks for your example. I can reproduce the problem and I'll try to
fix it next week.

Cheers,
Torsten




Owner recorded as Torsten Werner <twerner@debian.org>. Request was from Torsten Werner <twerner@debian.org> to control@bugs.debian.org. (Wed, 17 Mar 2010 18:54:08 GMT) (full text, mbox, link).


Forcibly Merged 573742 574355. Request was from Torsten Werner <twerner@debian.org> to control@bugs.debian.org. (Wed, 17 Mar 2010 20:36:20 GMT) (full text, mbox, link).


Reply sent to Matthias Klose <doko@ubuntu.com>:
You have taken responsibility. (Tue, 23 Mar 2010 14:33:07 GMT) (full text, mbox, link).


Notification sent to Ximin Luo <xl269@cam.ac.uk>:
Bug acknowledged by developer. (Tue, 23 Mar 2010 14:33:08 GMT) (full text, mbox, link).


Message #19 received at 573742-done@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@ubuntu.com>
To: 573742-done@bugs.debian.org
Subject: Re: openjdk-6-jre: cannot open socket to localhost
Date: Tue, 23 Mar 2010 15:29:18 +0100
Version: 6b18~pre3-1

should be fixed; please reopen if appropriate




Reply sent to Matthias Klose <doko@ubuntu.com>:
You have taken responsibility. (Tue, 23 Mar 2010 14:33:09 GMT) (full text, mbox, link).


Notification sent to Luca Tettamanti <kronos.it@gmail.com>:
Bug acknowledged by developer. (Tue, 23 Mar 2010 14:33:09 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 06 May 2010 07:52:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 23:40:42 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.