View previous topic :: View next topic |
Author |
Message |
guido.hatzsis n00b
Joined: 10 Jul 2015 Posts: 51
|
Posted: Fri Jul 17, 2015 10:49 am Post subject: How to debug crash in gnome-shell |
|
|
I have two machines and two builds which are similar yet different. On one machine I have an ATI card installed and on this machine I cannot run gnome.
gnome-shell start but when I run a terminal and then try to move it I get a crash in:
gnome-shell[12234]: segfault at 8 ip 00007f55b0e088d0 sp 00007ffed38a6f28 error 4 in libmozjs-24.so[7f55b0ce7000+2b1000]
I have managed to reproduce this by creating an xinitrc with dbus-launch gnome-shell and captured core dumps etc. I thought that it was a hardware problem and I mounted the working machine's root to test the drivers and mounted via bind BINDS=(dev sys proc run tmp home var/run var/log var/tmp dev/shm dev/pts) and I was able to run gnome-terminal etc in the chroot environment.
What other things should I try? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9678 Location: almost Mile High in the USA
|
Posted: Fri Jul 17, 2015 2:03 pm Post subject: |
|
|
There has been a longstanding problem with gnome3 and ati-drivers, seems gnome3 is not compatible with ati-drivers anymore due to gles2/egl... Plus ati-drivers will crash if used with gnome3's gdm and systemd.
It should work fine with the OSS drivers though I haven't tested it. I resorted to using xfce4 for now. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
guido.hatzsis n00b
Joined: 10 Jul 2015 Posts: 51
|
Posted: Fri Jul 17, 2015 10:27 pm Post subject: |
|
|
Which drivers are these? Do the gnome packages use ati headers for the GL stuff or do they use mesa? Or are you saying that this is a runtime issue. I have tested that its not the drivers in the kernel as the build without ati-drivers runs on the same machine.
You said that this is a longstanding problem. Can you point me to some posts that show that the problem is exactly? |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sat Jul 18, 2015 3:57 pm Post subject: |
|
|
libmozjs
sounds like a mozilla firefox binary thing?
you may check waht that thing is and than go along from that
and the net claims ati drivers do not work / work ... seems gnome 3 and ati-drivers have had issues or still have issues ... |
|
Back to top |
|
|
guido.hatzsis n00b
Joined: 10 Jul 2015 Posts: 51
|
Posted: Mon Jul 20, 2015 9:15 pm Post subject: |
|
|
[quote="tw04l124"]libmozjs
sounds like a mozilla firefox binary thing?
you may check waht that thing is and than go along from that
and the net claims ati drivers do not work / work ... seems gnome 3 and ati-drivers have had issues or still have issues ...[/quote]
Thank you my friend, but that library belongs to spider monkey. It is used by the gnome-shell. |
|
Back to top |
|
|
funker n00b
Joined: 07 Nov 2013 Posts: 18
|
Posted: Thu Apr 21, 2016 9:26 am Post subject: similar porblem here |
|
|
Hello,
after finishing the gentoo base installation while reading the amd64-handbook and sakaki's gnome-gentoo-guide, I ran into a similar problem like the segfault-issue of gnome-shell. Gnome-shell segfaults in libmozjs-24.so, but I'm running on Intel-Haswell hardware with Intel's 4600HD graphics. I've already tried several versions of gnome (3.16, 3.18 and 3.20; the latter one from the gnome-overlay). It doesn't matter which version, the segfault error is always the same. I've even recompiled everything (--emptytree) with no effect.
Here is my make.conf:
Code: |
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Ofast -pipe"
CXXFLAGS="${CFLAGS}"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
MAKEOPTS="-j4"
EMERGE_DEFAULT_OPTS="--ask --verbose"
ACCEPT_LICENSE="*"
# ACCEPT_KEYWORDS="~amd64"
USE="${CPU_FLAGS_X86}
alsa
branding
cairo cleartype colord corefonts
dbus dhclient dri dri3 drm
eds egl eglfs evdev
fbdev fontconfig
gdm gles2 gmp gnome gnome-keyring gnome-online-accounts gnome-shell gtk gtk3 gudev gstreamer
icu introspection ipc
jpeg jpeg2k
kdbus kms
libkms lm_sensors lzma
nautilus networkmanager
opencl opengl openmp
png policykit pulseaudio python
raw
sensord smp sna sqlite startup-notification systemd
tcl telepathy threaded threads truetype
udev udisks unicode upower usb uxa
vim vim-syntax
wayland wayland-compositor
wifi
X xcb xkb xlib-xcb xvmc xwayland
zeitgeist zsh-completion
-accessibility -asyncns
-berkdb -bluetooth -bogofilter
-cdr -cdrom -consolekit -cups
-dhcpcd -drkonqi -dvd -dvdr
-games
-java -joystick
-kde
-libburn
-openrc
-qt3 -qt3support -qt4 -qt5
-speex
-upnp
-vimeo -vpn
-webrtc-aec -wext"
VIDEO_CARDS="intel i965"
ALSA_CARDS="hd-intel"
ALSA_TOOLS="hd-intel"
INPUT_DEVICES="evdev udev synaptics"
LINGUAS="de en en_US"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
GENTOO_MIRRORS="http://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
|
EDIT: I found this after hours/days of emerging and searching dozends of websites:
Code: | CFLAGS="-O2 -march=native" && CXXFLAGS=$CFLAGS emerge --oneshot spidermonkey |
According to https://bugs.gentoo.org/show_bug.cgi?id=388521.
I hope this will help, I'll report about the results soon.
EDIT 2: The commands did the trick, up until now no segfault error in libmozjs-24.so when gdm starts. |
|
Back to top |
|
|
|