Xorg crashed with SIGSEGV in xf86XVRegetVideo

Bug #126820 reported by Tormod Volden
4
Affects Status Importance Assigned to Milestone
X.Org X server
Invalid
High
xorg-server (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

(Gutsy up to date, ~triibe-3)
I had switched to a console, and then back to X. The screen was not properly refreshed and seemed to hang. I switched back to the console again, but then the X server restarted.

ProblemType: Crash
Architecture: i386
Date: Wed Jul 18 20:42:40 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/Xorg
NonfreeKernelModules: cdrom
Package: xserver-xorg-core 2:1.3.0.0.dfsg-6ubuntu2
PackageArchitecture: i386
ProcCmdline: /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
ProcCwd: /etc/X11
ProcEnviron:
 LANGUAGE=
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: xorg-server
StacktraceTop:
 ?? ()
 ?? ()
 ?? () from /lib/ld-linux.so.2
 ?? ()
 ?? ()
Title: Xorg crashed with SIGSEGV
Uname: Linux viki 2.6.22-8-generic #1 SMP Thu Jul 12 15:59:45 GMT 2007 i686 GNU/Linux
UserGroups:

Revision history for this message
In , Bugzi09-fdo-tormod (bugzi09-fdo-tormod) wrote :

Created an attachment (id=10794)
my xorg.conf

(BusType is PCI and BCIforXv is disabled)

Revision history for this message
In , Bugzi09-fdo-tormod (bugzi09-fdo-tormod) wrote :

Created an attachment (id=10795)
my Xorg log

Revision history for this message
In , Bugzi09-fdo-tormod (bugzi09-fdo-tormod) wrote :

Created an attachment (id=10796)
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}

Revision history for this message
In , Bugzi09-fdo-tormod (bugzi09-fdo-tormod) wrote :

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.

Revision history for this message
Tormod Volden (tormodvolden) wrote : Xorg crashed with SIGSEGV in TraverseTree

(Gutsy up to date, ~triibe-3)
I had switched to a console, and then back to X. The screen was not properly refreshed and seemed to hang. I switched back to the console again, but then the X server restarted.

ProblemType: Crash
Architecture: i386
Date: Wed Jul 18 20:42:40 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/Xorg
NonfreeKernelModules: cdrom
Package: xserver-xorg-core 2:1.3.0.0.dfsg-6ubuntu2
PackageArchitecture: i386
ProcCmdline: /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
ProcCwd: /etc/X11
ProcEnviron:
 LANGUAGE=
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: xorg-server
StacktraceTop:
 ?? ()
 ?? ()
 ?? () from /lib/ld-linux.so.2
 ?? ()
 ?? ()
Title: Xorg crashed with SIGSEGV
Uname: Linux viki 2.6.22-8-generic #1 SMP Thu Jul 12 15:59:45 GMT 2007 i686 GNU/Linux
UserGroups:

Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I installed xserver-xorg-core-dbg and got this backtrace. Interesting that it crashes in an xv function: I recently had to disable BCIforXv since it would totally hang the computer.

Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:?? ()
?? ()
?? ()
?? ()
?? ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Wow, that apport retracing was useful, not :)

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}}

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Just making some notes here: 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}

Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
In , Bugzi09-fdo-tormod (bugzi09-fdo-tormod) wrote :

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.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

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.

Some time after doing all the switching tests, I got a solid system freeze. But that can be something completely different.

Changed in xorg-server:
status: New → Invalid
Changed in xorg-server:
status: Confirmed → Invalid
Changed in xorg-server:
importance: Unknown → High
Changed in xorg-server:
importance: High → Unknown
Changed in xorg-server:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.