Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 1998 11:56:23 -0700
From:      Mike Smith <mike@smith.net.au>
To:        John Fieber <jfieber@indiana.edu>
Cc:        Mike Smith <mike@smith.net.au>, emulation@FreeBSD.ORG
Subject:   Re: Running Sybase... 
Message-ID:  <199809251856.LAA00615@dingo.cdrom.com>
In-Reply-To: Your message of "Fri, 25 Sep 1998 11:27:28 CDT." <Pine.BSF.4.02A.9809251112080.1314-100000@fallout.campusview.indiana.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > Sounds like it; a ktrace/linux_kdump of these would be educational in 
> > order to find out where the EINVAL is being returned.
> 
> This is what leads up to the call to write() the error message.
> This is from the isql utility attempting to connect to a known
> working server on another machine.  The same error occurs
> connecting to the local (non-functioning) server either with the
> isql or the administration tool (sybinit).
> 
>   4371 isql     CALL  linux_socketcall(0x3,0xefbfd2d0)
>   4371 isql     RET   linux_socketcall -1 errno -115 Unknown error: -115
>   4371 isql     CALL  ogetrlimit(0x7,0xefbfd18c)
>   4371 isql     RET   ogetrlimit 0
>   4371 isql     CALL  linux_newselect(0x40,0,0xefbfd1cc,0,0xefbfd1c4)
>   4371 isql     RET   linux_newselect 1
>   4371 isql     CALL  linux_socketcall(0x3,0xefbfd2d0)
>   4371 isql     RET   linux_socketcall -1 errno -106 Unknown error: -106
>   4371 isql     CALL  linux_fcntl(0x6,0x4,0x2)
>   4371 isql     RET   linux_fcntl 0
>   4371 isql     CALL  linux_socketcall(0xe,0xefbfd31c)
>   4371 isql     RET   linux_socketcall -1 errno -22 Unknown error: -22

This is the first problem; Linux returns negative errno's (I should 
patch this in linux_kdump), so that's EINVAL as a response to an 
unknown socket request.  You could add a debugging printf() to 
linux_socketcall() in linux_socket.c to print the value of (args->what) 
to work out which call is failing here.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809251856.LAA00615>