From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 27141] piglit glean/vertProg1 core dumps with RV790 Date: Thu, 18 Mar 2010 07:47:02 -0700 (PDT) Message-ID: <20100318144702.9BEC5130107@annarchy.freedesktop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: dri-devel@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org http://bugs.freedesktop.org/show_bug.cgi?id=27141 --- Comment #2 from Chris Rankin 2010-03-18 07:47:02 PST --- The problem happens when destroying the GLContext: - we call _mesa_free_context_data(), which sets ctx->DrawBuffer = NULL - _mesa_free_context_data() then calls _mesa_free_texture_data() - _mesa_free_texture_data() calls r600DeleteTexture() - r600DeleteTexture() calls radeonFlush() via radeon_firevertices() - radeonFlush() tries to dereference ctx->DrawBuffer, which has just been set to NULL - BANG! Adding a simple (ctx->DrawBuffer != NULL) check to radeonFlush() makes 43 of the vertProg1 piglit tests pass, with 2 failures: Program: RSQ test 2 (reciprocal square root of negative value) Expected color: -1, 0.1, 0.447, 1 Observed color: 0, 0, 0, 0 Program: LIT test 2 (degenerate case: 0 ^ 0 -> 1) Expected color: 1, 0.65, 1, 1 Observed color: 1, 0.65098, 0, 1 -- Configure bugmail: http://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 --