After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773928 - Frequent segfault in libc-2.24.so; downgrading mesa packages helped
Frequent segfault in libc-2.24.so; downgrading mesa packages helped
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: drivers
3.22.x
Other Linux
: Normal major
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-11-04 02:49 UTC by Renato Garcia
Modified: 2021-07-05 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Renato Garcia 2016-11-04 02:49:37 UTC
Gnome shell is crashing very frequently with:

[ 2027.752359] gnome-shell[1018]: segfault at 8 ip 00007f675e68edec sp 00007ffdc0ad5408 error 4 in libc-2.24.so[7f675e60b000+195000]

This seems to be happening after mesa upgrade.

I'm running Arch:
mesa 13.0.0-1
xf86-video-nouveau 1.0.13-1

The stack is the following:
Core was generated by `/usr/bin/gnome-shell'.
Program terminated with signal SIGSEGV, Segmentation fault.
  • #0 __memmove_sse2_unaligned_erms
    from /usr/lib/libc.so.6
  • #0 __memmove_sse2_unaligned_erms
  • #1 0x00007fbed09553c0 in
  • #2 0x00007fbed0a64bf8 in
  • #3 0x00007fbed0a59f45 in
  • #4 0x00007fbed0a5a127 in
  • #5 0x00007fbed0a65fb4 in
  • #6 0x00007fbed083aa62 in
  • #7 0x00007fbed06afcc9 in
  • #8 0x00007fbed0696d9b in
  • #9 0x00007fbee1b54e7b in
  • #10 cogl_framebuffer_clear4f
  • #11 0x00007fbee5222d04 in
  • #12 0x00007fbee5225624 in
  • #13 0x00007fbee5225640 in
  • #14 clutter_actor_continue_paint
  • #15 0x00007fbee51e1aab in
  • #16 0x00007fbee5238565 in
  • #17 0x00007fbee52385d3 in
  • #18 0x00007fbee51cd204 in
  • #19 0x00007fbee51cdab2 in
  • #20 0x00007fbee52353d7 in
  • #21 0x00007fbee5220dd9 in
  • #22 g_main_context_dispatch
  • #23 0x00007fbee46cf7f0 in
  • #24 g_main_loop_run
  • #25 meta_run
  • #26 main

Comment 1 Florian Müllner 2016-11-04 12:29:58 UTC
(In reply to Renato Garcia from comment #0)
> This seems to be happening after mesa upgrade.

That would hint at a driver issue ...


> The stack is the following:
> Core was generated by `/usr/bin/gnome-shell'.
> Program terminated with signal SIGSEGV, Segmentation fault.

... though it's hard to tell given that the trace is missing most debug symbols. Any chance you can reproduce the issue with those symbols installed, then attach the trace here and also report the issue with mesa (in case it's indeed an issue in the nouveau driver)?
Comment 2 Renato Garcia 2016-11-05 10:50:04 UTC
I've downgraded the following libs below and gnome-shell is stable again:

mesa (13.0.0-1 -> 12.0.3-3)
mesa-libgl (13.0.0-1 -> 12.0.3-3)
lib32-mesa (13.0.0-1 -> 12.0.3-3)
lib32-mesa-libgl (13.0.0-1 -> 12.0.3-3)
llvm-libs (3.9.0-1 -> 3.8.1-1)

I'll try reinstall them with the debug symbols and get a stack as soon as I get a chance and report the issue with mesa.
Comment 3 Stephen Martin 2016-12-31 11:21:39 UTC
Hi I am also experiencing this around 8 times a day, losing session everytime. running fedora 25 with nouveau drive.

Backtrace here

https://retrace.fedoraproject.org/faf/reports/1486920/

I can also provide a core dump if it helps?
Comment 4 Rui Matos 2017-01-02 13:05:52 UTC
Please report this on the mesa bug tracker: https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Drivers%2FDRI%2Fnouveau
Comment 5 Federico Bruni 2017-01-16 12:48:04 UTC
I'm having a segfault each time Gnome Pomodoro (package gnome-shell-extension-pomodoro in Fedora25) opens up the break window. Here are the relevant lines in journalctl:

gen 16 12:23:33 localhost.localdomain gnome-shell[5684]: GNOME Shell started at Mon Jan 16 2017 12:23:31 GMT+0100 (CET)
gen 16 12:23:35 localhost.localdomain audit[5684]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=4 pid=5684 comm="gnome-shell" exe="/usr/bin/gnome-shell" sig=11
gen 16 12:23:35 localhost.localdomain kernel: gnome-shell[5684]: segfault at 8 ip 00007f1282280acc sp 00007fffdbda79c8 error 4 in libc-2.24.so[7f12821f0000+1bd000]
gen 16 12:23:35 localhost.localdomain abrt-hook-ccpp[5782]: Process 5684 (gnome-shell) of user 1000 killed by SIGSEGV - ignoring (repeated crash)

I'm using xorg (not wayland).
How can I debug it?

$ lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 630 OEM] (rev a1)

[~]$ sudo lshw -c video
[sudo] password di fede: 
  *-display                 
       description: VGA compatible controller
       product: GK107 [GeForce GT 630 OEM]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:32 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff



