https://bz.apache.org/bugzilla/show_bug.cgi?id=59286
Bug ID: 59286 Summary: Socket binding failures when using APR Product: Tomcat 8 Version: 8.0.x-trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Connectors Assignee: dev@tomcat.apache.org Reporter: csuth...@redhat.com Created attachment 33737 --> https://bz.apache.org/bugzilla/attachment.cgi?id=33737&action=edit Exception stack trace When using APR for a connector and trying to bind to an ipv6 address (other than lo ::1 or all ::), the connector fails to initialize with a "[22] Invalid argument" exception. I'm using the default server.xml with the address attribute added on the Connectors to reproduce. I noticed that the error is coming up from the Socket.bind() call, but I wanted to open this with the AprEndpoint in mind because it isn't crashing in the natives. Also note that I am using OpenJDK 8u77 for my testing. This only occurs with APR (NIO/NIO2 seem OK). I'm testing with APR 1.5.2 and OpenSSL 1.0.2g: 07-Apr-2016 12:02:28.415 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.6 using APR version 1.5.2. 07-Apr-2016 12:02:28.415 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 07-Apr-2016 12:02:28.417 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2g-fips 1 Mar 2016) I put a breakpoint on the bind call, but the working (lo) bind and the non-working one look pretty much identical. I am not familiar with network/socket programming, so it's pretty foreign to me. This does occur on tomcat-trunk as well. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org