Bug 43682 - SIGSEGV src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4560
Summary: SIGSEGV src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4560
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
: 43683 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-10 00:02 UTC by Vinson Lee
Modified: 2011-12-10 14:07 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2011-12-10 00:02:56 UTC
mesa: 06f217d80f3d1318da4974bf7b31ea7edcf5eb0b

Run piglit test fdo23670-depth_test on a Gallium driver.

$ ./bin/fdo23670-depth_test -auto
Segmentation fault (core dumped)

(gdb) bt
#0  0x00007effa69ce1b7 in st_translate_program (ctx=0x25fdd10, procType=0, ureg=0x280a730, program=0x2713570,
    proginfo=0x2860380, numInputs=1, inputMapping=0x7fffa6d5f500, inputSemanticName=0x7fffa6d5f680 "\005\366զ",
    inputSemanticIndex=0x7fffa6d5f6a0 "", interpMode=0x7fffa6d5f580, numOutputs=1, outputMapping=0x7fffa6d5f600,
    outputSemanticName=0x7fffa6d5f6c0 "\001\367զ\377\177", outputSemanticIndex=0x7fffa6d5f6e0 "",
    passthrough_edgeflags=0 '\000') at src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4560
#1  0x00007effa68edd53 in st_translate_fragment_program (st=0x2666b20, stfp=0x2860380, key=0x7fffa6d5f780)
    at src/mesa/state_tracker/st_program.c:653
#2  0x00007effa68edf73 in st_get_fp_variant (st=0x2666b20, stfp=0x26e04d0, key=0x7fffa6d5f780)
    at src/mesa/state_tracker/st_program.c:728
#3  0x00007effa69b757d in get_color_fp_variant (st=0x2666b20) at src/mesa/state_tracker/st_cb_drawpixels.c:1008
#4  0x00007effa69b779b in st_DrawPixels (ctx=0x25fdd10, x=0, y=0, width=1, height=1, format=6408, type=5126,
    unpack=0x260d5e0, pixels=0x669300) at src/mesa/state_tracker/st_cb_drawpixels.c:1089
#5  0x00007effa692046b in _mesa_DrawPixels (width=1, height=1, format=6408, type=5126, pixels=0x669300)
    at src/mesa/main/drawpix.c:131
#6  0x0000000000429929 in piglit_display () at piglit/tests/bugs/fdo23670-depth_test.c:67
#7  0x0000000000429a29 in display () at piglit/tests/util/piglit-framework.c:56
#8  0x00007effa62bd220 in fghRedrawWindow (window=0x2541ad0) at freeglut_main.c:210
#9  fghcbDisplayWindow (window=0x2541ad0, enumerator=0x7fffa6d5f9b0) at freeglut_main.c:227
#10 0x00007effa62c0939 in fgEnumWindows (enumCallback=0x7effa62bd120 <fghcbDisplayWindow>, enumerator=0x7fffa6d5f9b0)
    at freeglut_structure.c:394
#11 0x00007effa62bd65a in fghDisplayAll () at freeglut_main.c:249
#12 glutMainLoopEvent () at freeglut_main.c:1450
#13 0x00007effa62bdf0e in glutMainLoop () at freeglut_main.c:1498
#14 0x000000000042a14f in main (argc=1, argv=0x7fffa6d5fd08)
    at piglit/tests/util/piglit-framework.c:294
(gdb) frame 0
#0  0x00007effa69ce1b7 in st_translate_program (ctx=0x25fdd10, procType=0, ureg=0x280a730, program=0x2713570,
    proginfo=0x2860380, numInputs=1, inputMapping=0x7fffa6d5f500, inputSemanticName=0x7fffa6d5f680 "\005\366զ",
    inputSemanticIndex=0x7fffa6d5f6a0 "", interpMode=0x7fffa6d5f580, numOutputs=1, outputMapping=0x7fffa6d5f600,
    outputSemanticName=0x7fffa6d5f6c0 "\001\367զ\377\177", outputSemanticIndex=0x7fffa6d5f6e0 "",
    passthrough_edgeflags=0 '\000') at src/mesa/state_tracker/st_glsl_to_tgsi.cpp:4560
4560          if (program->shader_program->FragDepthLayout != FRAG_DEPTH_LAYOUT_NONE) {
(gdb) print program->shader_program
$3 = (gl_shader_program *) 0x0


06f217d80f3d1318da4974bf7b31ea7edcf5eb0b is the first bad commit
commit 06f217d80f3d1318da4974bf7b31ea7edcf5eb0b
Author: Marek Olšák <maraeo@gmail.com>
Date:   Fri Nov 18 15:45:03 2011 +0100

    gallium: implement ARB_conservative_depth

    This adds a new TGSI property to represent the GLSL layout qualifier in TGSI.

:040000 040000 60cb0724736eca98d91fc0e3c0de339832a33416 e5e763680792788c93c6ebfdf11eac6527792617 M      src
bisect run success
Comment 1 Jos van Wolput 2011-12-10 03:14:15 UTC
mesa 06f217d80f3d1318da4974bf7b31ea7edcf5eb0b, gallium driver
breaks boinc-manager graphics: doesn't show graphics of starsphere (einstein@home), restarting xsession instead.
Comment 2 Dave Airlie 2011-12-10 09:34:52 UTC
*** Bug 43683 has been marked as a duplicate of this bug. ***
Comment 3 Dave Airlie 2011-12-10 09:35:33 UTC
should be fixed in master, or at least well papered over.
Comment 4 Vinson Lee 2011-12-10 14:07:45 UTC
mesa: 72cb103cf518c86d8d094380d9f8e16650a0060b (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.