Problem with async subprocesses in Emacs on RS6000/AIX

Problem with async subprocesses in Emacs on RS6000/AIX

Post by Michael Gr » Fri, 20 Sep 1991 05:50:25



[This is a second attempt - apologies if the first one *did* get out]

Can you help me with this?

Back in March I installed Emacs 18.57 on our machine, an RS6000 530
running AIX 3.1.3.  All worked fine until a couple of weeks ago, when
display-time, shell-mode and compilation-mode stopped working (i.e
anything using asynchronous processes).  I can't seem to fix it,
despite recompiling the whole lot.  Some investigation has shown:

1) For shell-mode or compilation-mode, the correct buffer is opened
but nothing happens.  The rest of Emacs continues to work.

2) On exit, Emacs displays:
        Fatal error (1).
or sometimes, after trying to start shell-mode, something like:
        Fatal error (Fatal error (11).).

3) ps shows that a new process has been spawned, but it's still called
emacs and it seems to have hanged. For example:
     UID   PID  PPID   C    STIME    TTY  TIME CMD
     mjg  4253     1   1 17:12:12      0  0:01 -ksh
     mjg 13487 14252   0 10:08:44      0  0:00 emacs
     mjg 14252  4253   0 10:08:39      0  0:06 emacs
     mjg 16904  4253   7 10:20:15      0  0:00 ps -f

4) Some debugging (which I'm not really qualified to do, but I had a
go!) showed that after spawning in child-process, the child process
seemed to hang when trying to re-open the slave side of its pty (I
think - process.c isn't easy for a novice!).

5) The only thing I did that may have coincided with the start of this
problem was to run sysck and add some devices to the sysck database.
Maybe the permissions for the pty0 devices are now wrong?  They are:

drwxrwxr-x   2 root     system      2560 17 Sep 17:12 /dev
crw-rw-rwT   1 root     system    19,  0 02 Jan 1970  /dev/ptc
crw-rw-rwT   1 root     system    18,  0 02 Jan 1970  /dev/pts
lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ptyp0 -> /dev/ptc
        :                                       :
lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ptypf -> /dev/ptc
crw-rw-rw-   1 root     system     1,  0 17 Sep 17:34 /dev/tty
lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ttyp0 -> /dev/pts
        :
lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ttypf -> /dev/pts

Any help sorting this one out will be gratefully received.
With thanks
+---------------------------------------+---------------------------+

| Machines & Power Electronics Group        | Tel   : +44 223 332798    |
| Cambridge University Engineering Dept | Fax   : +44 223 332662    |
+---------------------------------------+---------------------------+

 
 
 

Problem with async subprocesses in Emacs on RS6000/AIX

Post by Charles Hann » Sat, 21 Sep 1991 02:56:05


   2) On exit, Emacs displays:
           Fatal error (1).
   or sometimes, after trying to start shell-mode, something like:
           Fatal error (Fatal error (11).).

(Oops.  It caught an error it doesn't have a name for and SEGV'd
itself.  B-) RMS does *not* know AIX very well--or at all, I think.)

   5) The only thing I did that may have coincided with the start of this
   problem was to run sysck and add some devices to the sysck database.
   Maybe the permissions for the pty0 devices are now wrong?  They are:

   drwxrwxr-x   2 root     system      2560 17 Sep 17:12 /dev
   crw-rw-rwT   1 root     system    19,  0 02 Jan 1970  /dev/ptc
   crw-rw-rwT   1 root     system    18,  0 02 Jan 1970  /dev/pts
   lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ptyp0 -> /dev/ptc
           :                                    :
   lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ptypf -> /dev/ptc
   crw-rw-rw-   1 root     system     1,  0 17 Sep 17:34 /dev/tty
   lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ttyp0 -> /dev/pts
           :
   lrwxrwxrwx   1 root     system         8 03 Sep 09:58 /dev/ttypf -> /dev/pts

This is dead wrong!  It should look more like:

   drwxrwxr-x   2 root     system      2560 17 Sep 17:12 /dev
   crw-rw-rwT   1 root     system    19,  0 02 Jan 1970  /dev/ptc
   crw-rw-rwT   1 root     system    18,  0 02 Jan 1970  /dev/pts
   lrwxrwxrwx   1 root     system        10 03 Sep 09:58 /dev/ptyp0 -> /dev/ptc/0
           :                                    :
   lrwxrwxrwx   1 root     system        11 03 Sep 09:58 /dev/ptypf -> /dev/ptc/15
   crw-rw-rw-   1 root     system     1,  0 17 Sep 17:34 /dev/tty
   lrwxrwxrwx   1 root     system        10 03 Sep 09:58 /dev/ttyp0 -> /dev/pts/0
           :
   lrwxrwxrwx   1 root     system        11 03 Sep 09:58 /dev/ttypf -> /dev/pts/15

Please delete your /dev/ptyp* and /dev/ttyp* files, type 'smit pty',
and do it the right way.

Any, Emacs should not be using the old BSD PTY naming conventions.  I
will make sure this is fixed in version 19.  (I might be encouraged to
post patches for version 18 if anyone is interested.)
--

 
 
 

1. Help on Compiling Emacs on AIX (RS6000)

     ...  ...

0706-244 ERROR: No entry point or export symbols were found
         following garbage collection.

boy, does that sound familiar!


me just yesterday:

1. modify src/ymakefile to use -O, and not -g

unfortunately,
        cc -O -Demacs  -D_BSD  -c data.c
generated an error:
xlc: 1501-229 Compilation ended due to lack of space

skipping optimization for this one routine worked, however.

2. use cc rather than ld to link. (you can remove the reference to -lc)

3. also, I couldn't get the loader to find alloca().

 explicitly including the version thoughtfully provided with the gnuemacs
 distribution finally worked.

the posting:
         use of alloca and optimization under XL C on AIX 3.1

in this newsgroups seems to report a similar problem.

4. I haven't tried the X emulator yet, since eliot seemed to indicate
he was having problems.  stay tuned...

it's a little clunky, but it works.

good luck!

Andy Lowe

2. Security Configurations

3. Emacs on RS6000 running AIX 3.2

4. Need Inetd and/or Telnetd Source

5. Emacs won't dump in RS6000 AIX

6. MODULE_LICENSE

7. Problem adding tty port using 128 Port Async Adapter with 16 port Async Node

8. Ensoniq AudioPCI and sndconfig

9. SAP/Oracle/AIX problems with async i/o with no mwc?

10. Re. Problems adding tape drives to RS6000/220 Re: Problems adding tape drives to RS6000/220

11. AIX and Windows NT: AIX RS6000 as a application and database server over an NT network ?

12. To async or not not async

13. Problem building InterViews on AIX 3.2 / IV 2.6 ibm rs6000