<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I believed I created the same failure by deleting libswr*.so, however in my case (running glxgears) I hit a SEGV in XMesaCreateVisual (calling xmdpy->screen->is_format_supported()), because xmesa_init_display() created an xmdpy with a NULL screen.  I never
 get to the xmesa_close_display().
<div class=""><br class="">
</div>
<div class="">Were you just testing with vtk, and maybe hitting a localized issue?  Looks like the failure needs to be taken care of when the screen is initialized the first time.</div>
<div class=""><br class="">
</div>
<div class="">George</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Feb 21, 2018, at 12:13 PM, Chuck Atkins <<a href="mailto:chuck.atkins@kitware.com" class="">chuck.atkins@kitware.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi George,<br class="">
<br class="">
</div>
This first showed up on one of our older dashboard machines without AVX (Nehalem processor).   You can easily reproduce it by building with --with-swr-archs=knl,skx when the machine you're trying to use it on is neither.  Note that dri-glx seems to handle this
 case just fine but xlib-glx segfaults. <br class="">
<div class="gmail_extra"><br clear="all" class="">
<div class="">
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">- Chuck<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<div class="gmail_quote">On Wed, Feb 21, 2018 at 12:36 PM, Kyriazis, George <span dir="ltr" class="">
<<a href="mailto:george.kyriazis@intel.com" target="_blank" class="">george.kyriazis@intel.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Chuck,<br class="">
<br class="">
In which cases do you hit this?  When an architecture is not supported, then swr_create_screen() falls back to a different (older) architecture.<br class="">
<br class="">
Thanks,<br class="">
<br class="">
George<br class="">
<div class="HOEnZb">
<div class="h5"><br class="">
> On Feb 21, 2018, at 8:26 AM, Chuck Atkins <<a href="mailto:chuck.atkins@kitware.com" class="">chuck.atkins@kitware.com</a>> wrote:<br class="">
><br class="">
> This fixes a segfault exposed by a29d63ecf7 which occurs when swr is<br class="">
> used on an unsupported architecture.<br class="">
><br class="">
> Signed-off-by: Chuck Atkins <<a href="mailto:chuck.atkins@kitware.com" class="">chuck.atkins@kitware.com</a>><br class="">
> Cc: <a href="mailto:mesa-stable@lists.freedesktop.org" class="">mesa-stable@lists.freedesktop.<wbr class="">org</a><br class="">
> Cc: George Kyriazis <<a href="mailto:george.kyriazis@intel.com" class="">george.kyriazis@intel.com</a>><br class="">
> Cc: Bruce Cherniak <<a href="mailto:bruce.cherniak@intel.com" class="">bruce.cherniak@intel.com</a>><br class="">
> ---<br class="">
> src/gallium/state_trackers/<wbr class="">glx/xlib/xm_api.c | 11 +++++++----<br class="">
> 1 file changed, 7 insertions(+), 4 deletions(-)<br class="">
><br class="">
> diff --git a/src/gallium/state_trackers/<wbr class="">glx/xlib/xm_api.c b/src/gallium/state_trackers/<wbr class="">glx/xlib/xm_api.c<br class="">
> index 934c0aba11..3aec57e85d 100644<br class="">
> --- a/src/gallium/state_trackers/<wbr class="">glx/xlib/xm_api.c<br class="">
> +++ b/src/gallium/state_trackers/<wbr class="">glx/xlib/xm_api.c<br class="">
> @@ -182,9 +182,12 @@ xmesa_close_display(Display *display)<br class="">
>     * }<br class="">
>     */<br class="">
><br class="">
> -   if (xmdpy->smapi->destroy)<br class="">
> -      xmdpy->smapi->destroy(xmdpy-><wbr class="">smapi);<br class="">
> -   free(xmdpy->smapi);<br class="">
> +   if (xmdpy->smapi)<br class="">
> +   {<br class="">
> +      if (xmdpy->smapi->destroy)<br class="">
> +         xmdpy->smapi->destroy(xmdpy-><wbr class="">smapi);<br class="">
> +      free(xmdpy->smapi);<br class="">
> +   }<br class="">
><br class="">
>    XFree((char *) info);<br class="">
> }<br class="">
> @@ -767,7 +770,7 @@ XMesaVisual XMesaCreateVisual( Display *display,<br class="">
>    XMesaVisual v;<br class="">
>    GLint red_bits, green_bits, blue_bits, alpha_bits;<br class="">
><br class="">
> -   if (!xmdpy)<br class="">
> +   if (!xmdpy || !xmdpy->screen)<br class="">
>       return NULL;<br class="">
><br class="">
>    /* For debugging only */<br class="">
> --<br class="">
> 2.14.3<br class="">
><br class="">
> ______________________________<wbr class="">_________________<br class="">
</div>
</div>
<div class="HOEnZb">
<div class="h5">> mesa-dev mailing list<br class="">
> <a href="mailto:mesa-dev@lists.freedesktop.org" class="">mesa-dev@lists.freedesktop.org</a><br class="">
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank" class="">
https://lists.freedesktop.org/<wbr class="">mailman/listinfo/mesa-dev</a><br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
mesa-dev mailing list<br class="">
<a href="mailto:mesa-dev@lists.freedesktop.org" class="">mesa-dev@lists.freedesktop.org</a><br class="">
https://lists.freedesktop.org/mailman/listinfo/mesa-dev<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>