Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jul 1999 13:31:30 -0500
From:      Gabor Kincses <gabor@acm.org>
To:        emulation@freebsd.org
Subject:   Shared memory access error
Message-ID:  <3784EE82.5F76943D@acm.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3784EE82.5F76943D>