Bug 133989

Summary: vga driver crash
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Schwab <schwab>
Component: X.OrgAssignee: Egbert Eich <eich>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P2 - High CC: eich, sndirsch
Version: Alpha 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: SaX log file
Fix

Description Andreas Schwab 2005-11-16 13:53:14 UTC
Program received signal SIGSEGV, Segmentation fault.
0x40000000002f2dc0 in AllocatePicturePrivate (pScreen=<value optimized out>, 
    index2=0, amount=0) at picture.c:78
78          if (index2 >= ps->PicturePrivateLen)
(gdb) p index2
$1 = 0
(gdb) p ps
$2 = (PictureScreenPtr) 0x51
(gdb) up
#1  0x40000000002d3810 in miInitializeCompositeWrapper (
    pScreen=0x60000000001bc720) at cw.c:641
641         if (!AllocatePicturePrivate(pScreen, cwPictureIndex, 0))
(gdb) p pScreen
$4 = (ScreenPtr) 0x60000000001bc720
(gdb) p $.devPrivates
$6 = (DevUnion *) 0x60000000001bbd20
(gdb) p PictureScreenPrivateIndex
$7 = -1
Comment 1 Andreas Schwab 2005-11-16 13:53:51 UTC
Created attachment 57499 [details]
SaX log file
Comment 2 Andreas Schwab 2005-11-16 13:57:07 UTC
*** Bug 133988 has been marked as a duplicate of this bug. ***
Comment 3 Andreas Schwab 2005-11-16 13:57:54 UTC
PictureInit is never called before.
Comment 4 Stefan Dirsch 2005-11-16 15:05:51 UTC
I remember seing a problem with X.Org 6.9 vga driver yesterday on x86_64 as well ...
Comment 5 Stefan Dirsch 2005-11-17 10:33:35 UTC
I can reproduce this on i386 (Alpha 3 / X.Org RC2).
Comment 6 Egbert Eich 2005-11-24 17:02:30 UTC
I'll take this.
Comment 7 Stefan Dirsch 2005-11-24 17:06:00 UTC
Thanks!
Comment 8 Egbert Eich 2005-11-28 18:27:57 UTC
Created attachment 58856 [details]
Fix

This patch should fix the problem. The patch for picture.c is a little questionable - but to preserve the semantics I saw no other option.
Comment 9 Stefan Dirsch 2005-11-29 09:05:49 UTC
Thanks! xorg-x11 packages submitted for STABLE (fixed for Alpha4).