New: Segfaults while parsing a shader shown to work on other platforms
http://bugs.freedesktop.org/show_bug.cgi?id=25934
Summary: Segfaults while parsing a shader shown to work on other
platforms
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r300
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=32489)
--> (http://bugs.freedesktop.org/attachment.cgi?id=32489)
A log of the gdb session with backtrace and shader source
After rebuilding Mesa (with debugging symbols) from the git master branch (at revision 6f498a7eff26dc055c0a1f75ce3102aa4a1a0141 ), I am unable to run a game that utilizes 3d accel and shaders that (mostly) worked previously.
This particular issue did not appear to affect me in my previous build (which was also from git master branch built around 2009-12-24 or so, I believe).
I am running Gentoo ~amd64. My graphics card is a Radeon X850.
The bug manifests with the following versions of software:
libdrm commit 5dbc1b333b85695735dc5b484372758b9979b693 mesa commit 6f498a7eff26dc055c0a1f75ce3102aa4a1a0141 xf86-video-ati commit 48aa5064aff4b9adf768e480df2312d4375e9c40 nvidia-cg-toolkit version 2.2.0010, build date Sep 29 2009 16:29:47. CrystalSpace Revision: 33500
Planeshift Revision: 5164
I have attached a gdb session which includes a backtrace and (I believe) the complete source of the shader that causes mesa to hiccup, and the full command arguments that were passed to cgc. I am willing to provide further information if required.
Note that this shader does not seem to cause problems for other players of this game on other platforms, but that this does not necessarily mean it is not, itself, buggy or problematic.
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
http://bugs.freedesktop.org/show_bug.cgi?id=25934
--- Comment #1 from Lucas Paul <[email protected]> 2010-01-06 23:41:04 PST --- Created an attachment (id=32492)
--> (http://bugs.freedesktop.org/attachment.cgi?id=32492)
The offending Cg source, extracted from gdb output and with some escape sequences converted
It was suggested to me to make the shader's source a bit more readable/accessible, so here it is with \n, \t, and \\ converted into newlines, tabs, and \, repsectively.
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
In reply to [email protected]http://bugs.freedesktop.org/show_bug.cgi?id=25934
--- Comment #2 from Frank Richter <[email protected]> 2010-01-06 23:54:19 PST --- Created an attachment (id=32494)
--> (http://bugs.freedesktop.org/attachment.cgi?id=32494)
Problematic ARB source code
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
In reply to [email protected]http://bugs.freedesktop.org/show_bug.cgi?id=25934
Frank Richter <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #32492|0 |1
is obsolete| |
--- Comment #3 from Frank Richter <[email protected]> 2010-01-06 23:55:45 PST --- Created an attachment (id=32495)
--> (http://bugs.freedesktop.org/attachment.cgi?id=32495)
Cg source
Same data as attachment 32492, but with fixed MIME type
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
In reply to [email protected]http://bugs.freedesktop.org/show_bug.cgi?id=25934
--- Comment #4 from Brian Paul <[email protected]> 2010-01-07 08:20:27 PST --- I can't reproduce this. I forced the parser to call the yyerror() function where your gdb log indicated. I don't get a segfault in vfprintf() or strlen().
Could you try recompiling Mesa for debug (-g) and retesting?
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
In reply to [email protected]http://bugs.freedesktop.org/show_bug.cgi?id=25934
--- Comment #5 from Lucas Paul <[email protected]> 2010-01-08 11:23:12 PST --- Brian, since I've been using Gentoo's portage system to build Mesa, I'm not sure how to give it specific switches, like -g, for compiling. I was under the impression that I was building Mesa with separate debugging information split off in its own file (Portage's splitdebug feature and the debug USE flag), so I'm also not entirely sure what the key difference you're after is, either. How do you suggest I proceed?
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
In reply to [email protected]http://bugs.freedesktop.org/show_bug.cgi?id=25934
--- Comment #6 from Lucas Paul <[email protected]> 2010-01-13 20:49:41 PST --- After recompiling (once with Portage's nostrip feature, then again with splitdebug) the latest code, I'm no longer able to reproduce the issue either. I guess the bug should be closed, since nobody seemed sure what was causing it in the first place.
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev --
[Bug 25934] Segfaults while parsing a shader shown to work on other platforms
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=25934
Corbin Simpson <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |NOTABUG--- Comment #7 from Corbin Simpson <[email protected]> 2010-04-11 03:24:02 PDT --- Closing.
Signature · 11 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --