Subject: Re: ipc errors/Linux Emulation NetBSD-3BETA using Oracle
To: , <current-users@netbsd.org>
From: GNMJLR@terra.es <GNMJLR@terra.es>
List: current-users
Date: 11/02/2005 04:31:18
>----Mensaje original----
>De: christos@astron.com
<Recibido:=20
02/11/2005 2:28
>Para: <current-users@netbsd.org>
>Asunto: Re: ipc=20
errors/Linux Emulation NetBSD-3BETA using Oracle
>
>Try to recompile=20
with a different MAX_SOPS define in <sys/sem.h> It is
>currently 5. You=20
might want to add a debugging message to see how much
>is needed. If=20
you need help doing that, please let me know.
>
>christos

I  have=20
resolved the problem with the arguments, but there are others=20
remaining:

I had to increase MAX_SOPS to 53.
I activated the debug=20
defining SEM_DEBUG (options SEM_DEBUG).

I obtain the next bugs:

In=20
the output of the Oracle Server process:
........
skgm error 27121:=20
errno =3D 22, info =3D 1, 851968, 0, 0
OPIRIP: Uncaught error 1034. Error=20
stack:
ORA-01034: ORACLE not available
ORA-27121: unable to determine=20
size of shared memory segment
Linux Error: 22: Invalid argument

From=20
the output of ktruss I can see these errors:
(The 1182 is the server=20
process. It is a child of the 1144 process)
It fails with setsid call
.............
  1182 oracle   RET   rt_sigprocmask 0
  1182 oracle  =20
CALL  rt_sigaction(0x17,0xbfbf8ad4,0xbfbf8a44,8)
  1182 oracle   RET  =20
rt_sigaction 0
  1182 oracle   CALL  rt_sigprocmask(1,0xbfbf8e24,0,8)
 =20
1182 oracle   RET   rt_sigprocmask 0
  1182 oracle   CALL  setsid
 =20
1182 oracle   RET   setsid -1 errno -1 Operation not permitted
  1182=20
oracle   CALL  chdir(0xbfbfe294)
  1182 oracle   NAMI =20
"/emul/linux/usr/oracle/oracle/9.2/dbs"
  1182 oracle   NAMI =20
"/usr/oracle/oracle/9.2/dbs"
  1182 oracle   RET   chdir 0
  1182=20
oracle   CALL  ipc(0x17,0xba941e80,0,0,0)
  1182 oracle   RET   ipc -1=20
errno -2 No such file or directory
  1182 oracle   CALL  ipc(0x17,
0xba941e81,0,0,0)=20
  1182 oracle   RET   ipc -1 errno -2 No such file=20
or directory
  1182 oracle   CALL  ipc(0x17,0xba941e82,0,0,0)
  1182=20
oracle   RET   ipc -1 errno -2 No such file or directory
  1182=20
oracle   CALL  ipc(0x17,0xba941e83,0,0,0)=20
  1182 oracle   RET   ipc -1=20
errno -2 No such file or directory
  1182 oracle   CALL  getuid=20
  1182=20
oracle   RET   getuid 101/0x65
  1182 oracle   CALL  socketcall(1,0
xbfbfbd14)
  1182 oracle   RET   socketcall 8
...........

The output=20
of ipcs -a:

-bash-2.05b$ ipcs -a
IPC status from <running system> as=20
of Wed Nov  2 06:32:32 2005

Message Queues:
T        ID     KEY       =20
MODE       OWNER    GROUP  CREATOR   CGROUP CBYTES  QNUM QBYTES LSPID=20
LRPID    STIME    RTIME    CTIME

Shared Memory:
T        ID    =20
KEY        MODE       OWNER    GROUP  CREATOR   CGROUP NATTCH   SEGSZ =20
CPID  LPID    ATIME    DTIME    CTIME
m    851968 -1164697984 --rw-
r-----   oracle oinstall   oracle oinstall      0 50331648  1182  1182 =20
6:04:34  6:06:39  6:04:34

Semaphores:
T        ID     KEY       =20
MODE       OWNER    GROUP  CREATOR   CGROUP NSEMS    OTIME    CTIME
s  =20
1572864 -1943167800 --rw-r-----   oracle oinstall   oracle oinstall   =20
53 no-entry  6:04:35


The debug output of SEM_DEBUG:

