I ran into this error when accidentally using the nouveau driver with NVIDIA's OpenGL implementation. glxinfo reported several lines about missing GLX and then died with a segfault.
On 4/14/09, Brian Paul <[email protected]> wrote: > Marti Raudsepp wrote: >> This caused glxinfo to segfault. >> --- >> src/glx/x11/glxcmds.c | 3 ++- >> 1 files changed, 2 insertions(+), 1 deletions(-) >> >> diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c >> index e5c0db4..161b6f5 100644 >> --- a/src/glx/x11/glxcmds.c >> +++ b/src/glx/x11/glxcmds.c >> @@ -1702,7 +1702,8 @@ PUBLIC GLXFBConfig *glXGetFBConfigs(Display *dpy, >> int screen, int *nelements) >> int i; >> >> *nelements = 0; >> - if ( (priv->screenConfigs != NULL) >> + if ( (priv != NULL) >> + && (priv->screenConfigs != NULL) >> && (screen >= 0) && (screen <= ScreenCount(dpy)) >> && (priv->screenConfigs[screen].configs != NULL) >> && (priv->screenConfigs[screen].configs->fbconfigID != GLX_DONT_CARE) ) >> { > > > The patch looks OK, but I'm wondering about the circumstances when you > get the segfault. I've never seen glxinfo fail here. > > -Brian > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
