[Mesa-dev] [Bug 29644] New: glsl2 regression: oolite and vegastrike segfault on initialization

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 18 04:04:45 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29644

           Summary: glsl2 regression: oolite and vegastrike segfault on
                    initialization
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: nikai at nikai.net


Created an attachment (id=37947)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=37947)
oolite backtrace

KMS r600 classic:
With mesa git, oolite-1.74.2 segfaults on initialization.
Similarly, vegastrike-SVN segfaults on initialization with a comparable
backtrace.

System environment:
-- system architecture: amd64
-- Linux distribution: Gentoo
-- GPU: RS780G
-- Model: ATI Radeon HD 3200
-- Display connector: VGA
-- xf86-video-ati: cc0a167ff2db9b097891883ded147af1d67e4407
-- xserver: 1.8.2
-- mesa: c17d5de593fbfee91b799894b1c1a8a37a6a9c95
-- drm: 431f7f00db844534dbcf9a63da0d2832a3d91bff
-- kernel: 2.6.35.1

This quick hack appears to fix the problem in both oolite and vegastrike:

--- src/mesa/program/ir_to_mesa.cpp    2010-08-18 12:57:53.822075251 +0200
+++ ir_to_mesa.cpp    2010-08-18 12:55:16.362920273 +0200
@@ -1145,7 +1145,7 @@
       if (!field && statevars[i].field) {
      assert(!"FINISHME: whole-structure state var dereference");
       }
-      if (field && strcmp(statevars[i].field, field) != 0)
+      if (field && statevars[i].field && strcmp(statevars[i].field, field) !=
0)
      continue;
       break;
    }

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list