[~]$ sudo modinfo nouveau
filename:       /lib/modules/4.9.3-200.fc25.x86_64/kernel/drivers/gpu/drm/nouveau/nouveau.ko.xz
firmware:       nvidia/gp100/gr/sw_method_init.bin
firmware:       nvidia/gp100/gr/sw_bundle_init.bin
firmware:       nvidia/gp100/gr/sw_nonctx.bin
firmware:       nvidia/gp100/gr/sw_ctx.bin
firmware:       nvidia/gp100/gr/gpccs_sig.bin
firmware:       nvidia/gp100/gr/gpccs_data.bin
firmware:       nvidia/gp100/gr/gpccs_inst.bin
firmware:       nvidia/gp100/gr/gpccs_bl.bin
firmware:       nvidia/gp100/gr/fecs_sig.bin
firmware:       nvidia/gp100/gr/fecs_data.bin
firmware:       nvidia/gp100/gr/fecs_inst.bin
firmware:       nvidia/gp100/gr/fecs_bl.bin
firmware:       nvidia/gp100/acr/ucode_unload.bin
firmware:       nvidia/gp100/acr/ucode_load.bin
firmware:       nvidia/gp100/acr/bl.bin
firmware:       nvidia/gm206/gr/sw_method_init.bin
firmware:       nvidia/gm206/gr/sw_bundle_init.bin
firmware:       nvidia/gm206/gr/sw_nonctx.bin
firmware:       nvidia/gm206/gr/sw_ctx.bin
firmware:       nvidia/gm206/gr/gpccs_sig.bin
firmware:       nvidia/gm206/gr/gpccs_data.bin
firmware:       nvidia/gm206/gr/gpccs_inst.bin
firmware:       nvidia/gm206/gr/gpccs_bl.bin
firmware:       nvidia/gm206/gr/fecs_sig.bin
firmware:       nvidia/gm206/gr/fecs_data.bin
firmware:       nvidia/gm206/gr/fecs_inst.bin
firmware:       nvidia/gm206/gr/fecs_bl.bin
firmware:       nvidia/gm206/acr/ucode_unload.bin
firmware:       nvidia/gm206/acr/ucode_load.bin
firmware:       nvidia/gm206/acr/bl.bin
firmware:       nvidia/gm204/gr/sw_method_init.bin
firmware:       nvidia/gm204/gr/sw_bundle_init.bin
firmware:       nvidia/gm204/gr/sw_nonctx.bin
firmware:       nvidia/gm204/gr/sw_ctx.bin
firmware:       nvidia/gm204/gr/gpccs_sig.bin
firmware:       nvidia/gm204/gr/gpccs_data.bin
firmware:       nvidia/gm204/gr/gpccs_inst.bin
firmware:       nvidia/gm204/gr/gpccs_bl.bin
firmware:       nvidia/gm204/gr/fecs_sig.bin
firmware:       nvidia/gm204/gr/fecs_data.bin
firmware:       nvidia/gm204/gr/fecs_inst.bin
firmware:       nvidia/gm204/gr/fecs_bl.bin
firmware:       nvidia/gm204/acr/ucode_unload.bin
firmware:       nvidia/gm204/acr/ucode_load.bin
firmware:       nvidia/gm204/acr/bl.bin
firmware:       nvidia/gm200/gr/sw_method_init.bin
firmware:       nvidia/gm200/gr/sw_bundle_init.bin
firmware:       nvidia/gm200/gr/sw_nonctx.bin
firmware:       nvidia/gm200/gr/sw_ctx.bin
firmware:       nvidia/gm200/gr/gpccs_sig.bin
firmware:       nvidia/gm200/gr/gpccs_data.bin
firmware:       nvidia/gm200/gr/gpccs_inst.bin
firmware:       nvidia/gm200/gr/gpccs_bl.bin
firmware:       nvidia/gm200/gr/fecs_sig.bin
firmware:       nvidia/gm200/gr/fecs_data.bin
firmware:       nvidia/gm200/gr/fecs_inst.bin
firmware:       nvidia/gm200/gr/fecs_bl.bin
firmware:       nvidia/gm200/acr/ucode_unload.bin
firmware:       nvidia/gm200/acr/ucode_load.bin
firmware:       nvidia/gm200/acr/bl.bin
firmware:       nvidia/gm20b/gr/sw_method_init.bin
firmware:       nvidia/gm20b/gr/sw_bundle_init.bin
firmware:       nvidia/gm20b/gr/sw_nonctx.bin
firmware:       nvidia/gm20b/gr/sw_ctx.bin
firmware:       nvidia/gm20b/gr/gpccs_data.bin
firmware:       nvidia/gm20b/gr/gpccs_inst.bin
firmware:       nvidia/gm20b/gr/fecs_sig.bin
firmware:       nvidia/gm20b/gr/fecs_data.bin
firmware:       nvidia/gm20b/gr/fecs_inst.bin
firmware:       nvidia/gm20b/gr/fecs_bl.bin
firmware:       nvidia/gm20b/acr/ucode_load.bin
firmware:       nvidia/gm20b/acr/bl.bin
license:        GPL and additional rights
description:    nVidia Riva/TNT/GeForce/Quadro/Tesla
author:         Nouveau Project
alias:          pci:v000012D2d*sv*sd*bc03sc*i*
alias:          pci:v000010DEd*sv*sd*bc03sc*i*
depends:        drm,drm_kms_helper,ttm,mxm-wmi,wmi,video,i2c-algo-bit
intree:         Y
vermagic:       4.9.3-200.fc25.x86_64 SMP mod_unload 
signat:         PKCS#7
signer:         
sig_key:        
sig_hashalgo:   md4
parm:           tv_norm:Default TV norm.
		Supported: PAL, PAL-M, PAL-N, PAL-Nc, NTSC-M, NTSC-J,
			hd480i, hd480p, hd576i, hd576p, hd720p, hd1080i.
		Default: PAL
		*NOTE* Ignored for cards with external TV encoders. (charp)
