From owner-freebsd-emulation Fri Sep 25 11:52:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA19749 for freebsd-emulation-outgoing; Fri, 25 Sep 1998 11:52:55 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA19739 for ; Fri, 25 Sep 1998 11:52:50 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id LAA00615; Fri, 25 Sep 1998 11:56:23 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199809251856.LAA00615@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: John Fieber cc: Mike Smith , emulation@FreeBSD.ORG Subject: Re: Running Sybase... In-reply-to: Your message of "Fri, 25 Sep 1998 11:27:28 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 25 Sep 1998 11:56:23 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > 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