Gradle 1.12 on FreeBSD fails with "Cannot accept connection from remote address"

I’m running my build in a FreeBSD jail which does not have a loopback address, localhost host resolves to On upgrading to 1.12 or 2.0 I get the error below:

$ ./gradlew clean
:buildSrc:compileJava UP-TO-DATE
Cannot accept connection from remote address /
:buildSrc:compileGroovy FAILED
  FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':compileGroovy'.
> Unable to connect to the child process 'Gradle Compiler Daemon 1'.
  It is likely that the child process have crashed - please find the stack trace in the build log.
  This exception might occur when the build machine is extremely loaded.
  The connection attempt hit a timeout after 120.0 seconds (last known process state: STARTED, running: true).
  * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Possible regression ?

Full debug:

Thanks for the report. There were some changes to our native-platform integration in 1.12 that could have introduced this regression.

I’ve raised GRADLE-3121 to track this. It will be at least a few weeks before we’re able to have a closer look.

Any news on when this might be fixed?