From owner-freebsd-emulation Thu Jul 8 11:30:14 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from mail1.doit.wisc.edu (mail1.doit.wisc.edu [144.92.9.40]) by hub.freebsd.org (Postfix) with ESMTP id 834AB154E1 for ; Thu, 8 Jul 1999 11:30:02 -0700 (PDT) (envelope-from gabor@acm.org) Received: from [128.104.49.117] by mail1.doit.wisc.edu id NAA64670 (8.9.1/50); Thu, 8 Jul 1999 13:29:49 -0500 Message-ID: <3784EE82.5F76943D@acm.org> Date: Thu, 08 Jul 1999 13:31:30 -0500 From: Gabor Kincses X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: emulation@freebsd.org Subject: Shared memory access error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I'm running Informix 7.30.UC7 with linux_lib-2.6.1 on 3.2-RELEASE. oninit starts and runs fine: -rwsr-sr-- 1 root informix 5210941 Jul 6 14:18 /usr/local/informix/bin/oninit* i.e. it becomes euid 0 and egid 80 (informix). It allocates shared memory segments like: Shared Memory: T ID KEY MODE OWNER GROUP m 524288 1381451777 --rw-rw---- root informix m 524289 1381451778 --rw-rw---- root informix But when I try to run onstat as informix (which attempts to attach to the first segment, with rw-rw---- mode) this is what I get: syscall linux_ipc(0x17,0x52574801,0x0,0x1b0,0x0) errno -13 'Permission denied' I thought onstat might assume some weird euid/egid, but: -rwxr-sr-x 1 informix informix 1421245 Jul 6 14:18 /usr/local/informix/bin/onstat* Is this a bug in informix? I.e. shouldn't onstat attempt to perform an shmget() first with 0x600 and then with 0x060? Ultimately, I would want to run oninit as euid 80 (informix), but I'm currently getting this: Thu Jul 8 12:45:29 1999 12:45:29 Event alarms enabled. ALARMPROG = '/usr/local/informix/etc/log_full.sh' 12:45:29 TIMER VP: Could not redirect I/O in initialization, errno = 13 12:45:29 Assert Failed: TIMER VP: Could not redirect I/O in init 12:45:29 Informix Dynamic Server Version 7.30.UC7 12:45:29 Who: Session(0, @, 0, 0) Thread(0, noname, 0, 0) File: mt.c Line: 10064 12:45:33 See Also: /var/tmp/af.e3b9, shmem.e3b9.0 12:45:34 mt.c, line 10064, thread 0, proc id 4898, TIMER VP: Could not redirect I/O in init. 12:45:34 PANIC: Attempting to bring system down Any thoughts, pointers, RTFM? -- Gabor Kincses (gabor@acm.org) FreeBSD 3.2-RELEASE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message