Bug 726496

Summary: cogs segfaults on startup on i965
Product: [Fedora] Fedora Reporter: John Sullivan <jsrhbz>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: ajax, misieck
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 22:37:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
fix mesa buffer size none

Description John Sullivan 2011-07-28 20:01:38 UTC
Created attachment 515790 [details]
fix mesa buffer size

mesa-7.9-5.fc14.i686

Repro: install and run http://www.cogsgame.com/ (part of the latest http://www.humblebundle.com/).

Game window appears, studio splash displays then fades, a small amount of sound then segfault. gdb shows top of stack is completely trashed with 0xff bytes.

This is a bug in mesa's i965 fp compiler. It tries to call what looks like an internal function from the mesa core to calculate the "live" ranges of registerised values, passes a 256-entry output buffer, but the mesa core function has been modified to use a larger buffer and so overwrites the stack when initialising the buffer.

This patch fixes the DRI driver to provide the same size buffer as is expected.

The same code appears to be either missing or moved in 7.10 and later, so I can't tell whether a similar fix is required for those (fc15 and later).

Comment 1 Michal Pomorski 2011-08-09 00:38:51 UTC
I confirm this bug. Running 2.6.35.13-92.fc14.x86_64. The game crashes both in i686 and x64 versions.

Comment 2 Fedora Update System 2011-11-09 16:14:25 UTC
mesa-7.9-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/mesa-7.9-7.fc14

Comment 3 Fedora Update System 2011-11-10 17:45:43 UTC
Package mesa-7.9-7.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mesa-7.9-7.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15682
then log in and leave karma (feedback).

Comment 4 Fedora End Of Life 2012-08-16 22:37:10 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping