Bug 29601 - Crash in video games in the new glsl compiler
Summary: Crash in video games in the new glsl compiler
Status: RESOLVED DUPLICATE of bug 29717
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 22:27 UTC by Benjamin Segovia
Modified: 2010-08-27 15:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Benjamin Segovia 2010-08-16 22:27:16 UTC
I tried to run nexuiz and warson on a Linux. Both crash in the shader compiler.
Here is the backtrace while running warsow:
#0  0x00007ffff395d3a4 in ir_has_call (ir=0x6554200000000000) at ir_basic_block.cpp:56
#1  0x00007ffff38e9a1e in do_dead_code (instructions=0x18d7020) at ir_dead_code.cpp:82
#2  0x00007ffff38e9c21 in do_dead_code_unlinked (instructions=0x1ab2050) at ir_dead_code.cpp:128
#3  0x00007ffff38d8de3 in do_common_optimization (ir=0x1ab2050, linked=false) at glsl_parser_extras.cpp:727
#4  0x00007ffff38b729d in _mesa_glsl_compile_shader (ctx=0x1450270, shader=0x1e51a90) at program/ir_to_mesa.cpp:2646
#5  0x00007ffff37b8dc0 in compile_shader (ctx=0x1450270, shaderObj=6) at main/shaderapi.c:805
#6  0x00007ffff37b9526 in _mesa_CompileShaderARB (shaderObj=6) at main/shaderapi.c:1093
#7  0x0000000000490999 in R_CompileGLSLShader ()
#8  0x0000000000491a95 in R_RegisterGLSLProgram ()
#9  0x0000000000491c07 in R_InitGLSLPrograms ()
#10 0x00000000004a4b48 in R_Restart ()
#11 0x000000000044ea5f in CL_InitMedia ()
#12 0x0000000000451db7 in CL_Init ()
#13 0x000000000041c85f in Qcommon_Init ()
#14 0x0000000000462c4b in main ()

In ir_has_call, parameter ir cannot be accessed.
Comment 1 Eric Anholt 2010-08-17 09:32:40 UTC
Both run fine for me.  Maybe some particular combination of graphics settings?  MESA_GLSL=dump can get you shader source to trim down to a minimal testcase to run under glsl_compiler for debugging, since your failure is during compile.
Comment 2 Benjamin Segovia 2010-08-17 11:51:43 UTC
(In reply to comment #1)
> Both run fine for me.  Maybe some particular combination of graphics settings? 
> MESA_GLSL=dump can get you shader source to trim down to a minimal testcase to
> run under glsl_compiler for debugging, since your failure is during compile.

I did it. But it is a "uber shader". Is there any way to get the preprocessor rules given by the compiler?
Comment 3 Eric Anholt 2010-08-27 15:48:53 UTC
More info in the other report, moving this there.

*** This bug has been marked as a duplicate of bug 29717 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.