From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,30f4c8a1111be150,start X-Google-Attributes: gidfee84,public X-Google-Thread: f66ab,30f4c8a1111be150,start X-Google-Attributes: gidf66ab,public From: fpermuy@roble.datsi.fi.upm.es (Fernando Bellas Permuy ) Subject: Problems with netmsgserver Date: 1995/08/01 Message-ID: <3vl3ln$c7o@panoramix.fi.upm.es> X-Deja-AN: 107284865 distribution: world sender: fpermuy@roble (Fernando Permuy ) organization: Dpto. Arquitectura. Universidad Politecnica de Madrid newsgroups: comp.unix.osf.osf1,comp.os.mach I'm working with OSF/1 for i386. My computer is a 486 and the OSF/1 version is: OSF1 1.2 osc1.2-MK5.0.2 i386. I'm working with Mach 3.0, writing clients and servers which run in differents computers (linked by a network). I'm trying to install "netmsgserver", a name server which it comes with the standard installation. This server can send messages by the network. To install properly "netmsgserver" there are to take into account how Mach 3.0 works. The "Mach 3.0 Server Writer's Interfaces", appendix C Service Server, explains very well this point. This handook says: Each task inherits a set of registered ports upon creation (mach_port_registers). These are (send rights) for the name server, an environment server and the service server. All tasks in the system are intented to share the same name server, whereas different groups of tasks may have private environmet servers. All tasks need access to the same name server. Given a task whose registered name server port names the name server, all tasks derived from that task will inherit the port and share access to the name server. Unfortunately, being a task itself, the name server intializes itself after certain other tasks (such as the init process, /etc/init) run. Thus, most tasks, which derive indirectly from the init task will be missing the name server (and environmment server) port. Because of this, the port for the name server and environment server must be created (and registered with the init process) before the servers the ports name exist. This mechanism is provided by the "service" server. The privileged server is "mach_init". I installed "mach_init" in "/mach_servers", and therefore, when the operating system starts, runs "/mach_init". I did some "ls -l"'s to some important programs: 1.- Let us see "ls -l /etc/init": lrwxrwxrwx 1 root 19 10 Jul 20 13:06 /etc/init -> /sbin/ init 2.- "ls -l /sbin/init": -rwxr-xr-x 1 bin bin 114866 Dec 7 1992 /sbin/init 3.- "ls -l /mach_servers/mach_init": -rwxr-xr-x 1 root wheel 112286 Jul 20 13:00 /mach_servers/mach_ init When I start the computer, without typing anything in the "boot:", "/mach_servers/mach_init" runs. If you type "ps -A", the output is: PID TTY STAT TIME COMMAND 0 ?? 21:46.55 [OSF/1 server] 1 ?? 0:00.11 init -xx 2 ?? 2:28.22 /mach_servers/mach_init -xx 17 ?? 0:00.01 /sbin/cfgmgr -a 20 ?? 0:00.19 /sbin/update 61 ?? 0:00.01 /sbin/syslogd 66 ?? 0:00.04 /sbin/named 87 ?? 0:00.00 /usr/sbin/strerr 93 ?? 0:00.01 /usr/sbin/portmap 95 ?? 0:00.01 /usr/sbin/mountd 99 ?? 0:00.00 -nfsd.udp (nfsd) 100 ?? 0:00.00 -nfsd.udp (nfsd) 101 ?? 0:00.00 -nfsd.udp (nfsd) 102 ?? 0:00.00 -nfsd.udp (nfsd) 103 ?? 0:00.00 /usr/sbin/nfsiod 4 104 ?? 0:00.01 -nfsd.tcplistener (nfsd) 105 ?? 0:00.01 /usr/sbin/nfsiod 4 106 ?? 0:00.00 /usr/sbin/nfsiod 4 107 ?? 0:00.00 /usr/sbin/nfsiod 4 123 ?? 0:00.01 -accepting connections (sendmail) 124 ?? 0:00.07 /usr/sbin/inetd 130 ?? 0:00.07 /usr/sbin/cron 142 ?? 0:00.02 /usr/sbin/writesrv 148 ?? 0:00.01 /usr/sbin/lpd 153 ?? 0:00.04 /usr/bin/X11/xdm -config /usr/lib/X11/xdm/xdm-c 155 ?? 0:00.79 /usr/bin/X11/Xvga -su -config /usr/lib/X11/Xcon 157 ?? 0:00.09 -:0 (xdm) 161 ?? 0:00.30 telnetd 156 console + 0:00.18 /usr/sbin/getty console console at386 163 pts/0 0:00.51 -csh (csh) 181 pts/0 0:00.80 -u (csh) 202 pts/0 + 0:00.06 ps -A As how can you see, "mach_init" is runnig !!!. But if I rename "/sbin/rc3.d/_S90netmsgserver" to "/sbin/rc3.d/S90netmsgserver", and I start the computer, "netmsgserver" fails, and the operating system starts in debugger mode, with the following error messages: netname_init.netname_ckeck_in fails, kr = -303 Panic: netname_init fails log dumped kernel: Page fault trap, code=c1990000 eip=c0110b0e esp=c3133f30 stopped at _ipc_port_destroy+0xfa[ipc_port.o]: movl 0(%ecx), %edx In fact, if I execute this short program, it seems that "mach_init" is not well installed: test.c: ----------------------------------------------------------------------------- #include #include void main (void) { if (MACH_PORT_VALID(service_port)==FALSE) puts("Problems ..."); } ----------------------------------------------------------------------------- The output is "Problems ...". Can somebody help me ? Thanks in advance, Fernando. (e-mail address: fpermuy@roble.datsi.fi.upm.es)