Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X is crashing when opening Emacs
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kaetahr
n00b
n00b


Joined: 14 Nov 2018
Posts: 10

PostPosted: Thu Jan 27, 2022 10:14 pm    Post subject: X is crashing when opening Emacs Reply with quote

X crashes when I open a graphical emacs client.
It doesn't occur when opening a daemon, or when running emacs -nw.

I've tried recompiling emacs with different graphical libraries and they all result in the same crash.

So far no other graphical application I use is causing a crash like this.

My last log X is this:
Code:

[  3895.694] (II) Using input driver 'libinput' for 'Razer Razer BlackWidow Ultimate Keyboard'
[  3895.694] (**) Razer Razer BlackWidow Ultimate Keyboard: always reports core events
[  3895.694] (**) Option "Device" "/dev/input/event6"
[  3895.694] (**) Option "_source" "_driver/libinput"
[  3895.694] (II) libinput: Razer Razer BlackWidow Ultimate Keyboard: is a virtual subdevice
[  3895.694] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:1532:0214.0007/input/input29/event6"
[  3895.694] (II) XINPUT: Adding extended input device "Razer Razer BlackWidow Ultimate Keyboard" (type: KEYBOARD, id 18)
[  3897.283] (II) intel(0): EDID vendor "MEI", prod id 38562
[  3897.283] (II) intel(0):     EDID quirk: Use maximum size instead of detailed timing sizes.
[  3897.283] (II) intel(0): Using EDID range info for horizontal sync
[  3897.283] (II) intel(0): Using EDID range info for vertical refresh
[  3897.283] (II) intel(0): Printing DDC gathered Modelines:
[  3897.283] (II) intel(0): Modeline "2560x1440"x0.0  257.54  2560 2648 2680 2800  1440 1468 1473 1533 +hsync +vsync (92.0 kHz eP)
[  3897.283] (II) intel(0): Modeline "2560x1440"x0.0  257.51  2560 2648 2680 2800  1440 1468 1473 1916 +hsync +vsync (92.0 kHz e)
[  3945.503] (EE) event5  - Razer Razer BlackWidow Ultimate: client bug: event processing lagging behind by 26ms, your system is too slow
[  4091.397] (EE)
[  4091.397] (EE) Backtrace:
[  4091.397] (EE) 0: /usr/bin/X (xorg_backtrace+0x5b) [0x556181093edb]
[  4091.397] (EE) 1: /usr/bin/X (0x556180f53000+0x144b15) [0x556181097b15]
[  4091.397] (EE) 2: /lib64/libpthread.so.0 (0x7f3c52e53000+0x12180) [0x7f3c52e65180]
[  4091.397] (EE) 3: /lib64/libselinux.so.1 (avc_has_perm_noaudit+0x1c5) [0x7f3c52f44ac5]
[  4091.397] (EE) 4: /lib64/libselinux.so.1 (avc_has_perm+0x45) [0x7f3c52f44bc5]
[  4091.397] (EE) 5: /usr/bin/X (0x556180f53000+0xece9d) [0x55618103fe9d]
[  4091.398] (EE) 6: /usr/bin/X (0x556180f53000+0xedf68) [0x556181040f68]
[  4091.398] (EE) 7: /usr/bin/X (_CallCallbacks+0x34) [0x556180fce314]
[  4091.398] (EE) 8: /usr/bin/X (XaceHook+0x15e) [0x556181035aee]
[  4091.398] (EE) 9: /usr/bin/X (dixLookupResourceByClass+0x12b) [0x556180ff064b]
[  4091.398] (EE) 10: /usr/bin/X (dixLookupDrawable+0x3c) [0x556180fcd55c]
[  4091.398] (EE) 11: /usr/bin/X (0x556180f53000+0x72871) [0x556180fc5871]
[  4091.398] (EE) 12: /usr/bin/X (0x556180f53000+0x76351) [0x556180fc9351]
[  4091.398] (EE) 13: /usr/bin/X (0x556180f53000+0x7a06b) [0x556180fcd06b]
[  4091.398] (EE) 14: /lib64/libc.so.6 (__libc_start_main+0xcd) [0x7f3c52cb87fd]
[  4091.398] (EE) 15: /usr/bin/X (_start+0x2a) [0x556180f9241a]
[  4091.398] (EE)
[  4091.398] (EE) Segmentation fault at address 0x0
[  4091.398] (EE)
Fatal server error:
[  4091.398] (EE) Caught signal 11 (Segmentation fault). Server aborting
[  4091.398] (EE)
[  4091.398] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[  4091.398] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  4091.398] (EE)
[  4091.398] (II) AIGLX: Suspending AIGLX clients for VT switch
[  4091.481] (EE) Server terminated with error (1). Closing log file


I tried running emacs with gdb, and this is all the output I could get before it crashed:
Code:

Starting program: /usr/bin/emacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff2537640 (LWP 9208)]


Currently, the flags I'm using for emacs are:
Code:

"acl alsa cairo dbus gconf gif gmp gpm gtk gui imagemagick inotify jpeg lcms libxml2 m17n-lib png sound ssl svg threads tiff xpm zlib -Xaw3d (-aqua) -athena -dynamic-loading -games -gfile -gsettings -gzip-el -harfbuzz -json -kerberos -livecd -mailutils -motif (-selinux) -source -systemd -toolkit-scroll-bars -wide-int -xft -xwidget
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Jan 28, 2022 5:11 pm    Post subject: Reply with quote

If you rebuilt emacs
Code:

USE="-threads" emerge -1av emacs

?
You have segfault in your X
Code:

[  4091.398] (EE) Caught signal 11 (Segmentation fault). Server aborting


But is this somehow related to emacs?
Does your problem only happen when opening emacs?
Quote:

/lib64/libpthread.so.0 (0x7f3c52e53000+0x12180) [0x7f3c52e65180]
[ 4091.397] (EE) 3: /lib64/libselinux.so.1 (avc_has_perm_noaudit+0x1c5) [0x7f3c52f44ac5]
[ 4091.397] (EE) 4: /lib64/libselinux.so.1 (avc_has_perm+0x45) [0x7f3c52f44bc5]

Selinux?
Disable the damned thing plz and try again.
Or maybe
Code:

USE="-selinux" emerge -1av xorg-server

in case it was flipped by mistake.
:)
_________________
:)
Back to top
View user's profile Send private message
kaetahr
n00b
n00b


Joined: 14 Nov 2018
Posts: 10

PostPosted: Fri Jan 28, 2022 6:04 pm    Post subject: Reply with quote

alamahant wrote:

You have segfault in your X
Code:

[  4091.398] (EE) Caught signal 11 (Segmentation fault). Server aborting

But is this somehow related to emacs?
Does your problem only happen when opening emacs?


Yeah, the problem only ocurred with emacs. I used a lot of other graphical applications and none triggered this crash. It's odd.

alamahant wrote:

Selinux?
Disable the damned thing plz and try again.


Removing this from my kernel configuration and libX fixed it. Not sure when I enabled that or for what purpose. Been using this system for over 5 years now.

Thanks for your help! :)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Jan 28, 2022 6:12 pm    Post subject: Reply with quote

Plz dont forget to make the USE permanent by creating an entry in
/etc/portage/package.use
_________________
:)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Sat Jan 29, 2022 4:45 pm    Post subject: Reply with quote

I see that you worked around the issue by disabling selinux. As a general point, if X crashes, that is a bug in X or a library it uses. That emacs was the triggering application might be interesting, but it is not an emacs bug that something it sends can cause the X server to crash.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum