Bug 17783

Summary: [i965 classic] glxcontexts will fail with segmentation fault when start in Gnome
Product: Mesa Reporter: zhao jian <jian.j.zhao>
Component: Drivers/DRI/i965Assignee: Eric Anholt <eric>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xorg.conf
Xorg.0.conf

Description zhao jian 2008-09-25 19:33:20 UTC
System Environment:
--------------------------
--Platform: gm45
--Architecture(32-bit,64-bit,compatiblity): x86_64
--2D driver: xf86-video-intel-2.5-branch
                 8408995ffbf705aa0bc09ab72c58c2e31a4b70c3
--3D driver: intel-2008-q3 branch e636f5b76bbcfef95092d21646c844c0dfe770e0
--DRM:shipped with kernel 2.6.27-rc6
--libdrm: master 2db8e0c8ef8c7a66460fceda129533b364f6418c
--Xserver: 1.5.1
--Kernel: 2.6.27-rc6

Bug detailed description:
--------------------------
start X and gnome, run glxcontexts, it can't start with the following message:
libGL: XF86DRIGetClientDriverName: 1.9.0 i965 (screen 0)
libGL: OpenDriver: trying /opt/X11R7/lib/dri/i965_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
Failed to initialize GEM.  Falling back to classic.
Segmentation fault

Reproduce steps:
----------------
1. xinit &
2. gnome-session&
3. ./glxcontexts

Note: 
If I run without gnome, it will run successfully. (1. xinit & 2. ./glxcontexts)
Comment 1 zhao jian 2008-09-25 19:34:32 UTC
Created attachment 19222 [details]
xorg.conf
Comment 2 zhao jian 2008-09-25 19:35:24 UTC
Created attachment 19223 [details]
Xorg.0.conf
Comment 3 zhao jian 2008-09-26 00:15:02 UTC
With mesa7.2 it still has such issue.
Comment 4 zhao jian 2008-10-05 22:35:17 UTC
With the latest gem-class branch it can runs. But after it runs for a while, it will become slow and almost hangs there. As following shows:  
libGL: XF86DRIGetClientDriverName: 1.9.0 i965 (screen 0)
libGL: OpenDriver: trying /opt/X11R7/lib/dri/i965_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
Failed to initialize GEM.  Falling back to classic.
45 frames in 1.0 seconds = 44.239 FPS
44 frames in 1.0 seconds = 43.237 FPS
46 frames in 1.0 seconds = 45.581 FPS
46 frames in 1.0 seconds = 45.438 FPS
45 frames in 1.0 seconds = 44.076 FPS
46 frames in 1.0 seconds = 45.997 FPS
45 frames in 1.0 seconds = 44.173 FPS
46 frames in 1.0 seconds = 45.147 FPS
45 frames in 1.0 seconds = 44.267 FPS
42 frames in 1.0 seconds = 41.631 FPS
35 frames in 1.0 seconds = 34.845 FPS
35 frames in 1.0 seconds = 34.679 FPS
15 frames in 1.1 seconds = 14.258 FPS
15 frames in 1.1 seconds = 13.700 FPS
12 frames in 1.0 seconds = 11.584 FPS
16 frames in 1.0 seconds = 15.717 FPS
9 frames in 1.6 seconds =  5.548 FPS
28 frames in 1.0 seconds = 27.716 FPS
28 frames in 1.0 seconds = 27.678 FPS
19 frames in 1.2 seconds = 15.897 FPS
22 frames in 1.0 seconds = 21.858 FPS
10 frames in 1.3 seconds =  7.801 FPS
21 frames in 1.1 seconds = 18.407 FPS
19 frames in 1.1 seconds = 16.811 FPS
31 frames in 1.1 seconds = 28.133 FPS
25 frames in 1.2 seconds = 21.597 FPS
32 frames in 1.0 seconds = 30.714 FPS
21 frames in 1.1 seconds = 19.089 FPS
13 frames in 1.1 seconds = 11.980 FPS
8 frames in 3.7 seconds =  2.152 FPS
1 frames in 521.9 seconds =  0.002 FPS
1 frames in 19.3 seconds =  0.052 FPS
Comment 5 Gordon Jin 2008-10-06 02:14:55 UTC
Jian, do you get the same result with mesa_7_2_branch?
Comment 6 Eric Anholt 2008-10-06 13:04:50 UTC
I'm pretty sure I've already got the chipset-dependent leaks fixed, so I'm closing this one as a dupe of the chipset-independent leaks bug.

*** This bug has been marked as a duplicate of bug 17779 ***
Comment 7 zhao jian 2009-06-10 00:26:58 UTC
verified. 
Comment 8 Adam Jackson 2009-08-24 12:30:55 UTC
Mass version move, cvs -> git

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.