unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; Emacs seg fault
Date: Sun, 30 Sep 2007 16:44:41 +0100	[thread overview]
Message-ID: <m2lkaop386.fsf@cam.ac.uk> (raw)
In-Reply-To: 87abr4a0nv.fsf@kfs-lx.testafd.dk

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.

I will get an output with better debugging info. However I can't do that
until after 8 Oct.

> Since xerrno = 9 (EBADF), I suspect it actually traps in process.c
> line 4651
>
> This means that one of the bits in the Available mask does not
> correspond to a valid file descriptor.
>
> Looking at the code, I see that this piece of code is executed
> between setting up the Available mask and the call to select.
>
>       /* If frame size has changed or the window is newly mapped,
> 	 redisplay now, before we start to wait.  There is a race
> 	 condition here; if a SIGIO arrives between now and the select
> 	 and indicates that a frame is trashed, the select may block
> 	 displaying a trashed screen.  */
>       if (frame_garbaged && do_display)
> 	{
> 	  clear_waiting_for_input ();
> 	  redisplay_preserve_echo_area (11);
> 	  if (read_kbd < 0)
> 	    set_waiting_for_input (&timeout);
> 	}
>
> This looks dangerous to me.
>
> Could you try this patch and see if it fixes the problem:
[...]

It didn't fix the problem.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

       Use the most powerful email client -- http://gnus.org/

  parent reply	other threads:[~2007-09-30 15:44 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 [this message]
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
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=m2lkaop386.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /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).