Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-27 Thread Matthias Andree
Just so we have pointers in the public archives: alternatives to truss are strace (in ports) and ktrace/kdump; and to obtain socket statistics, try lsof (from ports, too) possibly with -i and optionally -n and/or -P option. ___ freebsd-net@freebsd.org mai

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-27 Thread Steven Hartland
- Original Message - From: "Matthias Andree" No I'm not its replying to the sender. Yes you are, check your trace: The sendto address and port are the same as the bound address. This is a bug in truss it seems, Bjoern said he's gonna have a look at it. Doesn't matter what you bind to

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-27 Thread Matthias Andree
Am 25.06.2011 13:28, schrieb Steven Hartland: > > - Original Message - From: "Matthias Andree" > > > I'm adding back in -java as based on you comments it may well be > something in the jdk passing invalid values down to the kernel > syscall. > >>> The socket bind works fine and the pack

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Kostik Belousov
On Sat, Jun 25, 2011 at 04:10:34PM +, Bjoern A. Zeeb wrote: > On Jun 25, 2011, at 4:05 PM, Steven Hartland wrote: > > Hi, > > > - Original Message - From: "Bjoern A. Zeeb" > >> Sigh, I'll need to look at that then. > >> I think you are hitting: > >> http://svnweb.freebsd.org/base?vie

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Bjoern A. Zeeb
On Jun 25, 2011, at 4:05 PM, Steven Hartland wrote: Hi, > - Original Message - From: "Bjoern A. Zeeb" >> Sigh, I'll need to look at that then. >> I think you are hitting: >> http://svnweb.freebsd.org/base?view=revision&revision=220463 >> Can you apply that to your kernel, and see if that

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Steven Hartland
- Original Message - From: "Bjoern A. Zeeb" Sigh, I'll need to look at that then. I think you are hitting: http://svnweb.freebsd.org/base?view=revision&revision=220463 Can you apply that to your kernel, and see if that helps? Had to modify the patch slightly for 8.2-RELEASE but yes

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Bjoern A. Zeeb
>> This doesn't seen to be related to the above as 3800::10:0:0:0 is >> not a v4-mapped-v6 address. Now there could be the problem really. >> Do you know which address the code above was trying to talk with? > > I'm wondering if thats a decode error by truss, as it doesn't seem > to corrispond to

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Steven Hartland
- Original Message - From: "Bjoern A. Zeeb" To: "Steven Hartland" Cc: Sent: Saturday, June 25, 2011 10:27 AM Subject: Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send On Jun 24, 2011, at 9:11 PM, Steven Hartland wrote: Hi, We're trying

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Steven Hartland
- Original Message - From: "Matthias Andree" I'm adding back in -java as based on you comments it may well be something in the jdk passing invalid values down to the kernel syscall. The socket bind works fine and the packets sent to the server arrive and are processed by the app but

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-25 Thread Bjoern A. Zeeb
On Jun 24, 2011, at 9:11 PM, Steven Hartland wrote: Hi, > We're trying to get our machines IPv6 enabled but in doing so this > seems to break java apps using openjdk6 for UDP sends. One of the clues I can give you is: http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html it's old(er) an

Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send

2011-06-24 Thread Matthias Andree
Removing -java@ list because the VM is an application on top of the kernel's network stack, and the issue isn't Java-specific. Am 24.06.2011 23:11, schrieb Steven Hartland: > We're trying to get our machines IPv6 enabled but in doing so this > seems to break java apps using openjdk6 for UDP sends.