emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.50; Emacs seg fault


From: Leo
Subject: Re: 23.0.50; Emacs seg fault
Date: Sun, 30 Sep 2007 16:44:41 +0100
User-agent: Gnus/5.110007 Emacs/23.0.50 (20070922) Fedora 7 (gnu/linux)

On 2007-09-30 11:49 +0100, Kim F. Storm wrote:
> Leo <address@hidden> 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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]