semget(0x0, 1,=20
03600)
need to allocate the semid_ds
semid 0 is available
sembase =3D=20
0xcb0be600, next =3D 0xcb0be60c
call to semctl(1376256, 0, 8, 0xcbc8be40)
call to semctl(1376256, 0, 0, 0x0)
semget(0x0, 53, 03666)
need to=20
allocate the semid_ds
semid 0 is available
sembase =3D 0xcb0be600, next =3D=20
0xcb0be87c
call to semctl(1441792, 0, 0, 0x0)
semget(0x0, 53, 01660)
need to allocate the semid_ds
semid 0 is available
sembase =3D=20
0xcb0be600, next =3D 0xcb0be87c
call to semop(1507328, 0xcbc8bd34, 53)
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be600, s=
em
[0]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be60c, sem[1]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be618, s=
em
[2]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be624, sem[3]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be630, s=
em
[4]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be63c, sem[5]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be648, s=
em
[6]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be654, sem[7]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be660, s=
em
[8]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be66c, sem[9]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be678, s=
em
[10]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be684, sem[11]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be690, s=
em
[12]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be69c, sem[13]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be6a8, s=
em
[14]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be6b4, sem[15]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be6c0, s=
em
[16]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be66c, sem[9]=3D0 : o
p=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be678, s=
em
[10]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be684, sem[11]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be690, s=
em
[12]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be69c, sem[13]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be6a8, s=
em
[14]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be6b4, sem[15]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be6c0, s=
em
[16]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be6cc, sem[17]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be6d8, s=
em
[18]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be6e4, sem[19]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be6f0, s=
em
[20]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be6fc, sem[21]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be708, s=
em
[22]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be714, sem[23]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be720, s=
em
[24]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be72c, sem[25]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be738, s=
em
[26]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be744, sem[27]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be750, s=
em
[28]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be75c, sem[29]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be768, s=
em
[30]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be774, sem[31]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be780, s=
em
[32]=3D0 :
op=3D1, flag=3Dwaitsemop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be78c, sem[33]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be798, s=
em
[34]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be7a4, sem[35]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be7b0, s=
em
[36]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be7bc, sem[37]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be7c8, s=
em
[38]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be7d4, sem[39]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be7e0, s=
em
[40]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be7ec, sem[41]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be7f8, s=
em
[42]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be804, sem[43]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be810, s=
em
[44]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be81c, sem[45]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be828, s=
em
[46]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be834, sem[47]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be840, s=
em
[48]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be84c, sem[49]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be858, s=
em
[50]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be864, sem[51]=3D0 :
op=3D1, flag=3Dwait
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be870, s=
em
[52]=3D0 :
op=3D1, flag=3Dwait
semop:  done
call to semctl(1507328, 0, 0,=20
0x0)
semget(0x8c2d9cc8, 0, 00)
need to allocate the semid_ds
didn't=20
find it and wasn't asked to create it
semget(0x731b3c0c, 0, 00)
need to=20
allocate the semid_ds
didn't find it and wasn't asked to create it
semget(0xf939ae4, 0, 00)
need to allocate the semid_ds
didn't find it=20
and wasn't asked to create it
semget(0xc4a80cac, 0, 00)
need to=20
allocate the semid_ds
didn't find it and wasn't asked to create it
semget(0x8c2d9cc8, 53, 03640)
need to allocate the semid_ds
semid 0 is=20
available
sembase =3D 0xcb0be600, next =3D 0xcb0be87c
call to semctl
(1572864, 1, 8, 0xcbc8be40)
call to semctl(1572864, 2, 8, 0xcbc8be40)
call to semctl(1572864, 0, 8, 0xcbc8be40)
call to semop(1572864,=20
0xcbc8bd34, 1)
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600,=20
semptr=3D0xcb0be870, sem[52]=3D0 :
op=3D-1, flag=3Dwait
semop:  can't do it now
semop:  rollback 0 through -1
semop:  good night!
semop:  good morning=20
(eval=3D-3)!
call to semop(1572864, 0xcbc8bd34, 1)
semop: =20
semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600, semptr=3D0xcb0be870, sem[52]=
=3D0 :
op=3D-1, flag=3Dwait
semop:  can't do it now
semop:  rollback 0 through -1
semop:  good night!
semop:  good morning (eval=3D-3)!
call to semop
(1572864, 0xcbc8bd34, 1)
semop:  semaptr=3D0xcb0bd000,=20
sem_base=3D0xcb0be600, semptr=3D0xcb0be870, sem[52]=3D0 :
op=3D-1, flag=3Dwait
semop:  can't do it now
semop:  rollback 0 through -1
semop:  good=20
night!
semop:  good morning (eval=3D-3)!
call to semop(1572864,=20
0xcbc8bd34, 1)
semop:  semaptr=3D0xcb0bd000, sem_base=3D0xcb0be600,=20
semptr=3D0xcb0be870, sem[52]=3D0 :
op=3D-1, flag=3Dwait
semop:  can't do it now
semop:  rollback 0 through -1
semop:  good night!
semop:  good morning=20
(eval=3D-3)!
call to semop(1572864, 0xcbc8bd34, 1)
..... (it repeats)





Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable.