Bug 11654 - Crashes when switching from console to X
Summary: Crashes when switching from console to X
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Other All
: medium major
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: https://bugs.launchpad.net/bugs/126820
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-18 14:58 UTC by Tormod Volden
Modified: 2007-09-01 05:57 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
my xorg.conf (2.92 KB, text/plain)
2007-07-18 15:00 UTC, Tormod Volden
no flags Details
my Xorg log (41.83 KB, text/plain)
2007-07-18 15:03 UTC, Tormod Volden
no flags Details
debug stacktrace (3.11 KB, text/plain)
2007-07-18 15:05 UTC, Tormod Volden
no flags Details

Description Tormod Volden 2007-07-18 14:58:33 UTC
This bug was reported in Ubuntu https://bugs.launchpad.net/bugs/126820

After a fresh reboot (and with savage driver from git), I changed to a console, and back. It worked. Then again to a console and back and now it crashed.
Comment 1 Tormod Volden 2007-07-18 15:00:59 UTC
Created attachment 10794 [details]
my xorg.conf

(BusType is PCI and BCIforXv is disabled)
Comment 2 Tormod Volden 2007-07-18 15:03:44 UTC
Created attachment 10795 [details]
my Xorg log
Comment 3 Tormod Volden 2007-07-18 15:05:58 UTC
Created attachment 10796 [details]
debug stacktrace

I guess it crashed here (line 712 in xf86xv.c):
  pScreen = portPriv->pDraw->pScreen;

since portPriv->pDraw is 0.

(gdb) print *portPriv
$2 = {pScrn = 0x8211430, pDraw = 0x0, type = 0 '\0', subWindowMode = 0, clipOrg = {x = 0, y = 0}, clientClip = 0x0, pCompositeClip = 0x2c, FreeCompositeClip = 0, AdaptorRec = 0x82583d0, isOn = XV_OFF, moved = 0, vid_x = 0, vid_y = 0, vid_w = 0, vid_h = 0, drw_x = 0, drw_y = 0, drw_w = 0, drw_h = 0, DevPriv = {ptr = 0x82584bc, val = 136676540, uval = 136676540, fptr = 0x82584bc}}


I don't know if this is useful:
Before xf86XVEnterVT calls WalkTree, it calls ScreenPriv->EnterVT which is CMapEnterVT:

(gdb) print *(XF86XVScreenPtr) ((XvScreenPtr) pScreen->devPrivates[XF86XvScreenIndex].ptr)->devPriv.ptr
$24 = {DestroyWindow = 0xb7ce4a00 <XvDestroyWindow>, ClipNotify = 0xb7c73a60 <DRIClipNotify>, WindowExposures = 0xb7c72a30 <DRIWindowExposures>, AdjustFrame = 0xb7c73200 <DRIAdjustFrame>, EnterVT = 0x80d08d0 <CMapEnterVT>, LeaveVT = 0xaf99b480 <XAALeaveVT>, videoGC = 0x0}
Comment 4 Tormod Volden 2007-07-18 15:29:30 UTC
To see if it was a regression in the new savage driver, I went back to 2.1.2-5 (git from some months ago) but I could still reproduce. I also disabled DRI but   no change.

After logging in, it seems that I can switch back and forth without problem for a while. But if I start Rhythmbox and start playing, the album cover is displayed - which I guess uses xv - and then X will crash if I switch to a console and back.
Comment 5 Tormod Volden 2007-09-01 05:57:56 UTC
I am not able to reproduce any longer, using xserver-xorg-core 2:1.3.0.0.dfsg-12ubuntu2 and xserver-xorg-video-savage 1:2.1.2-6, no options in xorg.conf.


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.