From xemacs-m  Tue Apr 22 08:49:12 1997
Received: from frege.math.ethz.ch (root@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id IAA14810;
	Tue, 22 Apr 1997 08:49:03 -0500 (CDT)
Received: from midget.math.ethz.ch (vroonhof@midget [129.132.145.4]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id PAA02147; Tue, 22 Apr 1997 15:48:15 +0200
Received: (vroonhof@localhost) by midget.math.ethz.ch (8.6.12/D-MATH-client) id PAA04412; Tue, 22 Apr 1997 15:47:50 +0200
Sender: vroonhof@math.ethz.ch
To: xemacs-beta@xemacs.org
Cc: crashes@xemacs.org
Subject: Ssubprocess, SIGCHLD problems again (sorry) (19.15p2)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Date: 22 Apr 1997 15:47:50 +0200
Message-ID: <byohb71855.fsf@midget.math.ethz.ch>
Lines: 219
X-Mailer: Gnus v5.4.37/XEmacs 19.15


I have delaying giving my XEmacs 19.15 over to the sysadmins for the
final install because of an annoying problem with TeX'ing from
XEmacs..

We get partially reproducible ("TeX some files and then it suddenly
happens, but you  don't know when") situtation where XEmacs doens't notice that
the latex subprocess finished. The subprocess stays <defunct> in the
process table. The buffer keeps showing "Compiling". Some users can
reproduce it more easily others :-(

I checked with truss and XEmacs gets a SIGCHLD signal. If I attach GDB
and do

^C
signal SIGCHLD

a few times, then suddenly it works and the usual (LaTeX process
finished) message from AucTeX appears.

It seams to me that SIGCHLD gets ignored somewhere somehow.

This is with 19.15p1 and 19.15p2
I think I never saw this with b104 but I don't really know because it is
so difficult to reproduce and because b104 was less widely used. In
case it matters. In changing from b104 to the release versions I have
changed
  - I think I changed the cflags to be -O2 (from -O) with gcc
  - I changed the compile from a solaris 2.3 to a solaris 2.5.1
    machine
  - Included sparcworks and tooltalk

Any Takers,

Jan

P.S. Is there someway (GDB, truss) that I can check whether SIGCHLD is
really ignored and when and where?

P.P.S


Configuration:

- You did not tell me what kind of host system you want to configure.
- I will attempt to guess the kind of system this is.
- Looks like this is a sparc-sun-solaris2.5.1
checking for ln -s
checking the configuration name
checking for gcc
checking how to run the C preprocessor
checking for a BSD compatible install
checking for bison
checking for AIX
checking for mach/mach.h
checking for sys/stropts.h
checking for sys/timeb.h
checking for sys/time.h
checking for unistd.h
checking for utime.h
checking for sys/wait.h
checking for libintl.h
checking for locale.h
checking for libgen.h
checking for linux/version.h
checking for ANSI C header files
checking for whether time.h and sys/time.h may both be included
checking for sys_siglist declaration in signal.h or unistd.h
checking for struct utimbuf
checking for return type of signal handlers
checking for struct timeval
checking for struct tm in time.h
checking for tm_zone in struct tm
checking for tzname
checking for lack of working const
checking byte ordering
checking for long file names
checking for -xildoff compiler flag
checking for specified window system
  No window system specified.  Looking for X11.
checking for X include and library files with xmkmf
  Using X11.
examining the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable.
checking for -ldnet
checking for -lXbsd
checking for -lpthreads
checking for XFree86
checking for -lX11
checking for -lXau
checking for -lDtSvc
checking for -lDnd
checking the version of X11 being used
checking for X11/Xlocale.h
checking for -lm
checking for -lXpm
checking for -lXmu
checking for compface.h
checking for -lcompface
checking for jpeglib.h
checking for -ljpeg
checking for declaration of h_errno in netdb.h
checking for sigsetjmp
checking whether localtime caches TZ
checking whether cross-compiling
checking for whether gettimeofday can't accept two arguments
checking for whether inline functions are supported
checking for working alloca.h
checking for alloca
checking for pid_t in sys/types.h
checking for vfork.h
checking for working vfork
checking for strcoll
checking size of short
checking size of int
checking size of long
checking for acosh
checking for asinh
checking for atanh
checking for cbrt
checking for closedir
checking for dup2
checking for eaccess
checking for fmod
checking for fpathconf
checking for frexp
checking for ftime
checking for gethostname
checking for getpagesize
checking for gettimeofday
checking for getwd
checking for logb
checking for lrand48
checking for matherr
checking for mkdir
checking for mktime
checking for perror
checking for poll
checking for random
checking for realpath
checking for rename
checking for res_init
checking for rint
checking for rmdir
checking for select
checking for setitimer
checking for setpgid
checking for setlocale
checking for setsid
checking for sigblock
checking for sighold
checking for sigprocmask
checking for strcasecmp
checking for strerror
checking for tzset
checking for utimes
checking for waitpid
checking for mmap
checking for socket
checking for netinet/in.h
checking for arpa/inet.h
checking for sun_len member in struct sockaddr_un
checking for dirent.h
checking how to do terminal I/O
checking for termios.h
checking for nlist.h
checking for -lncurses
checking for -ldb
checking for dbopen
checking for -lgdbm
checking for -ldbm


Configured for `sparc-sun-solaris2.5.1'.

  Where should the build process find the source code?    /a/noether/u/scratch/vroonhof/xemacs-19.15
  What installation prefix should install use?		  /u/scratch/xemacs.binkit
  What operating system and machine description files should XEmacs use?
        `s/sol2-5.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              gcc -O2
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/local/X11/include
  Where do we find X Windows libraries?                   /usr/local/X11/lib
  Additional header files:                                /usr/dt/include /u/scratch/vroonhof/libpng-0.89c /u/scratch/vroonhof/jpeg-6a /u/scratch/vroonhof/zlib /u/scratch/vroonhof/compface
  Additional libraries:                                   /usr/dt/lib /u/scratch/vroonhof/libpng-0.89c /u/scratch/vroonhof/jpeg-6a /u/scratch/vroonhof/compface /usr/dt/lib /u/scratch/jvsoft/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in both network and native sound support.
  Compiling in support for DBM.
  Compiling in support for ToolTalk.
  Compiling in support for SparcWorks.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.


creating config.status
creating Makefile
creating lib-src/Makefile.in
creating src/Makefile.in
creating lwlib/Makefile.in
creating dynodump/Makefile.in
creating src/config.h
creating src/Makefile
creating lwlib/Makefile
creating lib-src/Makefile
creating dynodump/Makefile





