http://bugs.freedesktop.org/show_bug.cgi?id=13902

           Summary: [915-TTM] ARB_texture_rectangle segment fault when
                    teximage's height is 0
           Product: Mesa
           Version: CVS
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: Drivers/DRI/i915
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED], [email protected]


When call glTexImage2D with target GL_TEXTURE_RECTANGLE_ARB, if the texture
image's height is 0, it will result in segment fault.

Running the attached case, the backtrace info is as below:
(gdb) bt
#0  dri_bo_map (buf=0x0, write_enable=1 '\001') at ../common/dri_bufmgr.c:81
#1  0xb7aef1a5 in intel_region_map (intel=0x8058c10, region=0x80cb4d0)
    at intel_regions.c:62
#2  0xb7af03b3 in intel_miptree_image_map (intel=0x8058c10, mt=0x8329c38,
    face=0, level=0, row_stride=0xbfff1520, image_offsets=0x8080f78)
    at intel_mipmap_tree.c:323
#3  0xb7af1def in intelTexImage (ctx=0x8058c10, dims=2, target=34037, level=0,
    internalFormat=6408, width=55, height=0, depth=1, border=0, format=6408,
    type=5126, pixels=0x8081058, unpack=0x80648a4, texObj=0x8329948,
    texImage=0x8329bb8, imageSize=0, compressed=0) at intel_tex_image.c:463
#4  0xb7af2187 in intelTexImage2D (ctx=0x8058c10, target=34037, level=0,
    internalFormat=6408, width=55, height=0, border=0, format=6408, type=5126,
    pixels=0x8081058, unpack=0x80648a4, texObj=0x8329948, texImage=0x8329bb8)
    at intel_tex_image.c:552
#5  0xb7b8480c in _mesa_TexImage2D (target=34037, level=0,
    internalFormat=6408, width=55, height=0, border=0, format=6408, type=5126,
    pixels=0x8081058) at main/teximage.c:2564
#6  0xb7fb01ec in glTexImage2D (target=34037, level=0, internalformat=6408,
    width=55, height=0, border=0, format=6408, type=5126, pixels=0x8081058)
    at ../../../src/mesa/glapi/glapitemp.h:1000
....

If turn on INTEL_NO_TTM, the case also aborts with below info:

TTM buffer manager disabled.  Using classic.
texRect_915: ../common/dri_bufmgr_fake.c:579: dri_fake_bo_alloc: Assertion
`size != 0' failed.
Aborted


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to