Summary: | [i965] SIGSEGV ir_hv_accept.cpp:45 | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Mesa core | Assignee: | Ian Romanick <idr> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | CC: | brianp, eric, wallbraker |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 30124 |
Description
Vinson Lee
2010-08-27 17:09:20 UTC
This sounds like a build problem. The place where it's crashing is very, very early in the compiler boot-strap process. It's trying to generate IR and function prototypes for the built-in functions. This should either work on every driver or crash on every driver. Can you set a breakpoint at builtin_function.cpp, line 16807 and 'print *sh'? (In reply to comment #1) > This sounds like a build problem. The place where it's crashing is very, very > early in the compiler boot-strap process. It's trying to generate IR and > function prototypes for the built-in functions. This should either work on > every driver or crash on every driver. The i965 driver was built via './autogen.sh --prefix=/usr --enable-debug'. Then libGL.so.1.2 was copied to /usr/lib/mesa and i965_dri.so to /usr/lib/dri. swrast and softpipe were built with 'make linux-x86-debug'. (In reply to comment #1) > Can you set a breakpoint at builtin_function.cpp, line 16807 and 'print *sh'? Breakpoint 1, _mesa_glsl_initialize_functions (instructions=0xd2864b8, state=0xd285f10) at builtin_function.cpp:16808 16808 state); (gdb) print *sh $1 = {Type = 35633, Name = 0, RefCount = 1, DeletePending = 0 '\000', CompileStatus = 0 '\000', Main = 0 '\000', UnresolvedRefs = 0 '\000', Source = 0x0, SourceChecksum = 0, Program = 0x0, InfoLog = 0x0, Pragmas = {IgnoreOptimize = 0 '\000', IgnoreDebug = 0 '\000', Optimize = 0 '\000', Debug = 0 '\000'}, Version = 0, ir = 0xd28fcb8, symbols = 0xd28d8f8, builtins_to_link = {0x0 <repeats 16 times>}, num_builtins_to_link = 0} (gdb) bt full #0 _mesa_glsl_initialize_functions (instructions=0xd2864b8, state=0xd285f10) at builtin_function.cpp:16808 sh = 0xd28d768 #1 0x02cd7815 in _mesa_ast_to_hir (instructions=0xd2864b8, state=0xd285f10) at ast_to_hir.cpp:63 No locals. #2 0x02ccef1f in _mesa_glsl_compile_shader (ctx=0xce83ca0, shader=0xd2853e0) at program/ir_to_mesa.cpp:2701 source = 0xd297c38 "void main(void) {gl_Position = gl_Vertex;gl_TexCoord[0] = gl_MultiTexCoord0;}\n" #3 0x02c0a535 in compile_shader (shaderObj=2) at main/shaderapi.c:803 sh = 0xd28d768 #4 _mesa_CompileShaderARB (shaderObj=2) at main/shaderapi.c:1091 No locals. Could you see if this commit fixes this bug? commit f69a6647fbd5e7cf4406fcc877ff78b507344073 Author: Ian Romanick <ian.d.romanick@intel.com> Date: Wed Sep 8 17:13:00 2010 -0700 glsl2: Clear out profile pointers in _mesa_glsl_release_functions Otherwise builtin_profiles contains dangling pointers the next time _mesa_read_profile is called. I suspect this may fix bugzilla #29847, but I was never able to reproduce it. mesa: e7eff0cfcef5c549678779e3c1def950feae4fb9 (master) Verified fixed. |
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.