<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>high
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [SNB/IVB/HSW Bisected]Piglit glx/GLX_ARB_create_context/current_with_no_framebuffer segfault"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70599">70599</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>ajax@nwnk.net
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[SNB/IVB/HSW Bisected]Piglit glx/GLX_ARB_create_context/current_with_no_framebuffer segfault
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>huax.lu@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>System Environment:
--------------------------
Platform: Sandybridge/Ivybridge/Haswell
Libdrm:        (master)2.4.47
Mesa:        (9.2)bf9be81b47270dd7ee42b5fe7e8fcf37a7238bee
Xserver:    (server-1.14-branch)xorg-server-1.14.3
Xf86_video_intel:(master)2.99.904-32-gec0866e86d365ae3fd9790b1b263d49fc4981220
Cairo:        (master)6f05ecf488314e4b0c6c6b0110963c449bebe7d7
Libva:        (master)73a11b3e249da35ede92560eb089239252721351
Libva_intel_driver:(master)01b39f7ef75c028a99a02e98af6ec9ca2a9c6773
Kernel:    (drm-intel-fixes) cd66407810869709e0d6764409137d48c6812cfc

Bug detailed description:
-----------------------------
It segfault on Sandybridge/Ivybridge/Haswell with mesa master and 9.2 branch.
Bisect shows:e166a58c43e92f10f03b32747bff44708096f898 is the first bad commit.
commit e166a58c43e92f10f03b32747bff44708096f898
Author: Adam Jackson <<a href="mailto:ajax@redhat.com">ajax@redhat.com</a>>
Date:   Fri Oct 4 09:25:51 2013 -0400

    glx: Generate fewer errors in MakeContextCurrent

    For a few reasons.

    1: In the (current) common case, these conditionals are never true. All
    we're doing by checking them is slowing down MakeCurrent.  The server
    does these checks already anyway.

    2: GLX >= 3.0 contexts may legally be made current without a bound
    framebuffer.

    This does not fix piglit/glx-create-context-current-no-framebuffer, but
    is a prerequisite for fixing it.

    Cc: "9.1 9.2" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>>
    Reviewed-by: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>>
    Signed-off-by: Adam Jackson <<a href="mailto:ajax@redhat.com">ajax@redhat.com</a>>


output:
Segmentation fault (core dumped)

(gdb) bt
#0  XQueryExtension (dpy=dpy@entry=0xffffffff, name=name@entry=0x7ffff7cb14b8
<dri2ExtensionName> "DRI2", major_opcode=major_opcode@entry=0x7fffffffde64,
    first_event=first_event@entry=0x7fffffffde68,
first_error=first_error@entry=0x7fffffffde6c) at QuExt.c:43
#1  0x00007ffff74b8c15 in XInitExtension (dpy=dpy@entry=0xffffffff,
name=name@entry=0x7ffff7cb14b8 <dri2ExtensionName> "DRI2") at InitExt.c:47
#2  0x00007ffff5e5007b in XextAddDisplay (extinfo=0x603330,
dpy=dpy@entry=0xffffffff, ext_name=ext_name@entry=0x7ffff7cb14b8
<dri2ExtensionName> "DRI2",
    hooks=hooks@entry=0x7ffff7cb14c0 <dri2ExtensionHooks>,
nevents=nevents@entry=0, data=data@entry=0x0) at extutil.c:110
#3  0x00007ffff7a7a524 in DRI2FindDisplay (dpy=dpy@entry=0xffffffff) at
dri2.c:81
#4  0x00007ffff7a7b0c7 in DRI2GetBuffersWithFormat (dpy=0xffffffff,
drawable=9176480, width=width@entry=0x8bf898, height=height@entry=0x8bf89c,
attachments=0x7fffffffdfe0,
    count=0, outCount=outCount@entry=0x7fffffffe00c) at dri2.c:465
#5  0x00007ffff7a7893c in dri2GetBuffersWithFormat (driDrawable=<optimized
out>, width=0x8bf898, height=0x8bf89c, attachments=<optimized out>,
count=<optimized out>,
    out_count=0x7fffffffe00c, loaderPrivate=0x33ee3b97d8 <main_arena+88>) at
dri2_glx.c:905
#6  0x00007ffff493758f in intel_query_dri2_buffers
(buffer_count=0x7fffffffe00c, buffers=<synthetic pointer>, drawable=0x8bf870,
brw=0x61e320) at intel_context.c:841
#7  intel_update_renderbuffers (context=context@entry=0x619810,
drawable=drawable@entry=0x8bf870) at intel_context.c:196
#8  0x00007ffff49378c2 in intel_prepare_render (brw=brw@entry=0x61e320) at
intel_context.c:249
#9  0x00007ffff4938828 in intelMakeCurrent (driContextPriv=0x619810,
driDrawPriv=0x8bf870, driReadPriv=0x8bf870) at intel_context.c:764
#10 0x00007ffff49cfc2f in driBindContext (pcp=<optimized out>, pdp=<optimized
out>, prp=<optimized out>) at dri_util.c:382
#11 0x00007ffff7a7a0df in dri2_bind_context (context=0x6109c0, old=<optimized
out>, draw=<optimized out>, read=<optimized out>) at dri2_glx.c:172
#12 0x00007ffff7a4e95a in MakeContextCurrent (dpy=0x602010, draw=0, read=0,
gc_user=0x6109c0) at glxcurrent.c:259
#13 0x0000000000401285 in main (argc=3, argv=0x7fffffffe268) at
/GFX/Test/Piglit/piglit/tests/spec/glx_arb_create_context/current-no-framebuffer.c:77

Reproduce steps:
----------------------------
1. xinit&
2. bin/glx-create-context-current-no-framebuffer -auto -fbo</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>