Subject: Re: bug#34454: GTK programs segfaulting

From: Ludovic Courtès <[email-masked]>
Date: Tue, 12 Mar 2019 14:11:31 +0100

Hi Bradley,

Bradley Haggerty <[email-masked]> skribis:

> Ludovic Courtès said:
>>Can you reproduce the error with:
>>
>>  guix environment --pure --ad-hoc emacs -- emacs
>
> Yes, it seems I can!
>
> brad@kazuki:~/ > guix environment --pure --ad-hoc emacs -- emacs                                                  

[...]

> X protocol error: BadMatch (invalid parameter attributes) on protocol request 2                                                                                
> When compiled with GTK, Emacs cannot recover from X disconnects.                                                                                               
> This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715                                                                                            
> For details, see etc/PROBLEMS.
> Fatal error 6: Aborted

Weird, that definitely works for me.

Could you then see if this can be reproduced in a VM?  That is, run:

  guix system vm config.scm

where config.scm is your system config, with Emacs added to the
‘packages’ field, like so:

  (operating-system
    ;; …
    (packages (cons emacs %base-packages)))

If the problem doesn’t show up in the VM, it would mean there’s some
corrupt state somewhere on your system.

HTH,
Ludo’.