Bug 64934

Summary: [llvmpipe] SIGSEGV src/gallium/state_trackers/glx/xlib/glx_api.c:1363
Product: Mesa Reporter: Vinson Lee <vlee>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium Keywords: have-backtrace
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2013-05-24 01:40:38 UTC
mesa: b1797c3a3867ab60419bb9ec13dd9cb842edcbe3 (master)

Run glxinfo on llvmpipe on Fedora.

$ glxinfo
Segmentation fault (core dumped)

(gdb) bt
#0  0x00007f457293ea17 in glXDestroyContext (dpy=0x211b540, ctx=0x0)
    at src/gallium/state_trackers/glx/xlib/glx_api.c:1363
#1  0x0000000000403106 in create_context_flags (contextFlags=0, profileMask=1, 
    direct=1, minor=<optimized out>, major=<optimized out>, 
    fbconfig=0x212a3e0, dpy=0x211b540) at glxinfo.c:745
#2  create_context_with_config (dpy=0x211b540, config=0x212a3e0, 
    coreProfile=<optimized out>, direct=1) at glxinfo.c:776
#3  0x000000000040357d in print_screen_info (dpy=dpy@entry=0x211b540, 
    scrnum=scrnum@entry=0, allowDirect=allowDirect@entry=1, 
    coreProfile=coreProfile@entry=1, limits=limits@entry=0, 
    singleLine=singleLine@entry=0, coreWorked=coreWorked@entry=0)
    at glxinfo.c:854
#4  0x00000000004016b4 in main (argc=<optimized out>, argv=<optimized out>)
    at glxinfo.c:1731
(gdb) frame 0
#0  0x00007f457293ea17 in glXDestroyContext (dpy=0x211b540, ctx=0x0)
    at src/gallium/state_trackers/glx/xlib/glx_api.c:1363
1363	   XMesaDestroyContext( glxCtx->xmesaContext );
(gdb) print glxCtx
$1 = (GLXContext) 0x0
Comment 1 Brian Paul 2013-05-24 14:12:00 UTC
I've posted patches to add null pointer checking in glXDestroyContext.

But the latest build of glxinfo wouldn't call glXDestroyContext with a null context either.

In any case, I'm not sure why context creation is failing for you in this case.
Comment 2 Vinson Lee 2014-01-01 05:39:34 UTC
mesa: 5a51c1b01a16d3256f9769a76d8293fea5853b1f (master)

glxinfo on llvmpipe on Fedora works correctly now.

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.