JDK-4939977 : Inet4AddressImpl.getLocalHostName is hanging intermittenly
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8.0pe,1.4.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • OS:
    linux_redhat_8.0,windows_2003,windows_xp linux_redhat_8.0,windows_2003,windows_xp
  • CPU: x86
  • Submitted: 2003-10-18
  • Updated: 2015-01-13
  • Resolved: 2015-01-13
Description
###@###.### 2003-10-17

When running CORBA tests against S1AS 8.0 certain tests used to hang intermittenly - bug 4913449 . On investigation the cause of the hang was narrowed down to java.net.Inet4AddressImpl.getLocalHostName . See bug 4913449 for more details, thread dumps and a simple test to reproduce the problem. 


Comments
EVALUATION This is unlikely to be a JDK bug. Inet4AddressImpl.getLocalHostName() just calls the OS gethostname() function. If this function hangs then it is almost certainly an OS issue. I could not reproduce it on Win2003, though it is probably timing dependent. See bug 4653680 for a similar report. Can you reproduce this on Linux, because we have not seen this on any OS other than Windows so far? ###@###.### 2003-11-26
2003-11-26