[Bug 107879] crash happens when link program

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 10 04:30:42 UTC 2018


            Bug ID: 107879
           Summary: crash happens when link program
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: intel-3d-bugs at lists.freedesktop.org
          Reporter: xinghua.cao at intel.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Created attachment 141498
  --> https://bugs.freedesktop.org/attachment.cgi?id=141498&action=edit

This issue happens on chrome when run this case,
But I also reproduced it when writing a simple case.
1. Download the attached file, and use "gcc -o verpixshader verpixshader.c
-lX11 -lepoxy" to build target file.
2. run "./verpixshader", crash happens.

Note: It seems a regression of latest mesa code. And the crash stack is as
Thread 1 "verpixshader" received signal SIGSEGV, Segmentation fault.
validate_intrinsic_instr (state=<optimized out>, instr=0x555555ed4210) at
525           validate_assert(state, dst->type == src->type);
(gdb) bt
#0  validate_intrinsic_instr (state=<optimized out>, instr=0x555555ed4210) at
#1  validate_instr (state=<optimized out>, instr=0x555555ed4210) at
#2  validate_block (state=<optimized out>, block=0x555555ef5680) at
#3  validate_cf_node (node=0x555555ef5680, state=<optimized out>) at
#4  0x00007ffff37f428b in validate_function_impl (state=<optimized out>,
impl=<optimized out>) at nir/nir_validate.c:1095
#5  validate_function (state=0x7fffffffd940, func=0x55555590d690) at
#6  nir_validate_shader (shader=shader at entry=0x555555ec4610) at
#7  0x00007ffff3a32bdd in brw_nir_optimize (nir=nir at entry=0x555555ec4610,
compiler=compiler at entry=0x55555579bf50, is_scalar=is_scalar at entry=true,
allow_copies=allow_copies at entry=true)
    at compiler/brw_nir.c:584
#8  0x00007ffff3a34d45 in brw_preprocess_nir (compiler=0x55555579bf50,
nir=nir at entry=0x555555ec4610) at compiler/brw_nir.c:685
#9  0x00007ffff38651c7 in brw_create_nir (brw=brw at entry=0x5555558c8e60,
shader_prog=shader_prog at entry=0x555555903e60, prog=prog at entry=0x555555908330,
stage=stage at entry=MESA_SHADER_FRAGMENT, 
    is_scalar=<optimized out>) at brw_program.c:106
#10 0x00007ffff38595b1 in brw_link_shader (ctx=0x5555558c8e60,
shProg=0x555555903e60) at brw_link.cpp:267
#11 0x00007ffff36524e7 in _mesa_glsl_link_shader (ctx=ctx at entry=0x5555558c8e60,
prog=prog at entry=0x555555903e60) at program/ir_to_mesa.cpp:3180
#12 0x00007ffff355075c in link_program (no_error=<optimized out>,
shProg=<optimized out>, ctx=<optimized out>) at main/shaderapi.c:1211
#13 link_program_error (ctx=0x5555558c8e60, shProg=0x555555903e60) at
#14 0x00007ffff3550a97 in _mesa_LinkProgram (programObj=<optimized out>) at
#15 0x00005555555550ee in main ()

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180910/cc4775f4/attachment.html>

More information about the intel-3d-bugs mailing list