JDK-7125722 : Crash in PlainSocketImpl.socketBind [macosx]
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7u4
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2011-12-29
  • Updated: 2012-03-27
  • Resolved: 2012-03-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u4 b11Fixed
Related Reports
Relates :  
Starting a special build 7u4 b200 with Tonga, I'm getting a crash on the start somewhere in socketBind (and deeper, in libnet and libjvm).

Crash log attached.

Note that the crash is here even without closed part (for instance when I use binaries created on my machine just from jdk7u-osx sources).

Mac OS X 10.7.2, macmini4,1
To reproduce, you can just start "$this_build/bin/java -cp tonga.jar Tonga"

EVALUATION in the initial fix I tried to re-use the global jfieldid that was initialized elsewhere in the networking native code. However, this call site was not being initialized in time for the usage in ServerSocket.bind(). So, the bind() was failing unless NetworkInterface was initialized first.

EVALUATION Also reported here: http://mail.openjdk.java.net/pipermail/macosx-port-dev/2011-December/001912.html