parm:           vram_pushbuf:Create DMA push buffers in VRAM (int)
parm:           nofbaccel:Disable fbcon acceleration (int)
parm:           tv_disable:Disable TV-out detection (int)
parm:           ignorelid:Ignore ACPI lid status (int)
parm:           duallink:Allow dual-link TMDS (default: enabled) (int)
parm:           hdmimhz:Force a maximum HDMI pixel clock (in MHz) (int)
parm:           config:option string to pass to driver core (charp)
parm:           debug:debug string to pass to driver core (charp)
parm:           noaccel:disable kernel/abi16 acceleration (int)
parm:           modeset:enable driver (default: auto, 0 = disabled, 1 = enabled, 2 = headless) (int)
parm:           runpm:disable (0), force enable (1), optimus only default (-1) (int)
Comment 6 Stephen Martin 2017-01-16 12:59:19 UTC
Hey Federico,

This is a big in mesa drivers, I don't know if its been reported, but if you want a workaround, in fedora 25 you can downgrade the the following packages to 12.0.3-3 and the bug will be gone. However the bug may need reporting to mesa.

mesa-dri-drivers.i686                                                          12.0.3-3.fc25                                                @@commandline     
mesa-dri-drivers.x86_64                                                        12.0.3-3.fc25                                                @@commandline     
mesa-filesystem.i686                                                           12.0.3-3.fc25                                                @@commandline     
mesa-filesystem.x86_64                                                         12.0.3-3.fc25                                                @@commandline     
mesa-libEGL.i686                                                               12.0.3-3.fc25                                                @@commandline     
mesa-libEGL.x86_64                                                             12.0.3-3.fc25                                                @@commandline     
mesa-libGL.i686                                                                12.0.3-3.fc25                                                @@commandline     
mesa-libGL.x86_64                                                              12.0.3-3.fc25                                                @@commandline     
mesa-libGLES.x86_64                                                            12.0.3-3.fc25                                                @@commandline     
mesa-libgbm.i686                                                               12.0.3-3.fc25                                                @@commandline     
mesa-libgbm.x86_64                                                             12.0.3-3.fc25                                                @@commandline     
mesa-libglapi.i686                                                             12.0.3-3.fc25                                                @@commandline     
mesa-libglapi.x86_64                                                           12.0.3-3.fc25                                                @@commandline     
mesa-libwayland-egl.x86_64                                                     12.0.3-3.fc25                                                @@commandline

https://bugzilla.redhat.com/show_bug.cgi?id=1403960
Comment 7 Federico Bruni 2017-01-16 14:11:46 UTC
Ok, I'm downgrading all the installed mesa- packages.
I'll let you know if it works.

mesa-dri-drivers                     x86_64            12.0.3-3.fc25            fedora             11 M
 mesa-filesystem                      x86_64            12.0.3-3.fc25            fedora             23 k
 mesa-libEGL                          x86_64            12.0.3-3.fc25            fedora             96 k
 mesa-libEGL-devel                    x86_64            12.0.3-3.fc25            fedora             37 k
 mesa-libGL                           x86_64            12.0.3-3.fc25            fedora            158 k
 mesa-libGL-devel                     x86_64            12.0.3-3.fc25            fedora            160 k
 mesa-libGLES                         x86_64            12.0.3-3.fc25            fedora             30 k
 mesa-libgbm                          x86_64            12.0.3-3.fc25            fedora             43 k
 mesa-libglapi                        x86_64            12.0.3-3.fc25            fedora             49 k
 mesa-libwayland-egl                  x86_64            12.0.3-3.fc25            fedora             24 k
 mesa-libwayland-egl-devel            x86_64            12.0.3-3.fc25            fedora             22 k
 mesa-libxatracker                    x86_64            12.0.3-3.fc25            fedora            1.4 M
Comment 8 Federico Bruni 2017-01-16 17:23:46 UTC
I confirm that downgrading those packages works. I've also added this line to /etc/dnf/dnf.conf to prevent updates:

exclude=mesa-*

Sorry, I don't have time to report the bug for mesa.
Comment 9 GNOME Infrastructure Team 2021-07-05 14:38:49 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.