Summary: | Current Amira version 4.1.1 causes X to crash in _tnl_InvalidateState | ||
---|---|---|---|
Product: | Mesa | Reporter: | Hugo Mildenberger <Hugo.Mildenberger> |
Component: | Drivers/DRI/i915 | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | CC: | brice.goglin |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
gdb log with backtrace and structure dumps
patch to fix segfault |
Description
Hugo Mildenberger
2008-05-05 07:48:32 UTC
Created attachment 16411 [details]
gdb log with backtrace and structure dumps
This excerpt is perhaps already enough to illuminate the scene:
(gdb) sele 2
(gdb) print ctx->Fog
$3 = {Enabled = 0 '\0', Color = {0, 0, 0, 0}, Density = 1, Start = 0, End = 1, Index = 0, Mode = 2048,
ColorSumEnabled = 0 '\0', FogCoordinateSource = 33874, _Scale = 1}
(gdb) print ctx->FragmentProgram
$4 = {Enabled = 0 '\0', _Enabled = 0 '\0', _Active = 1 '\001', Current = 0x9088bc8, _Current = 0x0, Parameters = {{0, 0, 0,
0} <repeats 128 times>}, _MaintainTexEnvProgram = 0 '\0', _UseTexEnvProgram = 1 '\001', _TexEnvProgram = 0x0,
Callback = 0, CallbackData = 0x0, CallbackEnabled = 0 '\0', CurrentPosition = 0}
I may add, that after I locally fixed this, amira again crashed the system, this time within drm kernel module, saying:
[drm:drm_bo_expire_fence] *ERROR* Detected GPU lockup or fence driver was taken down. Evicting buffer.
[drm:drm_bo_leave_list] *ERROR* A DRM_BO_NO_EVICT buffer present at cleanup. Removing flag and evicting.
I don't currently have also a backtrace for that bug araound, since this was obtained while looking for the cause of another a bug located within latest xf86-video-intel driver. I will retry it after that getting fixed.
Let me add, that the source for all this may really be a header inconsistency, which I myself can't fix, since Amira is closed source. But even that presumably beeing the case, running a buggy program or a program which was compiled for another minor X revision shouldn't crash the whole system.
A similar backtrace has been caught by Vincent Bernat with Mesa 7.1.1 when running Blender: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497096 *** Bug 17237 has been marked as a duplicate of this bug. *** Created attachment 18980 [details] [review] patch to fix segfault Can you try the attached patch? I've committed my patch for Mesa 7.2. Would still appreciate confirmation from an Amira user that this is fixed now. Feedback timeout, and the fix was committed. commit 58dce864e659da3d1f9761154e622a45e420c229 Author: Brian Paul <brian.paul@tungstengraphics.com> Date: Thu Sep 18 15:29:57 2008 -0600 mesa: fix null ptr deref bug in _tnl_InvalidateState(), bug 15834 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.