From owner-freebsd-emulation Mon Jun 23 18:31:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA12722 for emulation-outgoing; Mon, 23 Jun 1997 18:31:44 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA12715 for ; Mon, 23 Jun 1997 18:31:33 -0700 (PDT) Received: (from msagre@localhost) by cactus.fi.uba.ar (8.8.5/8.8.5) id WAA18552; Mon, 23 Jun 1997 22:33:33 GMT Date: Mon, 23 Jun 1997 22:33:33 +0000 () From: Miguel Angel Sagreras To: emulation@freebsd.org Subject: ORACLE problem with ibcs2_getgroups Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ORACLE can't be installed because the ibcs2_getgroups has a problem when the program wants to find out which are the groups the user belongs to, This is the diff for ibcs2_misc.c which corrects the problem. 583d582 < iset = stackgap_alloc(&sg, SCARG(uap, gidsetsize)*sizeof(ibcs2_gid_t)); 586,591c585,594 < for (i = 0, gp = SCARG(&sa, gidset); i < retval[0]; i++) < iset[i] = (ibcs2_gid_t)*gp++; < if (retval[0] && (error = copyout((caddr_t)iset, < (caddr_t)SCARG(uap, gidset), < sizeof(ibcs2_gid_t) * retval[0]))) < return error; --- > if (SCARG(uap, gidsetsize)) { > iset = stackgap_alloc(&sg, SCARG(uap, gidsetsize)* > sizeof(ibcs2_gid_t)); > for (i = 0, gp = SCARG(&sa, gidset); i < retval[0]; i++) > iset[i] = (ibcs2_gid_t)*gp++; > if (retval[0] && (error = copyout((caddr_t)iset, > (caddr_t)SCARG(uap, gidset), > sizeof(ibcs2_gid_t)*retval[0]))) > return error; > } Miguel Angel From owner-freebsd-emulation Mon Jun 23 19:44:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA16230 for emulation-outgoing; Mon, 23 Jun 1997 19:44:19 -0700 (PDT) Received: from kithrup.com (kithrup.com [205.179.156.40]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA16225 for ; Mon, 23 Jun 1997 19:44:17 -0700 (PDT) Received: (from sef@localhost) by kithrup.com (8.6.8/8.6.6) id TAA07504; Mon, 23 Jun 1997 19:44:12 -0700 Date: Mon, 23 Jun 1997 19:44:12 -0700 From: Sean Eric Fagan Message-Id: <199706240244.TAA07504@kithrup.com> To: emulation@FreeBSD.ORG, msagre@cactus.fi.uba.ar Subject: Re: ORACLE problem with ibcs2_getgroups Sender: owner-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I have no idea what this code is trying to do. (The original code, that is.) Well, okay, I think I understand it now. However... according to the SCO system I just checked (which, admittedly, is not SysVr3.2, which is what the original iBCS2 stuff was based on): if getgroups() is called with a first parameter of 0, it is supposed to return the number of supplemental groups, although it won't set any. Your patch does not allow that. (For that matter, I don't think the old one did, either ;).) Instead, the code should check for SCARG(uap, gidsetsize) being 0, and, if so, it should set SCARG(&sa, gidsetsize) to NGROUPS_MAX * sizeof(gid_t). Without looking at it more, I think that Oracle is checking to see how much space it should allocate for the supplementary groups, but passing in a size of 0 is causing our getgroups() routine to return an error. But I haven't looked at it too closely yet, so I could be wrong. Sean. From owner-freebsd-emulation Tue Jun 24 09:08:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA22260 for emulation-outgoing; Tue, 24 Jun 1997 09:08:07 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA22161 for ; Tue, 24 Jun 1997 09:06:55 -0700 (PDT) Received: (from msagre@localhost) by cactus.fi.uba.ar (8.8.5/8.8.5) id NAA20268; Tue, 24 Jun 1997 13:09:01 GMT Date: Tue, 24 Jun 1997 13:09:01 +0000 () From: Miguel Angel Sagreras To: Sean Eric Fagan cc: emulation@FreeBSD.ORG Subject: Re: ORACLE problem with ibcs2_getgroups In-Reply-To: <199706240244.TAA07504@kithrup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Jun 1997, Sean Eric Fagan wrote: > Without looking at it more, I think that Oracle is checking to see how much > space it should allocate for the supplementary groups, but passing in a size > of 0 is causing our getgroups() routine to return an error. Yes. You are right. Miguel Angel From owner-freebsd-emulation Thu Jun 26 17:22:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA22175 for emulation-outgoing; Thu, 26 Jun 1997 17:22:50 -0700 (PDT) Received: from mail-relay.ubc.ca (mail-relay.ubc.ca [137.82.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA22170 for ; Thu, 26 Jun 1997 17:22:46 -0700 (PDT) Received: from ubc.ca (gafs.geop.ubc.ca [137.82.49.1]) by mail-relay.ubc.ca (8.7.6/8.7.3) with SMTP id RAA11569 for ; Thu, 26 Jun 1997 17:22:44 -0700 (PDT) Received: from wrang.ubc.ca (wrang.ARPA) by ubc.ca (4.1/1.14) id AA16794; Thu, 26 Jun 97 17:22:43 PDT Received: by wrang.ubc.ca (SMI-8.6/SMI-SVR4) id RAA15055; Thu, 26 Jun 1997 17:22:41 -0700 Date: Thu, 26 Jun 1997 17:22:41 -0700 From: amor@geop.ubc.ca (John Amor) Message-Id: <199706270022.RAA15055@wrang.ubc.ca> To: freebsd-emulation@FreeBSD.ORG Subject: MATLAB fails in startup X-Sun-Charset: US-ASCII Sender: owner-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I am tring to get matlab to run under FreeBSD currently running; 2.2.2 FreeBSD system 2.2-970621 kernel (not critical as using lkm) 2.2-970621 lkm for linux 2.2-970621 linux_lib-2.4 The initial matlab X window pops up ok and goes away but the following error kills matlab. >>> wavelet.geop.ubc.ca 83 /wave/amor> matlab >>> >>> < M A T L A B (R) > >>> (c) Copyright 1984-96 The MathWorks, Inc. >>> All Rights Reserved >>> Version 5.0.0.4064 >>> Nov 15 1996 >>> >>> MATLAB cannot be started. >>> Invalid returned data from license server (-12,16) >>> >>>------------------------------------------------------------------ >>>>>>>> MATLAB did not start due to a license manager problem. <<<<< >>> >>> For troubleshooting help see the README file in the >>> $MATLAB/etc directory. As a last resort you can execute >>> the script, $MATLAB/etc/lmdebug. A part of the ktrace shows; >>> ... >>> 785 matlab CALL #91(0x10487000,0x2000) >>> 785 matlab RET #91 0 >>> 785 matlab CALL old.recv(0x3,0xefbfd188) >>> 785 matlab RET old.recv 0 >>> 785 matlab CALL write(0x4,0xefbfd2ec,0x93) >>> 785 matlab GIO fd 4 wrote 147 bytes >>> "h\M-{13amor\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0wavelet.geop.ubc.ca\0\0\0\ >>> \0\0\0\0\0\0\0\0\0\0\0MLM\0\0\0\0\0\0\0\0/dev/ttyp1\0\0\0\0\0\0\0\0\0\ >>> \0\0\0\0\0\0\0\0\0\0\0\0\0\0T\0\0\0\0\0\0\0\0\0\0\0\000785\0\0\0\0\0\0\ >>> \0\0i86_l1\0\0\0\0\0\0\0\^E\0\0\0\0\0\0\0" >>> 785 matlab RET write 147/0x93 >>> 785 matlab CALL obs_vread(0xe,0xefbfd168,0xefbfd158) >>> 785 matlab RET obs_vread 0 >>> 785 matlab CALL bind(0,0x86632e0,0x86632f0) >>> 785 matlab RET bind 0 >>> 785 matlab CALL mincore(0xefbfd150,0xefbfd148) >>> 785 matlab RET mincore 0 >>> 785 matlab CALL setpgid(0xefbfd14c) >>> 785 matlab RET setpgid 1 >>> 785 matlab CALL mincore(0xefbfd150,0xefbfd148) >>> 785 matlab RET mincore 0 >>> 785 matlab CALL obs_vread(0xe,0xefbfd168,0xefbfd158) >>> 785 matlab RET obs_vread 0 >>> 785 matlab CALL bind(0,0x86632f0,0) >>> 785 matlab RET bind 0 >>> 785 matlab CALL mincore(0xefbfd16c,0xefbfd164) >>> 785 matlab RET mincore 0 >>> 785 matlab CALL mincore(0xefbfd0fc,0xefbfd0f4) >>> 785 matlab RET mincore 0 >>> 785 matlab CALL setpgid(0xefbfd0f8) >>> 785 matlab RET setpgid 1 >>> 785 matlab CALL mincore(0xefbfd0fc,0xefbfd0f4) >>> 785 matlab RET mincore 0 >>> 785 matlab CALL read(0x4,0xefbfd258,0x93) >>> 785 matlab GIO fd 4 read 147 bytes >>> "W\M^G-60\0\M-|\M^@\0\0\M^M0\M-o\M^?\M-||3\M-0o\M-9@\M^@\^P\M^B3\M-0o\ >>> \M-9@@\^P\M^G\M-ox\^Sd\M-ox\^Sh\M^?\0\0\b\0\0\0\b\M^?\0\0\b\M-p\^VL\0\ >>> \M-o~p\\\M-o\M^?\M-}@\M-o\M^?\M-}8\0\0\M-S\M-,\0\0\^CD\0\0\0\^C\0\0\0\ >>> \0\M-o\M^?\M-|\M-P\0\0\M-S\M-\\0\0\0\^C\0\0\0\0\M-o\M^?\M-|\M-h\0\0\ >>> \M^^\M-L\0\0\0\0\0\^A\M^[\M^@@\M^P\^P\M^C\0\0\M-@\0@@\^P\M^@\0\0\M-S\ >>> \M-,\0\0\M-S\M-0\M^?\0\0\b\0\0\0\b\M^?\0\0" >>> 785 matlab RET read 147/0x93 >>> 785 matlab CALL close(0x4) >>> 785 matlab RET close 0 >>> 785 matlab CALL old.recv(0xd,0xefbfd190) >>> 785 matlab RET old.recv -1 errno -9 Unknown error: -9 >>> 785 matlab CALL close(0xffffffff) >>> 785 matlab RET close -1 errno -9 Unknown error: -9 >>> 785 matlab CALL obs_vread(0xe,0xefbfd168,0xefbfd158) >>> 785 matlab RET obs_vread 0 >>> 785 matlab CALL bind(0,0x8663300,0) >>> 785 matlab RET bind 0 >>> 785 matlab CALL write(0x1,0x1069f000,0x1a) >>> 785 matlab GIO fd 1 wrote 26 bytes >>> "MATLAB cannot be started. >>> " >>> 785 matlab RET write 26/0x1a >>> 785 matlab CALL write(0x1,0x1069f000,0x33) >>> 785 matlab GIO fd 1 wrote 51 bytes >>> "Invalid returned data from license server (-12,16) >>> " >>> ... Anyone have a suggestion or an idea why this might happen? Thanks, John ---------------------------------------------------------------------------- John Amor -- Systems Manager -- Geophysical Research Processing Facility amor@eos.ubc.ca (604) 822-6933 Department of Earth and Ocean Sciences http://www.geop.ubc.ca/~amor/amor.html University of British Columbia, Canada ----- End Included Message ----- From owner-freebsd-emulation Thu Jun 26 21:56:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA04109 for emulation-outgoing; Thu, 26 Jun 1997 21:56:47 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA04104 for ; Thu, 26 Jun 1997 21:56:43 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id OAA10111; Fri, 27 Jun 1997 14:26:16 +0930 (CST) From: Michael Smith Message-Id: <199706270456.OAA10111@genesis.atrad.adelaide.edu.au> Subject: Re: MATLAB fails in startup In-Reply-To: <199706270022.RAA15055@wrang.ubc.ca> from John Amor at "Jun 26, 97 05:22:41 pm" To: amor@geop.ubc.ca (John Amor) Date: Fri, 27 Jun 1997 14:26:16 +0930 (CST) Cc: freebsd-emulation@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk John Amor stands accused of saying: > > I am tring to get matlab to run under FreeBSD currently running; Hi John, I got your earlier message, but haven't had a chance to reply properly yet. Can you tell me what the output of 'lmhostid' is on your system? (It should have come with matlab). Also, what sort of license are you using? (Node locked, floating, etc?) My initial suspicion is that the license manager is having a bad day; what does the README and the lmdiag stuff look like? -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[