weston crashed with SIGSEGV in ____longjmp_chk()

Bug #1041814 reported by Lockal
This bug affects 2 people
Affects Status Importance Assigned to Milestone
weston (Ubuntu)

Bug Description

weston crashes righ after start-up. The last messages are:

couldn't open /home/lockal/.config/weston.ini
[13:07:43.921] Loading module '/usr/lib/weston/x11-backend.so'
[13:07:43.922] initializing x11 backend
couldn't open /home/lockal/.config/weston.ini
libEGL warning: DRI2: failed to authenticate
[13:07:43.932] caught segv

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: weston 0.95.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-11.11-generic 3.5.2
Uname: Linux 3.5.0-11-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Это каталог: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 304.37 Wed Aug 8 19:52:48 PDT 2012
 GCC version: gcc version 4.7.1 20120814 (prerelease) (Ubuntu/Linaro 4.7.1-7ubuntu1)
 Your system is not currently configured to drive a VGA console
 on the primary VGA device. The NVIDIA Linux graphics driver
 requires the use of a text-mode VGA console. Use of other console
 drivers including, but not limited to, vesafb, may result in
 corruption and stability problems, and is not supported.
ApportVersion: 2.5.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Sun Aug 26 13:07:44 2012
DistUpgraded: 2012-07-22 19:27:42,877 DEBUG enabling apt cron job
DistroCodename: quantal
DistroVariant: ubuntu
 blcr, 0.8.4: added
 nvidia, 304.37, 3.5.0-11-generic, x86_64: installed
 virtualbox, 4.1.18, 3.5.0-10-generic, x86_64: installed
 virtualbox, 4.1.18, 3.5.0-11-generic, x86_64: installed
ExecutablePath: /usr/bin/weston
ExecutableTimestamp: 1345884644
 NVIDIA Corporation GT200b [GeForce GTX 275] [10de:05e6] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ZOTAC International (MCO) Ltd. Device [19da:3109]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120201.1)
 kmod:nvidia_current - NVIDIA binary Xorg driver, kernel module and VDPAU library (Проприетарные, Выключен, Не используется)
 kmod:nvidia_current_updates - NVIDIA binary Xorg driver, kernel module and VDPAU library (Проприетарные, Выключен, Не используется)
MachineType: OEM OEM
ProcCmdline: weston
ProcCwd: /home/lockal
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-11-generic root=UUID=5594ea56-06d6-4cef-a20e-f2565ad00fb8 ro quiet splash rdblacklist=nouveau nouveau.modeset=0 vt.handoff=7
 Segfault happened at: 0x7f3372e81e7e <____longjmp_chk+158>: jmpq *%rdx
 PC (0x7f3372e81e7e) ok
 source "*%rdx" (0xba6fd31b529d3497) not located in a known VMA region (needed readable region)!
 Stack pointer not within stack segment
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: weston
 #0 ____longjmp_chk () at ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S:116
 No locals.
 #1 0xba6fd31b529d3497 in ?? ()
 No symbol table info available.
 Cannot access memory at address 0xba6fd31b529d3497
 ____longjmp_chk () at ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S:116
 ?? ()
