Bug 11340

Summary: Xorg crashes when last client disconnects and DRI is not available
Product: xorg Reporter: Dima Ryazanov <dima>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Log none

Description Dima Ryazanov 2007-06-22 17:47:39 UTC
If I start a second X server or if DRI is not available for some other reason, X crashes when the last client exits.
An easy way to reproduce:

X :1
DISPLAY=:1 xset q

Backtrace:
#0  0xb7c14342 in DRIOpenConnection (pScreen=0x820dad8, hSAREA=0xbfb4fae8,
    busIdString=0xbfb4fae0) at dri.c:663
#1  0xb7c7a815 in __glXDRIscreenProbe (pScreen=0x820dad8) at glxdri.c:904
#2  0xb7c467ad in __glXInitScreens () at glxscreens.c:341
#3  0xb7c45785 in GlxExtensionInit () at glxext.c:350
#4  0x080eee02 in InitExtensions (argc=3, argv=0xbfb4fc74)
    at ../../../mi/miinitext.c:774
#5  0x0807013f in main (argc=3, argv=0xbfb4fc74, envp=0x50) at main.c:379

It crashes when trying to access pDRIPriv->pDriverInfo->busIdString.
Comment 1 Dima Ryazanov 2007-06-22 17:55:53 UTC
Created attachment 10405 [details]
Log
Comment 2 Michel Dänzer 2007-06-25 01:55:14 UTC
Fixed in xserver commit edb9ccf3ecb4e35a840aa13815979c5fbd73f32d.
Comment 3 Dima Ryazanov 2007-06-25 21:39:50 UTC
Wow, that was quick. Thanks!

This bug annoyed me for years... But I never bothered to report it, until 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.