Subject: bug#21380: 25.0.50; GTK-induced segfault when scheduling timer from window-configuration-change-hook

From: Eli Zaretskii <[email-masked]>
Date: Sun, 30 Aug 2015 22:50:30 +0300

> Date: Sun, 30 Aug 2015 18:20:42 +0000
> From: Pip Cet <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> 
>     Maybe. But the cause of the SEGFAULT must be elsewhere. I have no
>     idea how
>     
>     4. make_list interrupted by QUIT
>     
>     could happen "while the temporary copy is being created" when
>     timer_check has set Vinhibit_quit to t.
>     
> 
> inhibit_quit inhibits process_quit_flag(), but not process_pending_signals(),
> if I'm reading this correctly:
> 
> #define QUIT \
> do { \
> if (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) \
> process_quit_flag (); \
> else if (pending_signals) \
> process_pending_signals (); \
> } while (false)
> 
> Maybe it should.

Does block_input/unblock_input around the copying solve the problem?