Bug 12758

Summary: [945] server crash when two servers are running
Product: xorg Reporter: Michal Suchanek <hramrach>
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: VERIFIED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: fengming.pi, jbarnes, nian.wu
Version: 7.2 (2007.02)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
config file
none
crash with dri
none
crash without dri
none
xorg log file none

Description Michal Suchanek 2007-10-09 18:56:22 UTC
I tried to set up two X servers in gdm, one with autologin. On strtup, the first X server is started, then the second, then a user is automatically logged on on the first (now on inactive terminal). Happened both with and without dri.

I switched the second X server off but when I switched back to console just after X server started I also got a crash.
Comment 1 Michal Suchanek 2007-10-09 18:57:30 UTC
Created attachment 11960 [details]
config file
Comment 2 Michal Suchanek 2007-10-09 18:59:23 UTC
Created attachment 11961 [details]
crash with dri
Comment 3 Michal Suchanek 2007-10-09 19:00:10 UTC
Created attachment 11962 [details]
crash without dri
Comment 4 Jesse Barnes 2007-10-31 15:34:36 UTC
Can you reproduce this with just two servers starting and exiting?  I assume so since I've seen other, similar reports, so I'm updating the description.

You should be able to start multiple servers and switch between them by using "startx -- :1", "startx -- :2", etc.
Comment 5 Gordon Jin 2007-11-12 18:40:53 UTC
Fengming or Nian, can you reproduce this?
Comment 6 WuNian 2007-11-13 00:14:22 UTC
On our 945 platform(945g and 945gm),two nude xserver(using command:X) can coexist without any problem. But two startx(using command:startx -- :n) servers can't coexist:the first one can start as normal,then you start the second one,the display will stop at the the stage of invoking the genome-session(this time screen keep blue color),you can get following error messages:
(==) Log file: "/opt/X11R7/var/log/Xorg.2.log", Time: Tue Nov 13 15:57:34 2007
(==) Using config file: "/etc/X11/xorg.conf"
(II) Module "ddc" already built-in
(II) Module "i2c" already built-in
(II) Module "ramdac" already built-in
(EE) [drm] Could not set DRM device bus ID.
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.
chosen: dotclock 145920 vco 1459200 ((m 76, m1 11, m2 9), n 3, (p 10, p1 1, p2 10))

I can still switch to the first one, which works well. Just the second startx freezes.
Comment 7 WuNian 2007-11-13 00:19:26 UTC
Created attachment 12497 [details]
xorg log file
Comment 8 Jesse Barnes 2008-02-05 16:29:20 UTC
Hm, works for me with the latest 2D driver...

Note that if you're running a full session, the second head won't have DRI, so any apps needing it will fail.  But that's a separate bug (the multi-master feature is missing).

Nian, can you get more info about where the second session hangs?

I don't think we'll be able to fix this for 2.2.1, so I'm dropping it from the blocker list.
Comment 9 WuNian 2008-02-12 23:56:43 UTC
With the latest 2D driver, the second gonme-session can also start up. This bug does not happen to me too.
Comment 10 Jesse Barnes 2008-02-13 09:34:14 UTC
Ok, marking as fixed then.
Comment 11 WuNian 2008-02-13 20:07:55 UTC
verified.

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.