Bug 6928 - dri tdfx driver crashes the system.
Summary: dri tdfx driver crashes the system.
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/TDFX (show other bugs)
Version: 6.4
Hardware: x86 (IA32) Linux (All)
: high critical
Assignee: Adam Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-15 22:57 UTC by Moshe Gor
Modified: 2006-05-18 10:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Moshe Gor 2006-05-15 22:57:16 UTC
src/mesa/drivers/dri/tdfx/tdfx_tex.c uses
mesa_malloc().
src/mesa/main/teximage.c uses
_mesa_align_free().

Segmentation fault, system hangs, etc.

Proposed solution:
src/mesa/drivers/dri/tdfx/tdfx_tex.c:
replace _mesa_malloc() by _mesa_align_malloc()
in three allocations:
texImage->Data = _mesa_malloc(....)

See src/mesa/main/teximage.c:
Mesa uses _mesa_free_texmemory(texImage->Data),
which calls _mesa_free_texmemory(....),
which in turn uses _mesa_align_free(....).
Comment 1 Brian Paul 2006-05-19 03:08:12 UTC
This has been fixed in Mesa 6.5 by calling _mesa_alloc_texmemory().
Closing this bug.


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.