Bug#901563: bumblebee: using optirun introduces segfault in i965_dri.so

Vincas Dargis vindrg at gmail.com
Thu Jun 14 19:31:50 BST 2018


Package: bumblebee
Version: 3.2.1-17
Severity: normal

Dear Maintainer,

Looks like after recent Mesa update in Sid, I cannot use optirun any
more on laptop with i7-4710HQ and GM107M [GeForce GTX 860M] as it
introduces crash for application run under it. 

Launching `optirun glxgears` makes glxgears crash:

```
$ sudo tail -f /var/log/kern.log -n 0
Jun 14 21:22:04 vinco kernel: [ 8317.861162] bbswitch: enabling discrete graphics
Jun 14 21:22:04 vinco kernel: [ 8318.255147] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
Jun 14 21:22:04 vinco kernel: [ 8318.255469] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.59  Wed May  9 22:33:42 PDT 2018 (using threaded interrupts)
Jun 14 21:22:04 vinco kernel: [ 8318.533751] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.59  Wed May  9 21:59:27 PDT 2018
Jun 14 21:22:04 vinco kernel: [ 8318.535005] nvidia-modeset: Allocated GPU:0 (GPU-c10fe523-ec15-e66c-141e-f0e0dbf01714) @ PCI:0000:01:00.0
Jun 14 21:22:04 vinco kernel: [ 8318.535280] nvidia-modeset: Freed GPU:0 (GPU-c10fe523-ec15-e66c-141e-f0e0dbf01714) @ PCI:0000:01:00.0
Jun 14 21:22:04 vinco kernel: [ 8318.608765] nvidia-modeset: Allocated GPU:0 (GPU-c10fe523-ec15-e66c-141e-f0e0dbf01714) @ PCI:0000:01:00.0
Jun 14 21:22:04 vinco kernel: [ 8318.609032] nvidia-modeset: Freed GPU:0 (GPU-c10fe523-ec15-e66c-141e-f0e0dbf01714) @ PCI:0000:01:00.0
Jun 14 21:22:04 vinco kernel: [ 8318.660159] glxgears[10094]: segfault at 74 ip 00007f96c53ed4a7 sp 00007f96c31deb30 error 4 in i965_dri.so[7f96c4f7c000+8ab000]
Jun 14 21:22:04 vinco kernel: [ 8318.687589] nvidia-modeset: Unloading
Jun 14 21:22:04 vinco kernel: [ 8318.712623] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
Jun 14 21:22:04 vinco kernel: [ 8318.737995] bbswitch: disabling discrete graphics
Jun 14 21:22:04 vinco kernel: [ 8318.756773] pci 0000:01:00.0: Refused to change power state, currently in D0
```

Backgrace:

```
Thread 2.3 "glxgears" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee092700 (LWP 10545)]
0x00007ffff02914a7 in do_blit_drawpixels (pixels=0x0, unpack=0x7fffe0150ac8, type=5121, format=32993, height=1080, width=1920, y=0, x=0, ctx=0x7fffe0147540) at ../../../../../../src/mesa/drivers/dri/i965/intel_pixel_draw.c:80
80	../../../../../../src/mesa/drivers/dri/i965/intel_pixel_draw.c: Toks failas ar aplankas neegzistuoja.
#0  0x00007ffff02914a7 in do_blit_drawpixels (pixels=0x0, unpack=0x7fffe0150ac8, type=5121, format=32993, height=1080, width=1920, y=0, x=0, ctx=0x7fffe0147540) at ../../../../../../src/mesa/drivers/dri/i965/intel_pixel_draw.c:80
        src_offset = <optimized out>
        src_buffer = <optimized out>
        dst_format = 3761243984
        src_stride = <optimized out>
        src_flip = <optimized out>
        pbo_mt = 0x0
        rb = <optimized out>
        src_format = MESA_FORMAT_B8G8R8A8_UNORM
#1  intelDrawPixels (ctx=0x7fffe0147540, x=0, y=0, width=1920, height=1080, format=32993, type=5121, unpack=0x7fffe0150ac8, pixels=0x0) at ../../../../../../src/mesa/drivers/dri/i965/intel_pixel_draw.c:167
        __func__ = "intelDrawPixels"
#2  0x00007fffefedaf33 in _mesa_DrawPixels (width=1920, height=1080, format=32993, type=5121, pixels=0x0) at ../../../src/mesa/main/drawpix.c:162
        err = <optimized out>
        ctx = 0x7fffe0147540
#3  0x00007ffff76b8345 in test_drawpixels_fast (dconfig=<optimized out>, ctx=0x7fffe00239c0, dpy=0x7fffe0000b20) at libglfork.cpp:362
        pbo = 1
        end = 8568.4529074310012
        iters = 0
        is_fast = <optimized out>
        width = 1920
        height = 1080
        pbattrs = {32833, 1920, 32832, 1080, 32795, 1, 0}
        pbuffer = 146800642
        pixeldata = <optimized out>
#4  display_work (vd=<optimized out>) at libglfork.cpp:402
        drawable = 144703490
        width = 300
        height = 300
        quad_vertex_coords = {-1, -1, -1, 1, 1, 1, 1, -1}
        quad_texture_coords = {0, 0, 0, 1, 1, 1, 1, 0}
        textures = {0, 0}
        pbos = {0, 0}
        ctex = 0
        state_names = {0x7ffff76c1244 "wait", 0x7ffff76c1249 "upload", 0x7ffff76c1250 "draw+swap", 0x0}
        profiler = {name = 0x7ffff76c1203 "display", state_names = 0x7ffff78d12e0 <display_work(void*)::state_names>, state_time = {0, 0, 0, 0, 0, 0}, prev_timestamp = 8568.2315354050006, print_timestamp = 8568.2315354050006, state = 0, nframes = 0, width = 0, height = 0}
        ddpy = 0x7fffe0000b20
        __PRETTY_FUNCTION__ = "void* display_work(void*)"
        dconfigs = 0x7fffe000fff0
        context = 0x7fffe00239c0
        use_textures = <optimized out>
#5  0x00007ffff62455aa in start_thread (arg=0x7fffee092700) at pthread_create.c:463
        pd = 0x7fffee092700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737186965248, 6747949740819525267, 140737488347470, 140737488347471, 140737488347472, 0, -6747988065853329773, -6747970307990442349}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#6  0x00007ffff6aebcbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
```

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bumblebee depends on:
ii  bbswitch-dkms      0.8-5
ii  dpkg               1.19.0.5+b1
ii  libbsd0            0.9.1-1
ii  libc6              2.27-3
ii  libglib2.0-0       2.56.1-2
ii  libkmod2           25-1
ii  libx11-6           2:1.6.5-1
ii  lsb-base           9.20170808
ii  xserver-xorg-core  2:1.20.0-2

Versions of packages bumblebee recommends:
ii  primus  0~20150328-6

Versions of packages bumblebee suggests:
ii  bumblebee-nvidia  3.2.1-17

-- no debconf information



More information about the pkg-nvidia-devel mailing list