Bug 54239 - SIGSEGV src/mesa/drivers/common/meta.c:1085
Summary: SIGSEGV src/mesa/drivers/common/meta.c:1085
Status: RESOLVED 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:
Depends on:
Blocks:
 
Reported: 2012-08-30 03:06 UTC by Vinson Lee
Modified: 2012-08-31 04:47 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (54.31 KB, text/plain)
2012-08-30 07:20 UTC, Jos van Wolput
Details

Description Vinson Lee 2012-08-30 03:06:36 UTC
Run piglit arb_multisample-pushpop on softpipe or llvmpipe.

$ ./bin/arb_multisample-pushpop
sanity test test:
Segmentation fault (core dumped)

(gdb) bt
#0  0x00007f3cf7d83a67 in _mesa_meta_in_progress (ctx=ctx@entry=0x1ed86e0)
    at ../../../src/mesa/drivers/common/meta.c:1085
#1  0x00007f3cf832c2b8 in _mesa_set_enable (ctx=0x1ed86e0, cap=32925, 
    state=<optimized out>) at ../../src/mesa/main/enable.c:771
#2  0x00007f3cfbd3438f in stub_glEnable (cap=32925)
    at piglit/tests/util/generated_dispatch.c:5645
#3  0x0000000000400ee9 in set_enable_bits (val=true)
    at piglit/tests/spec/arb_multisample/pushpop.c:97
#4  0x00000000004010d0 in pushpop (bit=0, test=0x401483 "sanity test", 
    affects_enabled=true, affects_other=true)
    at piglit/tests/spec/arb_multisample/pushpop.c:156
#5  0x00000000004011da in piglit_init (argc=1, argv=0x7ffffa04b478)
    at piglit/tests/spec/arb_multisample/pushpop.c:192
#6  0x00007f3cfbd2618c in piglit_gl_test_run (argc=1, argv=0x7ffffa04b478, 
    info=0x7ffffa04b370) at piglit/tests/util/piglit-framework.c:133
#7  0x0000000000400d61 in main (argc=1, argv=0x7ffffa04b478)
    at piglit/tests/spec/arb_multisample/pushpop.c:54
(gdb) frame 0
#0  0x00007f3cf7d83a67 in _mesa_meta_in_progress (ctx=ctx@entry=0x1ed86e0)
    at ../../../src/mesa/drivers/common/meta.c:1085
1085	   return ctx->Meta->SaveStackDepth != 0;
(gdb) print ctx->Meta
$1 = (struct gl_meta_state *) 0x0


d638da23d2ec2e9c52655b1ea138249e7f8bcccb is the first bad commit
commit d638da23d2ec2e9c52655b1ea138249e7f8bcccb
Author: Paul Berry <stereotype441@gmail.com>
Date:   Wed Aug 8 11:56:33 2012 -0700

    meta: Don't stray outside the confines of the API specified in the context
    
    Signed-off-by: Paul Berry <stereotype441@gmail.com>
    Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>

:040000 040000 fbabd4b3b67869f18ba255cf3f53e3955163313e 1bee307142209333210a019471ffcac041e84ff9 M	src
bisect run success
Comment 1 Jos van Wolput 2012-08-30 07:20:47 UTC
Created attachment 66315 [details]
Xorg.0.log

Xorg.log after running Einstein@home starsphere graphics using
mesa-d638da23d2ec2e9c52655b1ea138249e7f8bcccb.
Comment 2 Jos van Wolput 2012-08-30 07:25:27 UTC
Segmentation fault when running Einstein@home starsphere graphics.
d638da23d2ec2e9c52655b1ea138249e7f8bcccb is the first bad commit too.
Comment 3 Paul Berry 2012-08-30 15:25:38 UTC
There's a patch on the mesa-dev list awaiting review that I believe will fix this ([PATCH] meta: remove call to _meta_in_progress(), fix multisample enable/disable).

Patch can be found here: http://lists.freedesktop.org/archives/mesa-dev/2012-August/026576.html

Vinson, can you confirm whether this patch fixes the problem?
Comment 4 Brian Paul 2012-08-31 02:19:52 UTC
Should be fixed by commit 055093e33fc90705c429e948caefedf0e0fb82af
Re-open if not.
Comment 5 Jos van Wolput 2012-08-31 04:47:01 UTC
(In reply to comment #4)
> Should be fixed by commit 055093e33fc90705c429e948caefedf0e0fb82af

The Einstein@home starsphere graphics issue is fixed.
Thanks!


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.