From: storm@cua.dk (Kim F. Storm)
To: Leo <sdl.web@gmail.com>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; Emacs seg fault
Date: Sun, 07 Oct 2007 00:41:24 +0200 [thread overview]
Message-ID: <871wc727e3.fsf@kfs-lx.testafd.dk> (raw)
In-Reply-To: <m21wc94b0f.fsf@cam.ac.uk> (Leo's message of "Fri\, 05 Oct 2007 20\:28\:00 +0100")
Leo <sdl.web@gmail.com> writes:
> On 2007-09-30 11:49 +0100, Kim F. Storm wrote:
>> Leo <sdl.web@gmail.com> 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 <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2007-10-06 22:41 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-29 21:10 23.0.50; Emacs seg fault Leo
2007-09-30 2:56 ` Stefan Monnier
2007-09-30 6:09 ` Leo
2007-09-30 12:55 ` Richard Stallman
2007-09-30 10:49 ` Kim F. Storm
2007-09-30 11:07 ` David Kastrup
2007-09-30 15:44 ` Leo
2007-10-01 17:41 ` Richard Stallman
2007-10-05 19:29 ` Leo
2007-09-30 16:10 ` Eli Zaretskii
2007-10-05 19:28 ` Leo
2007-10-06 22:41 ` Kim F. Storm [this message]
2007-10-07 7:34 ` Leo
2007-10-07 21:35 ` Kim F. Storm
2007-10-08 0:19 ` Leo
2007-10-08 13:01 ` Kim F. Storm
2007-10-08 16:09 ` Dan Nicolaescu
2007-10-08 19:13 ` Leo
2007-10-08 20:15 ` Dan Nicolaescu
2007-10-10 5:54 ` Leo
2007-10-10 8:08 ` Dan Nicolaescu
2007-10-10 9:35 ` Leo
2007-10-10 23:53 ` Dan Nicolaescu
2007-10-11 17:31 ` Leo
2007-10-11 21:31 ` Dan Nicolaescu
2007-10-10 5:59 ` Leo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871wc727e3.fsf@kfs-lx.testafd.dk \
--to=storm@cua.dk \
--cc=emacs-pretest-bug@gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).