Title: weston crashed with SIGSEGV in ____longjmp_chk()
UpgradeStatus: Upgraded to quantal on 2012-07-22 (34 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 05/02/2008
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 6.00 PG
dmi.board.name: INF P35-R
dmi.board.vendor: DFI Inc.
dmi.board.version: 1.0
dmi.chassis.type: 3
dmi.chassis.vendor: OEM
dmi.chassis.version: OEM
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr6.00PG:bd05/02/2008:svnOEM:pnOEM:pvrOEM:rvnDFIInc.:rnINFP35-R:rvr1.0:cvnOEM:ct3:cvrOEM:
dmi.product.name: OEM
dmi.product.version: OEM
dmi.sys.vendor: OEM
version.compiz: compiz 1:0.9.8+bzr3319-0ubuntu2
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.38-0ubuntu2
version.libgl1-mesa-dri: libgl1-mesa-dri 9.0~git20120821.c1114c61-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.0~git20120821.c1114c61-0ubuntu1
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg-core: xserver-xorg-core 2:
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Revision history for this message
Lockal (lockal) wrote :
tags: added: amd64 apport-crash need-amd64-retrace possible-manual-nvidia-install quantal ubuntu
Revision history for this message
Apport retracing service (apport) wrote :

 #0 ____longjmp_chk () at ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S:116
 No locals.
 #1 0xba6fd31b529d3497 in ?? ()
 No symbol table info available.
 Cannot access memory at address 0xba6fd31b529d3497
 #0 ____longjmp_chk () at ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S:116
   [Error: ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S was not found in source tree]
 #1 0xba6fd31b529d3497 in ?? ()
 ____longjmp_chk () at ../sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S:116
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
tags: added: apport-failed-retrace
tags: removed: need-amd64-retrace
Revision history for this message
Lockal (lockal) wrote :

Better backtrace:

#0 0x00007ffff79bc481 in dri2_setup_screen (disp=disp@entry=0x630760) at egl_dri2.c:484
#1 0x00007ffff79bc601 in dri2_create_screen (disp=disp@entry=0x630760) at egl_dri2.c:543
#2 0x00007ffff79bd52e in dri2_initialize_x11_swrast (drv=drv@entry=0x63c710, disp=disp@entry=0x630760) at platform_x11.c:1015
#3 0x00007ffff79be0b7 in dri2_initialize_x11 (drv=0x63c710, disp=0x630760) at platform_x11.c:1184
#4 0x00007ffff79b616b in _eglMatchAndInitialize (dpy=<optimized out>) at egldriver.c:608
#5 _eglMatchAndInitialize (dpy=0x630760) at egldriver.c:581
#6 0x00007ffff79b64a3 in _eglMatchDriver (dpy=dpy@entry=0x630760, test_only=test_only@entry=0) at egldriver.c:639
#7 0x00007ffff79b1452 in eglInitialize (dpy=0x630760, major=major@entry=0x7fffffffd85c, minor=minor@entry=0x7fffffffd860) at eglapi.c:317
#8 0x00007ffff482c72e in x11_compositor_init_egl (c=0x61fa40) at compositor-x11.c:269
#9 x11_compositor_create (config_file=<optimized out>, argv=<optimized out>, argc=<optimized out>, no_input=0, fullscreen=0, count=1, height=640, width=1024, display=0x619a20) at compositor-x11.c:1086
#10 backend_init (display=0x619a20, argc=<optimized out>, argv=<optimized out>, config_file=<optimized out>) at compositor-x11.c:1141
#11 0x0000000000406231 in main (argc=1, argv=0x7fffffffdfd8) at compositor.c:3490

Lockal (lockal)
visibility: private → public
Revision history for this message
Lockal (lockal) wrote :

more gdb info:
479 disp->ClientAPIs |= EGL_OPENGL_ES2_BIT;
481 assert(dri2_dpy->dri2 || dri2_dpy->swrast);
482 disp->Extensions.KHR_surfaceless_context = EGL_TRUE;
484 if (dri2_dpy->dri2->base.version >= 3) {
485 disp->Extensions.KHR_create_context = EGL_TRUE;
487 if (dri2_dpy->robustness)
488 disp->Extensions.EXT_create_context_robustness = EGL_TRUE;

(gdb) p dri2_dpy->dri2
$1 = (__DRIdri2Extension *) 0x0

(gdb) p *dri2_dpy
$2 = {dri2_major = 0, dri2_minor = 0, dri_screen = 0x63f530, own_dri_screen = 1, driver_configs = 0x6437d0, driver = 0x63cc00, core = 0x7fffefb98da0, dri2 = 0x0, swrast = 0x7fffefb854e0, flush = 0x0, tex_buffer = 0x7fffefb85540,
  image = 0x0, robustness = 0x0, fd = 0, own_device = 0, swap_available = 0, invalidate_available = 0, gbm_dri = 0x0, device_name = 0x0, driver_name = 0x7ffff79c1bb8 "swrast", dri2_loader_extension = {base = {name = 0x0, version = 0},
    getBuffers = 0x0, flushFrontBuffer = 0x0, getBuffersWithFormat = 0x0}, swrast_loader_extension = {base = {name = 0x7ffff79c3205 "DRI_SWRastLoader", version = 1}, getDrawableInfo = 0x7ffff79b93e4 <swrastGetDrawableInfo>,
    putImage = 0x7ffff79b94db <swrastPutImage>, getImage = 0x7ffff79b95da <swrastGetImage>}, extensions = {0x63cb00, 0x0, 0x0, 0x0}, conn = 0x621cf0, wl_dpy = 0x0, wl_server_drm = 0x0, wl_drm = 0x0, authenticated = 0, formats = 0,
  authenticate = 0x0}

Probably will be fixed after this patch http://comments.gmane.org/gmane.comp.video.mesa3d.devel/44330

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in weston (Ubuntu):
status: New → Confirmed
Revision history for this message
Darxus (darxus) wrote :

"NonfreeKernelModules: nvidia"

Wayland does not work with proprietary drivers and is not expected to any time soon. Supported hardware and drivers are covered at the top of: http://wayland.freedesktop.org/building.html

For nvidia, you should be able to get this to work with the nouveau drivers (disabling the proprietary drivers in jockey ("additional drivers") will do this). Or radeon for AMD/ATI hardware instead of fglrx/catalyst. Intel also works.

Revision history for this message
Darxus (darxus) wrote :

I believe this should be closed "Won't Fix", but I don't have the access to do that.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

closing as suggested

Changed in weston (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers