From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; Emacs seg fault Date: Sun, 07 Oct 2007 00:41:24 +0200 Message-ID: <871wc727e3.fsf@kfs-lx.testafd.dk> References: <87abr4a0nv.fsf@kfs-lx.testafd.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191710534 18530 80.91.229.12 (6 Oct 2007 22:42:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2007 22:42:14 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 00:42:09 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IeILF-0002N3-Sj for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2007 00:41:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeILB-0006XO-1b for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2007 18:41:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IeIL7-0006VP-T0 for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:41:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IeIL6-0006Tf-VE for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:41:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeIL6-0006TW-QO for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:41:40 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IeIL6-0002xr-GP for emacs-devel@gnu.org; Sat, 06 Oct 2007 18:41:40 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IeIKC-0006v1-PY for emacs-pretest-bug@gnu.org; Sat, 06 Oct 2007 18:40:44 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IeIL1-0002xD-R0 for emacs-pretest-bug@gnu.org; Sat, 06 Oct 2007 18:41:39 -0400 Original-Received: from mail-relay.sonofon.dk ([212.88.64.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IeIL1-0002wD-Cv for emacs-pretest-bug@gnu.org; Sat, 06 Oct 2007 18:41:35 -0400 Original-Received: (qmail 57171 invoked from network); 6 Oct 2007 22:41:25 -0000 Original-Received: from unknown (HELO kfs-lx.testafd.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 6 Oct 2007 22:41:25 -0000 In-Reply-To: (Leo's message of "Fri\, 05 Oct 2007 20\:28\:00 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: FreeBSD 4.6-4.9 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80357 gmane.emacs.pretest.bugs:20080 Archived-At: Leo writes: > On 2007-09-30 11:49 +0100, Kim F. Storm wrote: >> Leo writes: >> >>> #1 0x08194676 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=137551137, >>> wait_proc=0x0, just_wait_proc=0) at process.c:4880 >> >> I doubt that is the right line number due to compiler optimizations. >> Compile with CFLAGS="-g -O0" to get max debugging info. >> >> Since xerrno = 9 (EBADF), I suspect it actually traps in >> process.c line 4651 > > Compiled with "-g -O0". Please see the backtrace below: > > ================================ > Starting program: /home/emacs/src/emacs -nw -q > [Thread debugging using libthread_db enabled] > [New Thread -1208334624 (LWP 18445)] > [Switching to Thread -1208334624 (LWP 18445)] > [Detaching after fork from child process 18449. (Try `set detach-on-fork off'.)] > > Breakpoint 1, abort () at emacs.c:431 > 431 kill (getpid (), SIGABRT); > #0 abort () at emacs.c:431 > #1 0x081fec06 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=138030369, > wait_proc=0x0, just_wait_proc=0) at process.c:4651 Just as I expected. Since you are pretty much alone seeing this problem, it would be great if you could try to determine which of the file descriptors actually causes the problem - which is that the file descriptor has been closed but it has not been removed from input_wait_mask yet... The relevant code is this: else if (xerrno == EBADF) { #ifdef AIX /* AIX doesn't handle PTY closure the same way BSD does. On AIX, the child's closure of the pts gives the parent a SIGHUP, and the ptc file descriptor is automatically closed, yielding EBADF here or at select() call above. So, SIGHUP is ignored (see def of PTY_TTY_NAME_SPRINTF in m/ibmrt-aix.h), and here we just ignore the select error. Cleanup occurs c/o status_notify after SIGCLD. */ no_avail = 1; /* Cannot depend on values returned */ #else abort (); #endif } Just a wild guess - could you try to change "AIX" to "1" in the above code and see if that makes any difference... -- Kim F. Storm http://www.cua.dk