DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02

Joe Lin jlin at
Mon Feb 1 22:42:32 UTC 2010

Did a struss and the error happened with sendmsg call:

sendmsg(0x4,0x7fffffbfe580,0x0,0x1,0x2,0x830c17de8) ERR#22 'Invalid argument'

-----Original Message-----
From: Pieter de Goeje [mailto:pieter at] 
Sent: Monday, February 01, 2010 3:08 AM
To: freebsd-java at
Cc: Joe Lin
Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02

On Monday 01 February 2010 02:08:55 Joe Lin wrote:
> Thanks for the reply. I looked at JDK source code and it appears that the
> JNI call should be in
> J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0():
> There's only linux and solaris #ifdef but not for BSD. I wonder how/what
> BSD is calling. Since I'm getting a "IOException:Invalid argument" so I
> guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD does
> not return an EINVAL. So the Diablo port must be calling a writev(). But I
> could not locate the source code. Wish I can find out what went wrong with
> dialblo VM.

You could use ktrace/kdump to find out what it (not?) calls and why it dies.

- Pieter

No virus found in this incoming message.
Checked by AVG - 
Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/30/10 22:39:00

More information about the freebsd-java mailing list