Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
xserver
xserver
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 864
    • Issues 864
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 93
    • Merge Requests 93
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • xserverxserver
  • Issues
  • #1136

Closed (moved)
Open
Created Feb 14, 2021 by Pavel Liavonau@liavonlida

i915g segfaults with latest glmark2-es2 master branch

System information

  • OS: gentoo linux x86
  • GPU: (Intel 945GSE)
  • Kernel version: (5.4.80)
  • Mesa version: (21.1.0-devel git-a740318e42)
  • Xserver version : (current master)
  • Desktop manager and compositor: kwin and plasma 5.20.5

Describe the issue

glmark2-es2 from https://github.com/glmark2/glmark2 (master) crashes with next backtrace:

$ ~/projects/glmark2 $ gdb build/src/glmark2-es2
GNU gdb (Gentoo 10.1 vanilla) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/src/glmark2-es2...
(No debugging symbols found in build/src/glmark2-es2)
(gdb) run
Starting program: /home/gpaval/projects/glmark2/build/src/glmark2-es2 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
libEGL debug: Native platform type: x11 (build-time configuration)
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglQueryString

libEGL debug: using driver i915 for 4

libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/gpaval/.drirc: No such file or directory.
libEGL debug: pci id for fd 4: 8086:27ae, driver i915

libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/i915_dri.so)

libEGL debug: found extension `DRI_Core'
libEGL info: found extension DRI_Core version 2
libEGL debug: found extension `DRI_IMAGE_DRIVER'
libEGL debug: found extension `DRI_DRI2'
libEGL info: found extension DRI_DRI2 version 4
libEGL debug: found extension `DRI_ConfigOptions'
libEGL debug: found extension `DRI_Core'
libEGL debug: found extension `DRI_IMAGE_DRIVER'
libEGL debug: found extension `DRI_DRI2'
libEGL debug: found extension `DRI_ConfigOptions'
libEGL info: found extension DRI_ConfigOptions version 2
ATTENTION: default value of option vblank_mode overridden by environment.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/gpaval/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/gpaval/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/gpaval/.drirc: No such file or directory.
libEGL debug: found extension `DRI_TexBuffer'
libEGL info: found extension DRI_TexBuffer version 2
libEGL debug: found extension `DRI2_Flush'
libEGL info: found extension DRI2_Flush version 4
libEGL debug: found extension `DRI_RENDERER_QUERY'
libEGL debug: found extension `DRI_CONFIG_QUERY'
libEGL debug: found extension `DRI2_Throttle'
libEGL debug: found extension `DRI2_Fence'
libEGL debug: found extension `DRI2_Interop'
libEGL debug: found extension `DRI_NoError'
libEGL debug: found extension `DRI2_Blob'
libEGL debug: found extension `DRI_IMAGE'
libEGL info: found extension DRI_IMAGE version 18
libEGL debug: found extension `DRI2_BufferDamage'
libEGL debug: found extension `DRI_TexBuffer'
libEGL debug: found extension `DRI2_Flush'
libEGL debug: found extension `DRI_RENDERER_QUERY'
libEGL info: found extension DRI_RENDERER_QUERY version 1
libEGL debug: found extension `DRI_CONFIG_QUERY'
libEGL info: found extension DRI_CONFIG_QUERY version 2
libEGL debug: found extension `DRI2_Throttle'
libEGL debug: found extension `DRI2_Fence'
libEGL info: found extension DRI2_Fence version 2
libEGL debug: found extension `DRI2_Interop'
libEGL info: found extension DRI2_Interop version 1
libEGL debug: found extension `DRI_NoError'
libEGL info: found extension DRI_NoError version 1
libEGL debug: found extension `DRI2_Blob'
libEGL info: found extension DRI2_Blob version 1
libEGL debug: found extension `DRI_IMAGE'
libEGL info: found extension DRI_IMAGE version 18
libEGL debug: found extension `DRI2_BufferDamage'
libEGL info: found extension DRI2_BufferDamage version 1
libEGL debug: did not find optional extension DRI_Robustness version 1
libEGL debug: did not find optional extension DRI_FlushControl version 1
libEGL debug: did not find optional extension DRI_MutableRenderBufferDriver version 1
libEGL info: Using DRI2
=======================================================
    glmark2 2020.04
=======================================================
    OpenGL Information
    GL_VENDOR:     Mesa Project
    GL_RENDERER:   i915 (chipset: 945GME)
    GL_VERSION:    OpenGL ES 2.0 Mesa 21.1.0-devel (git-a740318e42)
=======================================================
[build] use-vbo=false:
Program received signal SIGSEGV, Segmentation fault.
0xb7211553 in validate_constants (i915=0x632810, batch_space=<synthetic pointer>)
    at ../mesa-9999/src/gallium/drivers/i915/i915_state_emit.c:375
375     ../mesa-9999/src/gallium/drivers/i915/i915_state_emit.c: No such file or directory.
(gdb) bt
#0  0xb7211553 in validate_constants (i915=0x632810, batch_space=<synthetic pointer>)
    at ../mesa-9999/src/gallium/drivers/i915/i915_state_emit.c:375
#1  i915_validate_state (batch_space=<synthetic pointer>, i915=0x632810)
    at ../mesa-9999/src/gallium/drivers/i915/i915_state_emit.c:524
#2  i915_emit_hardware_state (i915=i915@entry=0x632810) at ../mesa-9999/src/gallium/drivers/i915/i915_state_emit.c:551
#3  0xb7214fb0 in i915_clear_emit (pipe=pipe@entry=0x632810, buffers=buffers@entry=5, color=color@entry=0xb0506fd0, 
    depth=1, stencil=stencil@entry=0, destx=destx@entry=0, desty=desty@entry=0, width=800, height=600)
    at ../mesa-9999/src/gallium/drivers/i915/i915_clear.c:173
#4  0xb72154d1 in i915_clear_render (pipe=0x632810, buffers=5, scissor_state=0x0, color=0xb0506fd0, depth=1, stencil=0)
    at ../mesa-9999/src/gallium/drivers/i915/i915_clear.c:258
#5  0xb6ae0257 in st_Clear (ctx=0xb04f1010, mask=18) at ../mesa-9999/src/mesa/state_tracker/st_cb_clear.c:544
#6  0xb6d8c449 in clear (no_error=false, mask=<optimized out>, ctx=0xb04f1010) at ../mesa-9999/src/mesa/main/clear.c:225
#7  _mesa_Clear (mask=<optimized out>) at ../mesa-9999/src/mesa/main/clear.c:246
#8  0x004304ae in MainLoop::draw() ()
#9  0x00430ec1 in MainLoop::step() ()
#10 0x0041d01b in do_benchmark(Canvas&) ()
#11 0x0041ad84 in main ()

classic i915 works fine.

Edited Feb 14, 2021 by Pavel Liavonau
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None