{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3120","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3120/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3120/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3120/events","html_url":"https://github.com/travis-ci/travis-ci/issues/3120","id":54602112,"number":3120,"title":"Getting local hostname with IPv4 on Docker crashes OpenJDK with buffer overflow","user":{"login":"travisbrown","id":316049,"avatar_url":"https://avatars.githubusercontent.com/u/316049?v=3","gravatar_id":"","url":"https://api.github.com/users/travisbrown","html_url":"https://github.com/travisbrown","followers_url":"https://api.github.com/users/travisbrown/followers","following_url":"https://api.github.com/users/travisbrown/following{/other_user}","gists_url":"https://api.github.com/users/travisbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/travisbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisbrown/subscriptions","organizations_url":"https://api.github.com/users/travisbrown/orgs","repos_url":"https://api.github.com/users/travisbrown/repos","events_url":"https://api.github.com/users/travisbrown/events{/privacy}","received_events_url":"https://api.github.com/users/travisbrown/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/java","name":"java","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-16T17:31:06Z","updated_at":"2015-12-15T15:25:34Z","closed_at":"2015-12-15T15:25:33Z","body":"I've got the following simple configuration:\r\n\r\n```\r\nsudo: false\r\nlanguage: java\r\njdk: openjdk7\r\nscript: javac Test.java && java -Djava.net.preferIPv4Stack=true Test\r\n```\r\n\r\nWhere [`Test.java`](https://github.com/travisbrown/travis-ci-sandbox/blob/java/openjdk7-ipv4/Test.java) just calls `InetAddress.getLocalHost().getHostName()`. This crashes the Travis CI build with a [buffer overflow](https://travis-ci.org/travisbrown/travis-ci-sandbox/builds/47270766).\r\n\r\nRemoving `sudo: false` makes it work just fine, as does using any of the Oracle JDKs, but I need to test against OpenJDK and I'd like to use the container-based infrastructure."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/164797511","html_url":"https://github.com/travis-ci/travis-ci/issues/3120#issuecomment-164797511","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3120","id":164797511,"user":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T15:25:33Z","updated_at":"2015-12-15T15:25:33Z","body":"I think this was reported again as #5227. I'm closing this one, since the other issue has more info."}}