segfault in SavageSwitchMode when ppracer switches mode

Bug #136824 reported by Tormod Volden
2
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Medium
xserver-xorg-video-savage (Ubuntu)
Fix Released
Medium
Kees Cook

Bug Description

Binary package hint: xserver-xorg-video-savage

My laptop screen resolution is 1024x768. If I start ppracer with no configuration file, it will use 800x600 in fullscreen, and this makes the X server crash. If I set 1024x800 in .ppracer/options it works fine. If I change resolution with "xrandr 800x600" before starting ppracer it also works fine.

Backtrace:
0: /usr/bin/Xorg(xf86SigHandler+0x81) [0x80c76f1]
1: [0xffffe420]
2: /usr/lib/xorg/modules/drivers//savage_drv.so(SavageSwitchMode+0xa0) [0xb7baf620]
3: /usr/bin/Xorg [0x81005a3]
4: /usr/bin/Xorg [0x80da563]
5: /usr/bin/Xorg(xf86SwitchMode+0xce) [0x80e531e]
6: /usr/bin/Xorg(VidModeSwitchMode+0x6d) [0x80d5f9d]
7: /usr/lib/xorg/modules/extensions//libextmod.so [0xb7c4459a]
8: /usr/bin/Xorg [0x815768e]
9: /usr/bin/Xorg(Dispatch+0x1aa) [0x808f49a]
10: /usr/bin/Xorg(main+0x495) [0x8076f25]

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

Created an attachment (id=11392)
gdb session after crash

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

Binary package hint: xserver-xorg-video-savage

My laptop screen resolution is 1024x768. If I start ppracer with no config file, it will use 800x600 in fullscreen, and this makes the X server crash. If I set 1024x800 in .ppracer/config it works fine. If I change resolution with "xrandr 800x600" before starting ppracer it also works fine.

Backtrace:
0: /usr/bin/Xorg(xf86SigHandler+0x81) [0x80c76f1]
1: [0xffffe420]
2: /usr/lib/xorg/modules/drivers//savage_drv.so(SavageSwitchMode+0xa0) [0xb7baf620]
3: /usr/bin/Xorg [0x81005a3]
4: /usr/bin/Xorg [0x80da563]
5: /usr/bin/Xorg(xf86SwitchMode+0xce) [0x80e531e]
6: /usr/bin/Xorg(VidModeSwitchMode+0x6d) [0x80d5f9d]
7: /usr/lib/xorg/modules/extensions//libextmod.so [0xb7c4459a]
8: /usr/bin/Xorg [0x815768e]
9: /usr/bin/Xorg(Dispatch+0x1aa) [0x808f49a]
10: /usr/bin/Xorg(main+0x495) [0x8076f25]

Revision history for this message
Tormod Volden (tormodvolden) wrote :
description: updated
Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
In , Brice Goglin (brice-goglin) wrote :

Same problem has been reported with Savage driver 2.1.3 in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440839

"When I start dosemu in fullscreen mode X crashes. It does not happen on
other graphics hardware or when I disable the fullscreen feature."

Revision history for this message
In , agd5f (agd5f) wrote :

This should be fixed in commit: 846a69f70d189c486448df269a512b8d42fab0c2

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

Thanks! That solved the problem.

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

I made a debdiff with the upstream fix:

  * upstream commit 846a69f70d189c486448df269a512b8d42fab0c2
    Fixes crash when switching modes (LP: #136824)

Revision history for this message
Bryce Harrington (bryce) wrote :

The debdiff looks safe enough to me. +1 for uploading it for Gutsy.

Changed in xserver-xorg-video-savage:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Kees Cook (kees) wrote :

Thanks! Building now.

Changed in xserver-xorg-video-savage:
assignee: nobody → keescook
status: Triaged → Fix Committed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Alternative debdiff, using quilt for the patch.

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

xserver-xorg-video-savage (1:2.1.2-6ubuntu1) gutsy; urgency=low

  * debian/patches/01_panning-check-mode.patch: From upstream commit
    846a69f70d189c486448df269a512b8d42fab0c2. Fixes crash when switching
    modes (LP: #136824)

 -- Tormod Volden <email address hidden> Tue, 18 Sep 2007 00:20:58 +0200

Changed in xserver-xorg-video-savage:
status: Fix Committed → Fix Released
Changed in xorg-server:
importance: Unknown → Medium
Changed in xorg-server:
importance: Medium → Unknown
Changed in xorg-server:
importance: Unknown → Medium
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.